I am just curios if someone else has found the same issues I am having when compiling and running a simple C++ program in "codeblocks" everything is perfect but not successful when compiling and run the same program on Microsoft Visual Studio express. Is there any logic explanation here?



Happens to all of us. It depends on the settings. Visual studio defaults to unicode so every string is prefixed with an L.

A couple other stuff like suffix _s. strcpy would be strcpy_s, vsprintf would be vsprintf_s.. etc..

Visual studio code compiles in codeblocks most of the time but the other way around doesn't work any time at all. Well for me.

I usually do:

#ifdef _MSC_VER