Thread: ok so whats up with this???

  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,195
    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.

  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,981
    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,195
    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.

  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をこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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