Link to home
Start Free TrialLog in
Avatar of kapai
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,&regs,&regs);
}
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?
Avatar of Triskelion
Triskelion
Flag of United States of America image

The compiler does not know what a 'REGS' is.
REGS has not been defined.
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).
ASKER CERTIFIED SOLUTION
Avatar of Triskelion
Triskelion
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kapai
kapai

ASKER

Thanks, figured as much,