Ma w jednym folderze następujące pliki :
graph13h.cpp
#include <dos.h>
#include "graph13h.h"
void far *bufor = (unsigned int *) MK_FP (0xA000,0);
//****************************************
void set13hmode ()
{
asm {
mov ax, 13h;
int 10h;
}
}
//****************************************
void settextmode ()
{
asm {
mov ax, 3h;
int 10h;
}
}
//****************************************
void clr13h (signed char color = 0)
{
asm {
les di, bufor;
mov ah, color
mov al, ah
mov cx, 32000
cld
rep stosw
}
}
//****************************************
void putpixel(int x,int y, signed char c)
{
asm {
mov ax, 0xA000
mov es, ax
mov dx, y
mov di, x
xchg dh, dl
add di, dx
shr dx, 2
add di, dx
mov al, c
mov es:[di], al
/* cmp x, 0
jl @end
cmp y, 0
jl @end
cmp x, 319
jg @end
cmp y, 199
jg @end
mov ax, y
mov di, ax
shl ax, 8
shl di, 6
add di, ax
add di, x
les ax, bufor
mov al, c
mov byte ptr es:[di], al
@end:*/
}
}
//****************************************
Graph13h.h
void set13hmode ();
void settextmode ();
void clr13h (signed char color = 0);
void putpixel(int x,int y, signed char c);
i Test.cpp
#include <iostream.h>
#include "graph13h.h"
main ()
{
return 0;
}
Dlaczego przy kompilacji pliku test.cpp pojawia się błąd "unable to open include file 'graph13h.h'" (Używam borlanda C++ 3.1). Jak skompilować ten plik łącznie z biblioteką graph13h ?