I've searched on here and not found my issue and this is annoying the hell out of me.
I've been an int main void man for ages, now I am trying to evolve into an int winmain void man now.
I have an application I want to adapt from, basically a dos app into a windows app with proper dialogues etc, rather than one I have to put files in the right place, pull the level and my program do it's business.
So I get code blocks, Create a brand new project 'win32 gui project'. Wonder what I am starting with, hit compile and get this:
mingw32-g++.exe -Wall -O2 -Wall -g -DUNICODE -c "C:\Documents and Settings\my_login\My Documents\C\WinTruBack\main.cpp" -o obj\Release\main.o
C:\Documents and Settings\my_login\My Documents\C\WinTruBack\main.cpp: In function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
C:\Documents and Settings\my_login\My Documents\C\WinTruBack\main.cpp:20:27: error: cannot convert 'char [21]' to 'LPCWSTR {aka const wchar_t*}' in assignment
C:\Documents and Settings\my_login\My Documents\C\WinTruBack\main.cpp:53:12: error: cannot convert 'char*' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__* CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings (0 minutes, 0 seconds)
I find it hard to believe the default program template wont even compile. I fully expect it to run and then do sod all, but I can't even run it. I must be doing something wrong right? I just got 12.11, but it was doing the same thing for me on 10.5