Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Union REGS problem

Status
Not open for further replies.

ChiGiang

Programmer
Dec 10, 2001
1
VN
When I write a program to access registers in Visual C++. I had used :
#include <dos.h>
void main(void)
{
union REGS reg;
....
}

But the compiler don't accept REGS. How could I do that ?
Thanks very much.
 
To access registers, You should use CONTEXT structure (if You don't do it in a driver).
It is not so easy, and there are many differences between Windows 95/98/ME and NT/2000/XP too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top