How to deprecate a function?

Well what is deprecation? It’s just a way to tell the user that a better/safer function is available for a function which he is using! For e.g. strcpy. If you use strcpy in VC8 we’ll get a warning saying that it’s deprecated, instead use strcpy_s which is the secure version of this API. So the […]
Continue reading…

 

How to get vc compiler version?

Having trouble finding out your VC++ compiler version number? Let me help you out. 🙂 Open command prompt type and type in [sourcecode language=”cpp”]cl.exe /?[/sourcecode] Relevant part, as shown for me, is pasted here. My current compiler is VC6. Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80×86 Copyright (C) Microsoft Corp 1984-1998. All […]
Continue reading…