I have written the following in my Windows program:
But I get an error: Linker Fatal: Unable to open file 'winprog.def'Code:#include <iostream.h>
int main()
{
cout <<"test" << endl;
return 0;
}
What is wrong???
Printable View
I have written the following in my Windows program:
But I get an error: Linker Fatal: Unable to open file 'winprog.def'Code:#include <iostream.h>
int main()
{
cout <<"test" << endl;
return 0;
}
What is wrong???
It sounds like to me that there is a problem with the file, not your program. I suggest you download the file and replace it. What compiler are you using?
The Borland compiler, that came with C++ 4.5
Sorry i dont have that one, or i would send you the file.
That program of yours isn't a windows program - it's a console program. Compile it as a DOS executable, and it should work. Your project settings must be FUBAR since the linker is trying to bring in the windows stuff.
But I want to make a windows app.... how do I do that then?????
Do you want to do it using barefoot Windows calls, or the Microsoft Foundation Classes? My advice would be to learn how to make a simple program using the standard stuff, then move on to MFC once you know how it works.
Thanks! But I don't now any Windows calls....
Could you teach me some, or tell me where I can find some tutorials about it????
MSDN is probably the best place to start: http://msdn.microsoft.com/library/de...pplication.htm