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…

 

Careful with sscanf and fscanf

If you are not careful while using sscanf and fscanf, you code could lead to stack corruption errors leading to application crash. Recently when migrating a project in VC6 to VC8, a similar situation arose, I was getting stack corruption errors… “Run-Time Check Failure #2 – Stack around the variable ‘ByteVar’ was corrupted.” So I […]
Continue reading…