I'm starting a new post for this as my original question was tacked onto one about strings.
My project (PocketFrog based game) builds fine on eVC but all my strings are unicode & this includes string tables.
I want to build using VC6 to cut out the emulator on eVC as it's not much good & I do lots of coding on trains so syncing a device is hard.
When I add the UNICODE definition to a VC6 project I hit a problem with the winmain function being overloaded because the LPTSTR parameter in wince is LPSTR in win32. The problem does not show on VC6 if I omit the UNICODE definition but then I get other errors. Just changing the parameter to LPSTR causes PocketFrog to give errors.
Microsoft MSDN says
Can anyone help?
My project (PocketFrog based game) builds fine on eVC but all my strings are unicode & this includes string tables.
I want to build using VC6 to cut out the emulator on eVC as it's not much good & I do lots of coding on trains so syncing a device is hard.
When I add the UNICODE definition to a VC6 project I hit a problem with the winmain function being overloaded because the LPTSTR parameter in wince is LPSTR in win32. The problem does not show on VC6 if I omit the UNICODE definition but then I get other errors. Just changing the parameter to LPSTR causes PocketFrog to give errors.
Microsoft MSDN says
but this does not tell me how to fix my problem.ANSI applications can use the lpCmdLine parameter of the WinMain function to access the command-line string, excluding the program name. The reason that WinMain cannot return Unicode strings is that lpCmdLine uses the LPSTR data type, not the LPTSTR data type. The GetCommandLine function can be used to access Unicode strings in the command line, because it uses the LPTSTR data type.
Can anyone help?