Hi, i am trying to learn to program in c but i keep getting stuck on this error, "storage size of regs isn't known". I am using the latest release of Bloodshed Dev-C++. I've made sure that i checked that the program is being compiled as a c file and not cpp and i checked to make sure that dos.h exists. but other than that could someone please help me figure this out. I've included the sample source from the book i'm learning from:
Code:#include <stdio.h> #include <dos.h> main() { int major,minor; union REGS regs; regs.h.al=1; regs.h.ah=0x30; int86(0x21,®s,®s); major=regs.h.al; minor=regs.h.ah; printf("this is does version %i, release %i\n",major,minor); }



LinkBack URL
About LinkBacks


