Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / DWORD, TCHAR and LPVOID

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. DWORD, TCHAR and LPVOID
#2790
Posted by: dejudicibus 2003-10-28 22:38:44
I am porting a Windows based piece of code to wxWindows. CPP and H files contains structures and classes which make rich use of the following types: DWORD, TCHAT and LPVOID. Since they are used to read bytestreams, I have to be sure that size of type is honored in all platforms. My understanding id that I can substitute DWORD by WXDWORD. What about TCHAR and LPVOID?

Thank you in advance.

DdJ
Message2. Re: DWORD, TCHAR and LPVOID
#2816
Posted by: HeReSY 2003-10-31 16:25:32
DWORD stans for a 32 bit unsigned integer
TCHAR could be a CHAR or a unicode WCHAR.
LPVOID is a pointer to any type.
(I think LPVOID stands for long pointer to void - *void)

HeReSY



Post Edited (10-31-03 16:26)
Message3. Re: DWORD, TCHAR and LPVOID
#2818
Posted by: 2003-10-31 20:02:09
you can do a:

typedef DWORD unsigned long
typedef LPVOID void*

dunno about a TCHAR, just have a look in windef.h i think.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2021-10-23  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0