星期六, 十月 29, 2005

补昨天的作业ShellExecute

A small exe when the disk is inserted. It is the main menu. EXEs and chm and http may be opened by clicking button. I like this ShellExecute~
在mfc里打开网址和应用程序的东东,不错~

ShellExecute(m_hWnd,NULL, "http://www.qitiandasheng.com", NULL,NULL,SW_SHOWMAXIMIZED);

ShellExecute(m_hWnd,"open","~tmp0.1st.exe","","", SW_SHOW );//~tmp0.1st.exe is an exe in your USB disk. Just copy it to use^^. I guess so, and I succeed!

In addition, I learned to make autorun.inf. It is quite easy to make a fast one.

没有评论: