probably a simple answer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use Visual C++.NET 2003. I've been reading an older book on C++. One
program example shows how to make a simple window and draw a rectangle inside
it. At the beginning, they include the statement: #include "rect.h" to
include the corresponding library. But when I build, the compiler doesn't
recognize "rect.h" as a library. What is the problem?
 
=?Utf-8?B?bWF0dDcxMjQ=?= said:
I use Visual C++.NET 2003. I've been reading an older book on C++.
One program example shows how to make a simple window and draw a
rectangle inside it. At the beginning, they include the statement:
#include "rect.h" to include the corresponding library. But when I
build, the compiler doesn't recognize "rect.h" as a library. What is
the problem?

What "window" ? A DOS window?

The only include that is neccessary is <windows.h>

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
matt7124 said:
I use Visual C++.NET 2003. I've been reading an older book on C++.
One program example shows how to make a simple window and draw a
rectangle inside it. At the beginning, they include the statement:
#include "rect.h" to include the corresponding library. But when I
build, the compiler doesn't recognize "rect.h" as a library. What is
the problem?

What compiler/version was the book written for?

"rect.h" is not a standard C, C++ or Windows header file. Off hand, I'm
guessing that it might have been Borland/Turbo C++ for DOS. If your book is
that old, you probably need to get a newer book.

-cd
 
Back
Top