I made the mistake of thinking that the C++ program that I coded with VS 2012 would work on a computer running windows 95.
Now I know why it doesn't work. So I took a look at other free compilers such as Dev-C++ 5 but after going through the forum of the Dev-C++ web site, it seems that it also can't be used make Windows 95 compatible applications.
So my question is, what should I use to compile my C++ application in order for it to work on Windows 95 and all the other versions of windows from 95 to 8?
Edit : After no suitable answer.
I don't mind having to build a different .exe for different Windows versions.
Edit : Problem solved!
Thanks to everyone who help in this discussion.
Using MingW and code blocks it took me only 20 minutes to adapt the code to Win 95 friendly libraries... and a full day to install Win 95 in a VM lol.
It can create 32-bit OR 64-bit binaries, for any version of Windows since Windows 95.
. I've never targeted anything before xp though. – Munson