Problem compiling simple code examples
Okay I am new to Windows programming in C++, so I am looking at various tutorials on the internet in order to learn about it. My problem is that none of the code examples so far have been compilable in Visual Studio, but compile just fine in Bloodshed Dev C++. I prefer using VS due to its much much nicer UI.
Anyway.. An example would be this error: "cannot convert parameter 2 from 'const char' to 'LPCWSTR' ". This is the case in this line of code:
which is taken from this example http://www.winprog.org/tutorial/simple_window.html
MessageBox(NULL, "Window Registration Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK);
Obviously it always happens when I try to implicitly convert a const char type to a LPCWSTR type (whatever that is). Anyone have a solution to this problem?
Thanks in advance