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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System level programming in VC++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
In VC++ how can I use the union REGS earlier used only with Dos & C. Which header file I have to use here. I have already seen dos.h included with VC++ 6.0, but there is no defination of the REGS union, while earlier compilers of C used on Dos used to have the union defination of REGS in Dos.h. Please advise me what to do.
 
#include<windows.h>
use regs functions. John Fill
1c.bmp


ivfmd@mail.md
 
Those regs stuff is ancient 16-bit code. In 32 bits environment, for most of the old interrupt functions, there is some API-equivalent. Calling a 16-bit function directly from a 32-bit program will not do anything else than crash or cause an access violation. This is the reason it is no longer supported.

Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top