VS
冯董事长
这个作者很懒,什么都没留下…
展开
-
VS WinExec 打开cmd执行命令
WinExec(“cmd.exe netstat -an”,SW_SHOW); //不执行;WinExec(“cmd.exe /c netstat -an”,SW_SHOW); //执行,但一闪而过;WinExec(“cmd.exe /k netstat -an”,SW_SHOW); //成功;使用例子:WinExec(“cmd.exe /k xxx.bat”, SW_SHOWNORMAL); //路径有空格要加双引号;...原创 2021-06-24 14:08:48 · 1346 阅读 · 0 评论 -
LINK 2001 找不到__iob_func, 找不到__fprintf
找不到__iob_func,在项目的cpp文件中添加下面代码:#if _MSC_VER>=1900#include "stdio.h" _ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned);#ifdef __cplusplus extern "C"#endif FILE * __cdecl __iob_func(unsigned i) { return __acrt_iob_func(i);}#endif /* _MSC_V原创 2021-06-18 11:43:52 · 133 阅读 · 0 评论 -
VS:C++获取当前工作目录,获取exe文件目录
获取当前工作目录获取当前exe文件运行路径原创 2021-05-22 20:57:10 · 3276 阅读 · 0 评论