[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Jun 7 16:56:05 2004 -->
- <!--x-from-r13: wbuazvyyf ng fcrnxrnfl.arg (Xbua [vyyf) -->
- <!--x-message-id: Pine.LNX.4.44.0406071540430.23943-[email protected] -->
- <!--x-reference: Pine.LNX.4.44.0406071641160.7716-[email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] more OT: c++ datatypes question -->
- <li><em>date</em>: Mon Jun 7 16:56:05 2004</li>
- <li><em>from</em>: johnmills at speakeasy.net (John Mills)</li>
- <li><em>in-reply-to</em>: <<a href="msg00155.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] more OT: c++ datatypes question</li>
On Mon, 7 Jun 2004, J.M. Taylor wrote:
> 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)
I guess you need to look at 'representation' or 'storage' in the compiler
manual (or M$'s web site). Sorry, I don't know off-hand where that
information lives for VS/VC++.
In *nix, you could crank up 'gdb' and ask it:
> print sizeof(WORD)
There should be definitive information in '/usr/include/*/types.h', or
close.
You may find WORD is undefined. I have a definition set of common data
type I include when dealing with cross-Win/Lin sources. For example, I
code with the type 'I32' and this is translated to 'WORD' if it's a
Windows environment and 'int32_t' for 'gcc' (i.e., Linux). You can grow
this kind of thing as you work. I test the environmental '__GNUG__' to
identify the setting - there are lots of finer tests, but this is enough
for my targets.
I '#include' the defining header in any file that needs it, and add
definitions to it as I need them.
I'm sure others here have better ways, but that's my $0.02.
- John Mills
john.m.mills at alum.mit.edu
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00155" href="msg00155.html">[ale] more OT: c++ datatypes question</a></strong>
<ul><li><em>From:</em> jtaylor at onlinea.com (J.M. Taylor)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00155.html">[ale] more OT: c++ datatypes question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00157.html">[ale] an error occurred while processing this directive (ALE web pages issue)</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00155.html">[ale] more OT: c++ datatypes question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00158.html">[ale] more OT: c++ datatypes question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00156"><strong>Date</strong></a></li>
<li><a href="threads.html#00156"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>