Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: f2099 on April 30, 2011, 01:47:52 am

Title: About Win32 Projects
Post by: f2099 on April 30, 2011, 01:47:52 am

   Hi everyone! I created a Win32 project in CodeBlocks, and compiled the original main.cpp file only. When I open the .exe file (in the bin folder of the project folder), the program executes normally, but why does the console window open in the background? Is there any way of preventing this from happening? Thanks in advance!
Title: Re: About Win32 Projects
Post by: Phenom on April 30, 2011, 02:34:48 pm
Go to Project->Properties->Build Targets->Type, and select GUI application.
Title: Re: About Win32 Projects
Post by: f2099 on April 30, 2011, 04:12:49 pm

   I appreciate your help! I went to Project > Properties > Build Targets > Selected the Release option from the list (Debug, Release), and its option is set as GUI application. I pressed OK and recompiled the project. However, in both the bin and obj folders only the Debug folder was created. What am I doing wrong? Thanks again!
Title: Re: About Win32 Projects
Post by: f2099 on April 30, 2011, 04:25:30 pm

   Nevermind! I still had to change the actual build target for the building process. Thanks!