Author Topic: About Win32 Projects  (Read 3748 times)

Offline f2099

  • Multiple posting newcomer
  • *
  • Posts: 21
About Win32 Projects
« 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!

Offline Phenom

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: About Win32 Projects
« Reply #1 on: April 30, 2011, 02:34:48 pm »
Go to Project->Properties->Build Targets->Type, and select GUI application.

Offline f2099

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: About Win32 Projects
« Reply #2 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!

Offline f2099

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: About Win32 Projects
« Reply #3 on: April 30, 2011, 04:25:30 pm »

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