Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C (http://www.programmingforums.org/forum60.html)
-   -   Progwin 32 is not working (http://www.programmingforums.org/showthread.php?t=11261)

Edgar Sep 6th, 2006 4:55 PM

Progwin 32 is not working
 
Hi, Im traying to get this done but is not working, this is what i'm doing:

:

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdline, int nCmdshow)
{
  MessageBox(NULL, "Goddbye, cuel world!", "Note", MB_OK);
  return 0;
}


and this is the error massage that I have:

:

C:\cwork>dmc test.c
Fatal error: unable to open input file 'win16\WINDOWS.H'
--- errorlevel 1


I'm using a c compiler (DMC )
thanks for your halep.

_James_ Sep 6th, 2006 5:10 PM

Maybe its because your compiler paths or not set up correctly or that the file windows.h is not actually there.

I have not used the Digital Mars C compiler so i cant say exacly how to set the compiler environment paths. If you are having issues with this compiler then there is LCC which is a good C compiler and MinGW which is a port of GCC for windows.

Edgar Sep 6th, 2006 5:14 PM

Do you thing that borland is gonna work without any modifications?

_James_ Sep 6th, 2006 5:21 PM

Which one?

There is borland C++ 5.5 which is old. Its requires you to make some configuration files for it to work but thats not hard. There is also Turbo C++ which they just released. I have not tried Turbo C++ but I have doubts that Borland can get back to the glory days based from the recent stuff they have made. They should both compile Win32 programs. If you are looking for an easy to use C compiler for Win32 development then LCC is good as you just have to run a simple installer and there is even a good text editor and debugger included.

You could also download Visual C++ 2005 Express and then the Platform SDK. This would take over 1GB of downloading and you still need to follow a simple guilde to get VC++ Express to compile Win32 apps.

Prm753 Sep 6th, 2006 6:44 PM

Well, did you read your error "massage"? It simply states that it cannot find Windows.h. Perhaps searching for that file yourself might be in order.

Edgar Sep 6th, 2006 7:05 PM

How I'll search for that?

Ooble Sep 6th, 2006 7:25 PM

You could try the Windows search tool. It's not just there to look pretty.

Edgar Sep 7th, 2006 1:27 PM

and then what?

Prm753 Sep 7th, 2006 4:54 PM

*rips at hair* And then, if Windows can find the file named 'Windows.h', put it into your 'win16' folder. Or, you can modify the compiler options to look for Windows.h somewhere other than 'win16'.

_James_ Sep 7th, 2006 5:20 PM

I have done some research(good old google) and I noticed that the Digital Mars C/C++ compiler is not exacly modern. Its not even designed to run after the 31st December 1999. It even warns you about that in the license agreement! I think you should think about looking at using another compiler.

If you are just doing C programming then LCC is very good. There is also MinGW(port of GCC for windows) which is also useful. I know its not really the solution you are looking for. I dont think any one so far in this thread has actually used the compiler you are using so help has been a bit of shooting in the dark.


All times are GMT -5. The time now is 6:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC