从这里编译第一个代码片段:http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx
给予:d:\!TC\cpp\control.cpp:4:21: fatal error: strsafe.h: No such file or directory compilation terminated.
发布于 2012-09-18 18:19:07
下载this:它是一个头文件。将其复制到路径"/mingw/include“文件夹中,就可以工作了。
发布于 2012-06-11 17:33:03
根据您的标记,您正在使用C++。"strsafe“函数是为了让C更安全一点的尝试。但C++已经安全得多了。例如,StringCchPrintf函数远不如std::osstream安全。
https://stackoverflow.com/questions/10970617
复制相似问题