Mail Archives: djgpp/1998/11/14/09:30:44
From: | "DeHackEd" <notgiven AT out DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <000301be0fbf$23bfdfe0$b16f19c4 AT default>
|
Subject: | Re: Allegro Datafile Problem
|
Lines: | 25
|
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Message-ID: | <glf32.485$04.370117@cabot.ops.attcanada.net>
|
Date: | Sat, 14 Nov 1998 13:12:44 GMT
|
NNTP-Posting-Host: | 142.194.222.131
|
NNTP-Posting-Date: | Sat, 14 Nov 1998 13:12:44 GMT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Have you loaded the entire datafile in at once, or individual entries?
If you do it individually, then the format is:
DATAFILE *d = insert_entry_here;
int enrtyid = DAT_ID('X','D','I','M'); // 4 characters
char *str = get_datafile_property(d, entryid);
int value = atoi(str);
If you load the entire file in at once, then change the char *str line to:
char *str = get_datafile_property(d + entry_offset, entryid);
If you used datafile[MY_PICTURE] format from .h generation, MY_PICTURE is a
valid offset.
Yes, the documentation for that section isn't very clear.
--
"DeHackEd"
My Email address in the header is fake (spammers). Email me at this address:
http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked
- Raw text -