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?
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)
3. 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.