Subj : Wayne King - BIOS interrupt To : borland.public.cpp.borlandcpp From : "Rob C." Date : Thu Aug 21 2003 02:10 pm /* Error messages: Info :Making... Info :Compiling C:\BC5\BIN\saveattr.cpp Error: saveattr.cpp(9,21):Undefined structure 'REGPACK' Error: saveattr.cpp(9,24):Too many initializers Error: saveattr.cpp(11,8):'r_ax' is not a member of 'REGPACK' Error: saveattr.cpp(12,6):Call to undefined function 'intr' Error: saveattr.cpp(14,15):'r_ax' is not a member of 'REGPACK' Error: saveattr.cpp(22,8):Function should return a value */ #include int readattr(void) { struct REGPACK rp = {0}; rp.r_ax = 0x0800; intr(0x10, &rp); return rp.r_ax & 0x00ff; } int main() { readattr(); //-- what type is returned? How would I print/store //-- the results? return; } /* It can't find dos.h, even when I include the full path, even though I put a copy of dos.h in the same directory, even when I copy the whole thing into the program! Do I have to treat this somehow with target-expert. Here are the error messages when changed to *.C (different): Info :Making... Info :Compiling C:\BC5\BIN\saveattr.c Error: saveattr.c(21,21):Undefined structure 'REGPACK' Error: saveattr.c(23,8):Undefined symbol 'r_ax' Warn : saveattr.c(24,16):Call to function 'intr' with no prototype Error: saveattr.c(26,15):Undefined symbol 'r_ax' Warn : saveattr.c(27,2):Undefined structure 'REGPACK' */ .