User forums > Help
Fresh Win 32 GUI project will not compile
Biplab:
--- Quote from: jens on December 19, 2012, 10:45:55 pm ---Can it try to use unicode without modifications?
--- End quote ---
No, it is not possible to compile project wizard generated code in Unicode build. Generated code uses char* for strings which is not allowed in Unicode build.
Jenna:
--- Quote from: Biplab on December 20, 2012, 06:19:44 am ---
--- Quote from: jens on December 19, 2012, 10:45:55 pm ---Can it try to use unicode without modifications?
--- End quote ---
No, it is not possible to compile project wizard generated code in Unicode build. Generated code uses char* for strings which is not allowed in Unicode build.
--- End quote ---
I know.
I think I was not clear enough.
I meant:
is it possible, that the OP compiles the default project in unicode mode without changing it (or the global compiler settings) ?
Because with default settings (of win, gcc and the wizard) it compiles fine.
Biplab:
--- Quote from: jens on December 20, 2012, 06:24:33 am ---I know.
I think I was not clear enough.
I meant:
is it possible, that the OP compiles the default project in unicode mode without changing it (or the global compiler settings) ?
Because with default settings (of win, gcc and the wizard) it compiles fine.
--- End quote ---
At the moment default project template is suitable for Ansi build only. However it is easy to change it to build it in Unicode mode. Just define UNICODE and _UNICODE in project build option.
I intend to make it even newbie proof. I want to change project wizard to generate 4 build targets (Ansi-Debug, Ansi-Release, Unicode-Debug & Unicode-Release). This way user can select appropriate target and build without any hiccup.
Jenna:
--- Quote from: Biplab on December 20, 2012, 06:31:18 am ---At the moment default project template is suitable for Ansi build only. However it is easy to change it to build it in Unicode mode. Just define UNICODE and _UNICODE in project build option.
--- End quote ---
That means the OP must have changed someting, either in the project settings or in the global compiler options.
I asked because he asked whether he might have made a mistake:
--- Quote from: Mr_Poletski on December 19, 2012, 07:34:42 am ---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
--- End quote ---
Mr_Poletski:
I believe this happened because I had a previous copy of cb installed where I had some compiler options set, including unicode. I don't think the compiler options stayed when I upgraded (old 10.5 to 12.11), but unicode had.
Thanks for the help guys, I can get writing now.
Navigation
[0] Message Index
[*] Previous page
Go to full version