知识点滴------------

1)VC中打开某个网页

 ShellExecute(NULL, "open", "www.yahoo.com.cn", NULL, NULL, SW_SHOWNORMAL);

Q: 如何打开一个应用程序?
ShellExecute(this->m_hWnd,"open","calc.exe","","", SW_SHOW );

ShellExecute(this->m_hWnd,"open","notepad.exe",
"c://MyLog.log","",SW_SHOW );
As you can see, I haven't passed the full path of the programs.
Q: 如何打开一个同系统程序相关连的文档?
ShellExecute(this->m_hWnd,"open",
"c://abc.txt","","",SW_SHOW );
Q: 如何打开一个网页?
ShellExecute(this->m_hWnd,"open",
"http://www.google.com","","", SW_SHOW );
Q: 如何激活相关程序,发送EMAIL?
ShellExecute(this->m_hWnd,"open",
"mailto:[email protected]","","", SW_SHOW );
Q: 如何用系统打印机打印文档?
ShellExecute(this->m_hWnd,"print",
"c://abc.txt","","", SW_HIDE);
Q: 如何用系统查找功能来查找指定文件?
ShellExecute(m_hWnd,"find","d://nish",
NULL,NULL,SW_SHOW);

WinExec, ShellExecute,CreateProcess

2)VC中实现历史记录的全面清除

http://www.rsblog.net/user1/16/archives/2005/561.html

3)const

int a=1;
int b=2;
(1) int *const cpi=&a;//const修饰指针,cpi=&b不允许,*cpi=b允许
(2) const int* pic=&a;//同int const* pic=&a,指针的指向为常量,pic=&b允许,*pic=b不允许
(3) int* const cpic=&a;//同1
(4) const int* const cpic=&a;//指针和指针的指向都为常量,对*cpic/cpic的赋值操作都不允许
(5) const int ic=12;//ic为常量,赋值操作不允许
(6) int const pc=12;//同5

4)

 //  隐藏WINDOWS系统任务栏
 ::ShowWindow (::FindWindow("Shell_TrayWnd",NULL),SW_HIDE);

 // 显示WINDOWS系统任务栏
    ::ShowWindow (::FindWindow("Shell_TrayWnd",NULL),SW_SHOW);

5)在控制台注册DLL

regsvr32 Parasite.dll(DLL的完整路径)

regsvr32 /u Parasite.dll(注销DLL)

你可能感兴趣的:(知识点滴------------)