Re: sizeof

2003-08-14 Thread Engi
On Saturday, August 09, 2003 9:35 PM [GMT+1=CET],
Carsten [EMAIL PROTECTED] wrote:

 most (some.. ;) compliers have the ability to define the struct
 alignment.

Is it the case with CW ?

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Strange issue

2003-08-14 Thread Engi
On Thursday, August 07, 2003 1:48 AM [GMT+1=CET],
Alan Ingleby [EMAIL PROTECTED] wrote:

 Engi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 When my records don't have any note, all is fine.
 But if I add a note, all the characters which are drawed after the
 note indicator are weird.

 How are you drawing the note icon?

In fact, my value column have textTableItem style when there is no note and
textWithNoteTableItem style when there is a note.
In this case, the note indicator is shown by the system.

  It seems to me that you night be setting the font to a weird value?

 Try wrapping all your plain text custom drawing in this:

 // Before drawing text...
 FontID oldFont = FntSetFont(stdFont);

 ///Normal text drawing code here...

 // After drawing text...
 FntSetFont(oldFont);

 Let me know how this goes.

Unfortunately, I never change the font in my sources !


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Strange issue

2003-08-14 Thread Engi
In news [EMAIL PROTECTED],
José dos Santos Machado [EMAIL PROTECTED] wrote:

 Engi escreveu:
 Hi,
 If you go to http://aquapalm.free.fr , you could see my problem.
 When my records don't have any note, all is fine.
 But if I add a note, all the characters which are drawed after the
 note indicator are weird.


 Hello Engi,

 Ahm, let's see: Could you provide more information on this issue ?
 Like: This program you're developing ? Are you using a Table, a List,
 a Gadget ?

My program uses a table which is divided in 3 columns : date, operator and
value.
All the columns have customTableItem style.

 Have you tried to debug you APP and found something strange ?

Yes, I have and nothing strange.

 And... Aren't you forgeting any pointer lost on your program ?

Perhaps, but I don't see anything ...


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Strange issue

2003-08-12 Thread Engi
On Thursday, August 07, 2003 8:28 AM [GMT+1=CET],
Engi [EMAIL PROTECTED] wrote:

 On Thursday, August 07, 2003 1:48 AM [GMT+1=CET],
 Alan Ingleby [EMAIL PROTECTED] wrote:
 
 Engi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 When my records don't have any note, all is fine.
 But if I add a note, all the characters which are drawed after the
 note indicator are weird.
 
 How are you drawing the note icon?
 
 In fact, my value column have textTableItem style when there is no
 note and textWithNoteTableItem style when there is a note.

 In this case, the note indicator is shown by the system.

It was my problem : system changes font to draw note indicator.
I just added FntSetFont(stdFont) and bug disappear 

Thanks to Alan who put me on this direction ...clown.gif-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


sizeof

2003-08-08 Thread Engi
Hi,

Is someone could explain me this :

sizeof(DateType) = 2
sizeof(Char) = 1

typedef struct
{
 DateType date;
 Char  value;
}
stACTIONS;

sizeof(stACTIONS) = 4  ???

Why sizeof(stACTIONS) is not 3 ?


Engi

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Strange issue

2003-08-06 Thread Engi
Hi,

If you go to http://aquapalm.free.fr , you could see my problem.

When my records don't have any note, all is fine.
But if I add a note, all the characters which are drawed after the note
indicator are weird.

Thanks for help and sorry for my bad english,
Engi


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


PilRC in CW9

2003-08-01 Thread Engi
Hi,

Is it possible to use .rcp files in CW9 ?
If yes, how to tell to CW9 to use pilRC to compile this files ?

Engi

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Conditional compilation

2003-07-21 Thread Engi
Hi,

Is it possible to use condition compilation in CW8 to change code between
debug and release version ?
Thanks for help.

Engi

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/