X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Altaf Newsgroups: comp.os.msdos.djgpp Subject: Problem accessing FP_SEG and FP_OFF Date: Sat, 09 Feb 2002 21:18:06 -0500 Organization: Alpha Network Solution (www.alphanetsolution.com) Message-ID: <3C65D85D.E661116E@charter.net> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------97B1C89C8C2420BEF869FE50" X-Complaints-To: newsabuse AT supernews DOT com Lines: 61 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com --------------97B1C89C8C2420BEF869FE50 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Folks, I am trying to access FP_SEG and FP_OFF functions. Non of the DJPP's header files have any reference to them. They are supposed to be in dos.h. I wonder if I need to do something else. Here is a code that I am trying to compile. If someone can send some solution? /************************/ union REGS inregs, outregs ; struct SREGS segregs ; unsigned char *fdata ; fdata = (char *)profileptr ; inregs.h.ah = 0x44 ; /* write ioctl command */ inregs.h.al = 0x03 ; /* write ioctl command */ inregs.x.bx = handle ; /* file handle */ segregs.ds = FP_SEG( fdata ) ; inregs.x.dx = FP_OFF( fdata ) ; inregs.x.cx = SETPROFILE ; intdosx( &inregs, &outregs, &segregs ) ; / ****************************************/ --------------97B1C89C8C2420BEF869FE50 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Folks,

I am trying to access FP_SEG and FP_OFF functions. Non of the DJPP's header files have any reference to them. They are supposed to be in dos.h. I wonder if I need to do something else. Here is a code that I am trying to compile.

If someone can send some solution?
 

/************************/
  union REGS inregs, outregs ;
  struct SREGS segregs ;
  unsigned char *fdata ;

  fdata = (char *)profileptr ;
  inregs.h.ah = 0x44 ;     /* write ioctl command */
  inregs.h.al = 0x03 ;     /* write ioctl command */
  inregs.x.bx = handle ;   /* file handle */
  segregs.ds = FP_SEG( fdata ) ;
  inregs.x.dx = FP_OFF( fdata ) ;
  inregs.x.cx = SETPROFILE ;
  intdosx( &inregs, &outregs, &segregs ) ;
/ ****************************************/ --------------97B1C89C8C2420BEF869FE50--