Article View: borland.public.cppbuilder.nativeapi
Article #13719Re: alignment
From: Antonio Farfan
Date: Fri, 19 Sep 2003 14:32
Date: Fri, 19 Sep 2003 14:32
32 lines
2128 bytes
2128 bytes
Sorry , i have proved with these changes, but it doesn�t work well. It is
more, i don�t use the struct alarmRecord an TSettings, and i define his
fields of this struct inside the struct TPS_Settings and it doesn�t work
well .
"Bob Gonder" <notbg@notmindspring.invalid> escribi� en el mensaje
news:db5kmvkiu2v8i0eppln56gvb6v3u30ihb3@4ax.com...
> Antonio Farfan wrote:
>
> Do these 2 things: Use the pragma to ensure the packing, and use
> typedef.
>
> #pragma pack(push,4)
>
> /* define sub-structures before the struct that includes them */
> typedef struct sOtherStruct{
> your structure data here
> }OtherStruct;
>
> typedef struct sTPS_Settings{
> your structure data here
> OtherStruct fOther;
> }TPS_Settings;
>
> #pragma pack(pop)
>
> TPS_Settings fTPS_Settings;
>
>
>
Technical Details
Message-ID:
<3f6b1219@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f673746@newsgroups.borland.com> <3f674494$1@newsgroups.borland.com> <3f6749b2$1@newsgroups.borland.com> <3f676a91@newsgroups.borland.com> <3f688407@newsgroups.borland.com> <3F688926.EF20C0EF@sbcglobal.net> <3f688cb6$1@newsgroups.borland.com> <kb6hmv0pa8o95ursa78l00hjlem1ghsu8q@4ax.com> <3f69671b$1@newsgroups.borland.com> <db5kmvkiu2v8i0eppln56gvb6v3u30ihb3@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,a9334a47483d8c0e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-19 07:38:34 PST From: "Antonio Farfan" <amfm0777@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f673746@newsgroups.borland.com> <3f674494$1@newsgroups.borland.com> <3f6749b2$1@newsgroups.borland.com> <3f676a91@newsgroups.borland.com> <3f688407@newsgroups.borland.com> <3F688926.EF20C0EF@sbcglobal.net> <3f688cb6$1@newsgroups.borland.com> <kb6hmv0pa8o95ursa78l00hjlem1ghsu8q@4ax.com> <3f69671b$1@newsgroups.borland.com> <db5kmvkiu2v8i0eppln56gvb6v3u30ihb3@4ax.com> Subject: Re: alignment Date: Fri, 19 Sep 2003 16:32:28 +0200 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 62.15.230.33 Message-ID: <3f6b1219@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063981593 62.15.230.33 (19 Sep 2003 07:26:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail