delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/21:39:51

To: djgpp AT delorie DOT com
Subject: Problem with Packed structs
Message-ID: <19970407.211716.7135.3.fwec@juno.com>
From: fwec AT juno DOT com (Mark T Logan)
Date: Mon, 07 Apr 1997 21:18:43 EDT

Hello.

I have a slight problem with the way that DJGPP packs its structs.

I am working on a project that saves its files as X number of structs,
in a binary file.

Since DJGPP packs structs, the structs are of a different size than you
might find when using a 16 bit compiler.  You can't read the file in
unless
the structs that you are reading into are the same as the structs that
were
written.

What if I want to read a file I make with say, a Visual Basic 16 bit
program?

TIA as always,


||                   fwec AT juno DOT com
||
||  "Do or do not, there is no try"
||                                 -Yoda
||

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019