🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13837

Re: alignment

#13837
From: Antonio Farfan
Date: Wed, 17 Sep 2003 16:01
94 lines
3281 bytes
This my definition of the struct:


The track is lost in the field of fProfileSettings. When I accesed to this
field i cant �t get the correct value. I suppose that there are
displacemente in the
address of access.


TPS_Settings;

typedef struct
{
 unsigned  __int8    fBackLight;//:0
 __int8     fContrast;
 __int8     fIdle;
 __int8     fGreeting;    file://:3
 __int8     fAnimation;
 __int8     fLaunchUp;
 __int8     fLaunchDown;
 __int8     fLaunchLeft;
 __int8     fLaunchRight;
 __int8    fLanguageLocale;
 __int8    fGreetingType;


         char
fCustomGreetingText[12+1];//kCustomGreetingLength
 __int8    fPhoneLockState;//:25
 __int8    fAutoLockState;
 __int8    fWebGuardState;
 __int8    fUseMEPhonebook;
 __int8    fNetworkSelectionMode;
 __int8    fAnyKeyAnswerState;
 __int8    fAutoAnswerState;
 __int8    fAutoRedialState;
 __int8    fMinuteMinderState;

       unsigned __int8  fNumbeForegin[20];

       TSettings fProfileSettings [1];
 __int8    fAudioProfileSelectionState;

 alarmRecord   fAlarmRecord;

}TPS_Settings;


struct alarmRecord
{
 unsigned __int32   when;
 Boolean   alarmSet;
 Boolean   alarmRegistered;
 AlarmFire  frequency;
 AlarmScreen  alarmType;
 char              alarmString[MAX_STRING_ALARM];
};




struct TSettings
{
 __int8    fModeState;
 __int8    fAscendingState;
 __int8    fToneState;
  char    fAudio[14];
};



"Remy Lebeau (TeamB)" <gambit47@yahoo.com> escribi� en el mensaje
news:3f676a91@newsgroups.borland.com...
>
> "Antonio Farfan" <amfm0777@hotmail.com> wrote in message
> news:3f6749b2$1@newsgroups.borland.com...
>
> > //   TPS_Settings is one struct defined in a file .h . It has the
> > same struct that it is keeping in memory
> > //     I define this struct the same way that in the memory
>
> What is the actual declaration for TPS_Settings?  That is an important
> detail that you have left out.
>
>
> Gambit
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
>
>
Technical Details
Message-ID: <3f688407@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!63.218.45.203.MISMATCH!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f673746@newsgroups.borland.com> <3f674494$1@newsgroups.borland.com> <3f6749b2$1@newsgroups.borland.com> <3f676a91@newsgroups.borland.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-17 09:12:01 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>
Subject: Re: alignment 
Date: Wed, 17 Sep 2003 18:01:43 +0200
Lines: 96
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: <3f688407@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063814151 62.15.230.33 (17 Sep 2003 08:55:51 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!63.218.45.203.MISMATCH!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail