Thread: Publishing in Code Blocks

  1. #1
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Question Publishing in Code Blocks

    I am new to code blocks and this is my first win32 application( includes 1 rc, 1 header and 1 .cpp file)

    The problem I have is that when i go to the program and run it I see a command prompt with the title of my filepath running in the background.

    How do I get rid of this command prompt so the software Users won't see it??

    Vista - Something We all Love to Hate.

  2. #2
    Registered User GL.Sam's Avatar
    Join Date
    Aug 2009
    Posts
    88
    AFAIK, it only shows up in 'debug' version. Make sure you've chosen 'Release' as build target.

  3. #3
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation

    I went and put release as my biuld target and it created a new folder in bin but when i run my exe now nothing happens but it works fine in debug mode

    Vista - Something We all Love to Hate.

  4. #4
    Registered User GL.Sam's Avatar
    Join Date
    Aug 2009
    Posts
    88
    It solely means that something (perhaps sligtly) is wrong with your code because IDE puts much bigger requirements for 'release'.

  5. #5
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation

    I did about 4 rebuilds and in the build log i got the following message:

    mingw32-g++.exe -Wall -fexceptions -g -c "C:\Documents and Settings\Administrator\Desktop\CTests\test\main.cp p" -o obj\Debug\main.o
    mingw32-g++.exe -o bin\Debug\test.exe obj\Debug\main.o obj\Debug\rc.res
    Output size is 719.77 KB
    Process terminated with status 0 (0 minutes, 1 seconds)
    0 errors, 0 warnings

    Vista - Something We all Love to Hate.

  6. #6
    Registered User GL.Sam's Avatar
    Join Date
    Aug 2009
    Posts
    88
    Hmm... Can you provide your entire project?

  7. #7
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation

    Quote Originally Posted by GL.Sam View Post
    Hmm... Can you provide your entire project?
    It's about 600 lines of code

    Vista - Something We all Love to Hate.

  8. #8
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42
    Plus I don't think there's anything wrong i've looked it over and i'll recheck it again after this post.

    Vista - Something We all Love to Hate.

  9. #9
    Registered User GL.Sam's Avatar
    Join Date
    Aug 2009
    Posts
    88
    It's about 600 lines of code
    Sounds nice for "my first win32 application"! O_o

    I remember C::B to have a Win32 GUI template. You could try it out to figure out who's fault it is.
    Last edited by GL.Sam; 08-03-2009 at 11:40 PM.

  10. #10
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42
    I found the problem

    THANKS ANYWAY

    Vista - Something We all Love to Hate.

  11. #11
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Are you going to tell us the answer, so others may benefit from your new found insight?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  3. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM