To put it simply the way that I stumbled on this problem is that I wanted to use vesa vba to creat my own user interface for my programs, plus I wanted to just test the capabilities of c++. The only problem is that none of the tutorals, sample code, or documentation will work. Most of the tutorals and source code contained the following line of code, that is preventing the code from compiling on my computer.
From what I have read and learned from msdn and my c++ course, I have come to think that 'REGS' is some sort of data type, probably dealing with the system regesters, and it is not defined in my version of c++. I went and searched msdn and found a few referance to 'union REGS ???, ???;' one of these referance had the following code atached to it, which also failed to compile.Code:union REGS in, out;
Does any one know of a way to solve this, maybe some sort of a header file that contains declarations for 'REGS', or something like that. Or in the least an explanation of why I am having problems whith the code. Just to make completly sure that no one can say that they have no way of knowing what complier I am using, I will state it now. It is MSVC++ 6.0 Profesional Edition.Code:#include <stdio.h> #include <dos.h> union REGS reg; void scroll_line() { /* The registers have the same significance as those in * * the assembly-language routine above. */ reg.h.ah = 6; // function 6H reg.h.al = 1; // number of lines to scroll reg.h.bh = 0x7; // attribute of line reg.h.ch = 0; // row of top left corner reg.h.cl = 0; // column of top left corner reg.h.dh = 24; // row of bottom right corner reg.h.dl = 79; // row of top right corner int86(0x10, ®, ®); return; }
-JLBShecky // row of top right corner