解决方案 »
- 心跳包与TCP Keepalive
- 我在一个Dialog对话框里画了些坐标和曲线,请问,我该怎么样把这些坐标和曲线用打印机打印出来?急,谢谢!!
- 怎样把MDI菜单换成自己的菜单?
- msxml3.dll (0x80070005)拒绝访问postnew.asp, 第 36 行 在线等
- [求助][VC++] 有关 assert() 的错误
- 使用内存做图的问题,怎么解决。
- 菜鸟问题!在CMainFrame里怎么得到CWinApp的指针?
- 高手帮帮忙~急
- 技术内幕中的一个奇怪函数
- MFC LISTCTRL中插入Combobox,拖动滚动条Combobox重影怎么解决
- 急急急!!!各位大侠,MFC中多线程运行一次后再调用dll中的函数就会出现“内存不能为read”的问题
- 几个窗口重绘的问题,一块在这请教,希望大家给讲解下
你的这个前半句是这么写的
wShowWindow
Ignored unless dwFlags specifies STARTF_USESHOWWINDOW.
所以呢,dwFlags要指定为STARTF_USESHOWWINDOWMSDN中STARTF_USESHOWWINDOW写到:如果这个值没有被指定,wShowWindow 被忽视。
If this value is not specified, the wShowWindow member is ignored.先设定dwFlags的值为STARTF_USESHOWWINDOW。
CreateProcess(NULL, // No module name (use command line).
szCmdLine, // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
TRUE, // Set handle inheritance to FALSE.
1 , // No creation flags.
NULL, // Use parent 's environment block.
NULL,//szCurDir, // Use parent 's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi );