Thread: dev c++ & win32

  1. #1
    Registered User
    Join Date
    May 2002

    dev c++ & win32

    Okay i'm not sure if i'm just dumb or what but I am new to win32 programming and using dev c++. Almost everytime I compile a program it will tell me that it cannot locate the file
    sometimes it works sometimes it does this, i am using petzold's book and just to make sure it wasn't me i copied the source code straight from the cd and got the same thing. Any help will be greatly appreciated as i do my learning mostly at work and the free compilers are all i have ):
    Oi Oi Oi!!!!

  2. #2
    Registered User
    Join Date
    Apr 2002
    When you use Dev you must create a new project every time you make a new program.

    If you use a .c or .cpp file that has not been createt by Dev, it will miss the .o file, that dev create when it create a new .c or .cpp file
    I think, anyway!

    therefor you must:
    1. Make a new project
    2. Select what type of program you gonna make (WinMain() projekt for win32)
    3. Save the projekt file
    3. Delete the text in the file untitled 1
    4. Copy the text from the tutorial source to untitled 1
    5. Save untitled 1
    6. Compile and run

    -then it shut work, else I don't know what to do!

    more info at:
    Last edited by niklaskr; 06-18-2002 at 07:12 PM.
    I'm a newbie, so don't take my words for facks!
    btw, I'm useing Dev-4

  3. #3
    Registered User
    Join Date
    Jun 2002

    I have had this problem too.

    In version 4 of Dev C++

    click "Project" >> "Project Options"

    under Project Type

    make sure the

    Do Not Create Console

    option is checked.

    It fixed it for me, when I had same problem, however if you aren't programming in WinAPI, i don't know what the problem is.
    Keep smiling, it makes the big guys wonder what you're up to.

  4. #4
    Registered User
    Join Date
    Jun 2002
    My bad, I misunderstood what was going on.

    If you don't want to start a new project you can

    Load you source code file.

    Click Options >> Compiler Options

    Click on the Linker Tab.

    Make sure that "Compile For Win32 (no console)" is checked

    Click OK then compile and run your program.
    Keep smiling, it makes the big guys wonder what you're up to.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  2. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  3. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM