strsafe

There is no strsafe.h in MinGW? What to use instead?

只谈情不闲聊 提交于 2019-12-18 04:05:35
问题 Compiling first snippet from here : http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx gives: d:\!TC\cpp\control.cpp:4:21: fatal error: strsafe.h: No such file or directory compilation terminated. 回答1: Download this: it's a header file. Copy it to the path "/mingw/include" folder and it will work thats all 回答2: You're using C++, per your tags. The "strsafe" functions are an attempt to make C a tiny bit safer. But C++ is already far safer. E.g the StringCchPrintf function is not

There is no strsafe.h in MinGW? What to use instead?

微笑、不失礼 提交于 2019-11-29 03:49:14
Compiling first snippet from here : http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx gives: d:\!TC\cpp\control.cpp:4:21: fatal error: strsafe.h: No such file or directory compilation terminated. kum_nitdgp Download this : it's a header file. Copy it to the path "/mingw/include" folder and it will work thats all You're using C++, per your tags. The "strsafe" functions are an attempt to make C a tiny bit safer. But C++ is already far safer. E.g the StringCchPrintf function is not nearly as safe as std::osstream . 来源: https://stackoverflow.com/questions/10970617/there-is-no-strsafe-h