User forums > Help
Win API doesn't working
Michael:
--- Quote from: WhiteHat on June 21, 2006, 11:28:38 pm ---Well guys, thanks a lot, but I think, I have resolved this problem, as You've said, problem is with compiler (Mingw) Now I had dowbloaded Win32 compiler and everything is OK, only: I have to set build option in every project, how could I set it automaticly?
--- End quote ---
You did build an .exe with MinGW :?? Strange, because MinGW seems not to support WinMain AFAIK (but I may be wrong).
Compiler Options could be set globally for every projects under:
Settings-->Compiler and debugger-->Global compiler settings.
Or locally (for the whole project or for every target) under:
Project-->Build options
Best wishes,
Michael
TDragon:
--- Quote from: Michael on June 21, 2006, 11:58:23 pm ---Strange, because MinGW seems not to support WinMain AFAIK (but I may be wrong).
--- End quote ---
Unless I've completely misunderstood you, you are wrong.
The code as posted fails to compile for me, because my default encoding doesn't support the non-ASCII characters; however, if I replace them with something harmless everything compiles and executes cleanly.
WhiteHat: Does it work when debugging from Code::Blocks (hit F8)? What exactly happens or doesn't happen when you try to run the executable?
sethjackson:
MinGW supports WinMain for sure. Umm why would you think otherwise :?
WhiteHat:
Compiler is fine. No error message while compiling, but .exe file can't be runed. I don't know what type of project have I choose.
If I try to run .exe file, there will be console window for a while and nothing happens.
David Perfors:
looks like you have choosen a console application. Go to the Project settings and change the application type to GUI application.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version