Hi guys,
Sorry to bother you with a mayve stupid question but it's really pissing me off for a couple of hours. I justed started c programming so i'm not yet fimiliar with all the in and outs.
I wrote this little program but my compiler pop-ups with a error message over and over again and I don't know how to solve it.
The message tells me:
Undefined structure 'REGS'
size of 'regs' is unkown or zero
and this is the source code:
{
union REGS regs;
regs.h.ah=0x06;
regs.h.al=0x00;
regs.h.bh=0x07;
regs.h.ch=0x00;
regs.h.cl=0x00;
regs.h.dh=ROWS-1;
regs.h.dl=COLS-1;
int86(VIDEO,®s,®s);
}
I Includes stdio.h and dos.h and I'm using Borland 5.1
Hope somebody can help me
VBR MIKE
Sorry to bother you with a mayve stupid question but it's really pissing me off for a couple of hours. I justed started c programming so i'm not yet fimiliar with all the in and outs.
I wrote this little program but my compiler pop-ups with a error message over and over again and I don't know how to solve it.
The message tells me:
Undefined structure 'REGS'
size of 'regs' is unkown or zero
and this is the source code:
{
union REGS regs;
regs.h.ah=0x06;
regs.h.al=0x00;
regs.h.bh=0x07;
regs.h.ch=0x00;
regs.h.cl=0x00;
regs.h.dh=ROWS-1;
regs.h.dl=COLS-1;
int86(VIDEO,®s,®s);
}
I Includes stdio.h and dos.h and I'm using Borland 5.1
Hope somebody can help me
VBR MIKE