ok so whats up with this???

This is a discussion on ok so whats up with this??? within the Windows Programming forums, part of the Platform Specific Boards category; ok so im working with Dev-C++ 4.9.9.2 and im running Windaz XP SP2 here is my code... Code: #include <windows.h> ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    ok so whats up with this???

    ok so im working with Dev-C++ 4.9.9.2 and im running Windaz XP SP2
    here is my code...

    Code:
    #include <windows.h>
    
    int WINAPI
    WinMain(HINSTANCE hInst, 
    	HINSTANCE hPrevInstance,
    	LPSTR lpCmdLine,
            int nCmdShow)
    {
    	MessageBox (NULL, "Hello World!", 
                    "YOOOOOO", MB_OK);
    	return 0;
    }
    it is giving me this error when i try to compile and run...

    The system cannot find the file specified

    and here is my compile log...

    Code:
    Compiler: Default compiler
    Building Makefile: "C:\Temp\Nathan\Programming\C\FirstWindows\Makefile.win"
    Executing  make...
    make.exe -f "C:\Temp\Nathan\Programming\C\FirstWindows\Makefile.win" all
    Execution terminated

    what is happening??? how to solve this????????
    thanks in advance!!!!!!!!!!!!

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    That build log is inconsistent with yoru reported error, since it does not specify which fiel the system coudl not find. Please post the entire source code and the entire build log, even the stuff you dont hink is important.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    4
    Thats is copied and paster from my compiler and my compile log and that is all my source code...
    thats everything...

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,662
    Looks like your project isn't right. May be easiest to just re-create a new project.

    This may also be a good time to move to another IDE. Dev-C++ hasn't been worked on since '05. You can however update the tools used by the IDE: http://sourceforge.net/project/showf...roup_id=229698

    gg

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Visual Studio Express 2008 is free, I recommend you downlaod that. I persoanlly havent noticed any difference between teh express verion i use at home nad the full version i use at work.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    4
    sure i will try that out ASAP
    thanks guys!!!

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    4
    oh yea will visual studio write out the .exe file for me also?

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,548
    Yes, it will.
    The compiler and linker is automated with a single command.
    Build -> Build solution.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

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