Advertisement

Can't find a header-file...

Started by August 19, 2002 01:41 PM
1 comment, last by highspeeday 22 years, 4 months ago
Ok, my compiler gives me an error when I''m trying to draw a pixel on the screen: ''Cannot open includefile ''sys/farptr.h'' no such file or directory'' Here''s the code: #include #include #include #include #include "PALETTE.h" #define putpixel(x, y, c) farpokeb(dos ds, 0xA0000+y*320+x, c) int main() { RGB newcolor; textmode(0x13); putpixel(160, 150, 50); getch(); newcolor.red=63; newcolor.green=0; newcolor.blue=0; getch(); textmode(0x3); return 0; } I just can''t seem to find that farptr.h file anywhere. Does anyone know what''s wrong? Where is that file? -thanx
What compiler are you using? This code looks like it was written for DJGPP. If you are using Visual C++ or MinGW, then you won''t be able to use that code.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
Oh... that solves it. I''m using visual c++.
I was so much looking into learning the idea of drawing, thank you!

This topic is closed to new replies.

Advertisement