[ale] more OT: c++ datatypes question

Christopher Fowler cfowler at outpostsentinel.com
Mon Jun 7 21:44:19 EDT 2004


A WORD is usually 2 bytes.

typedef WORD unsigned short;

That is what I've used.  On a 64-bit machine a WORD may be 4 bytes?

On Mon, 2004-06-07 at 16:49, J.M. Taylor wrote:
> Ben,
> 
> I would love to know how WORD is defined.  It's not actually defined 
> anywhere in the code that I'm working with, but to do a palm conduit you 
> have several .dll dependancies that load all manner of things that are 
> core to Palm conduits.  Which I can't look at, of course.  Is 
> there some way to see the definition in this case, that I just don't know 
> about?  I know so little about visual studio, or dealing with MS based 
> things in general. (ick)
> 
> Also, yes, int i; i=2; works just fine.  
> 
> Thanks
> jenn
> 
> On Mon, 7 Jun 2004, Benjamin Scherrey wrote:
> 
> > Jenn,
> > 
> > 	Check and see what the definition of WORD is in your environment. I presume that 'int i; 
> > i=2;' works just fine? If its a macro or typedef of another typedef keep following it until you get to its 
> > fundamental C type. This could also be some strange linkage issue. Check and see what linkage 
> > options you have and try, for purposes of testing, to statically link all runtime libraries into your 
> > executable.
> > 
> > 	Good luck,
> > 
> > 		Ben Scherrey
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list