dev c++ & win32

This is a discussion on dev c++ & win32 within the Windows Programming forums, part of the Platform Specific Boards category; Okay i'm not sure if i'm just dumb or what but I am new to win32 programming and using dev ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    178

    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
    nameofprogramgoeshere.o
    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
    Posts
    12
    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:
    http://www.geocities.com/uniqueness_template/
    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
    Posts
    24

    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
    Posts
    24
    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 Cprogramming.com
    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, 12:05 AM
  3. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21