摘要:
在VC下执行DOS命令并得到输出(转)2009-12-23 14:10http://topic.csdn.net/u/20081118/22/644899d5-43f3-4461-b101-f2c9838ee401.html a. system("md c:\\12"); b. WinExec("Cmd.exe /C md c:\\12", SW_HIDE); c. ShellExecute ShellExecute(NULL,"open","d:\\WINDOWS\\system32\\cmd.exe","/c md d:\\zzz","",SW_SHOW); d. CreateP 阅读全文
posted @ 2011-02-20 22:04
D-Power
阅读(17070)
评论(0)
推荐(1)
摘要:
在VC下执行DOS命令并得到输出(转) 2009-12-23 14:10 http://topic.csdn.net/u/20081118/22/644899d5-43f3-4461-b101-f2c9838ee401.html a. system("md c:\\12"); b.&... 阅读全文
posted @ 2011-02-20 22:01
D-Power
阅读(208)
评论(0)
推荐(0)
摘要:
1.DbgView支持C++程序直接调试传递信息!接口: BOOL DebugTrace(char * lpszFormat,...) { static HWND hwnd = ::FindWindowA(NULL,"DbgView"); if(!IsWindow(hwnd)) hwnd = ::FindWindowA(NULL,"DbgView"); if(hwnd) { static char szMsg[512]; va_list argList; va_start(argList, lpszFormat); try { vsprintf(szMsg,lpszFormat, argLis 阅读全文
posted @ 2011-02-20 02:43
D-Power
阅读(350)
评论(0)
推荐(0)
摘要:
在学习MFC源码时经常会有: if(style&CS_TYPE) { //执行 } 问:那么if(style&CS_TYPE)有何实际意义那? 答:当style是由CS_TYPE类型系列(CS_TYPE系列类型转换为二进制只有一位为1)位于运算计算结果,则if(style&CS_TYPE)判断是style是否含有CS_TYPE类型 例如: #define CS_TYPE 0x0008//= 0000 1000//即只有一位二进制数据为1 #define CS_HIDE 0x0010//= 0001 0000 # 阅读全文
posted @ 2011-02-20 01:30
D-Power
阅读(814)
评论(0)
推荐(0)

浙公网安备 33010602011771号