• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

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?
0
kapai
Asked:
kapai
  • 3
1 Solution
 
TriskelionCommented:
The compiler does not know what a 'REGS' is.
REGS has not been defined.
0
 
TriskelionCommented:
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).
0
 
TriskelionCommented:
Here is a friendly explanation:
   http://www.c-for-dummies.com/faq/
0
 
kapaiAuthor Commented:
Thanks, figured as much,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now