I'm getting errors with the first graphic tutorial.
why did it had to contain ASM-language ((
Anyway, this is what my program looks like:
void SetMCGA(void);
void MEMPutpixel(int, int, unsigned char);
int vga=0xa000;
void main()
{
int x=100, y=100;
SetMCGA();
MEMPutpixel(x,y,100);
}
void MEMPutpixel (int x, int y, unsigned char Col)
{
memset(vga+x+(y*320),Col,1);
}
void SetText()
{
_AX = 0x0003;
geninterrupt(0x10);
}
void SetMCGA()
{
_AX = 0x0013;
geninterrupt (0x10);
}
I get errors on the MEMPutpixel thing, saying:
Error BIN\Grap.CPP 60: Cannot convert 'int' to 'void *'
Error BIN\Grap.CPP 60: Type mismatch in parameter '__s' in call to 'memset(void *,int,unsigned int)'
I don't understand what's wrong. I used the exact code from the tutorial.
Anyone could help me out here???
Thanks in advance,