Hello everyone. I have a specific problem relating to Microsoft Visual C++ 2005 Express Edition.
I wrote some code in Visual C++ 6.0 and it runs perfectly fine, but I recently downloaded Microsoft Visual C++ 2005 Express + Windows Platform SDK 2003 R2. I have set it up correctly following the setup guidelines at http://msdn.microsoft.com/vstudio/ex...k/default.aspx
Yet, when I create a new Empty Win32 App in 2005 Express and just use my code that I wrote in VC6 I get errors for which I do not know how to fix. Here they are:
error C2731: 'WinMain' : function cannot be overloaded
see declaration of 'WinMain'Code:int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPTSTR cmdLine, int cmdShow);error C2440: '=' : cannot convert from 'const char ' to 'LPCWSTR'Code:windowClassEx.lpszClassName = "Card Games Main";error C2664: 'LoadBitmapW' : cannot convert parameter 2 from 'const char ' to 'LPCWSTR'So whats the deal, eh? Has the entry WinMain function changed? Am I writing it improperly?Code:cardsBmp = LoadBitmap(instance, "deck_cards");
Also, why does it complain about my strings? I've tried casting them to (LPCWSTR), but that didn't work. Any ideas to my problems?