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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With