kapai
asked on
Whats this error
#define VIDEO 0x10
main()
{
union REGS regs;
regs.h.ah=0x02;
regs.h.bh=0x00;
regs.h.dh=row;
regs.h.dl=col;
int86(VIDEO,®s,®s);
}
Compile error
'regs' uses undefined REGS
left of '.h' must have struct/union type
OK learning C using MS VC++
Found code on net, what header file should be included?
Can I even use this?
main()
{
union REGS regs;
regs.h.ah=0x02;
regs.h.bh=0x00;
regs.h.dh=row;
regs.h.dl=col;
int86(VIDEO,®s,®s);
}
Compile error
'regs' uses undefined REGS
left of '.h' must have struct/union type
OK learning C using MS VC++
Found code on net, what header file should be included?
Can I even use this?
Are you using a 32 bit compiler?
If so, you will not find the REGS structure there.
You will need MSVC 1.52c or earlier (console app, too).
If so, you will not find the REGS structure there.
You will need MSVC 1.52c or earlier (console app, too).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, figured as much,
REGS has not been defined.