C++ typedef and PureBasic

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

C++ typedef and PureBasic

Post by SFSxOI »

I have this i'm converting from something for Vista DWM

Code: Select all

typedef HANDLE HTHUMBNAIL;
typedef HTHUMBNAIL* PHTHUMBNAIL;
I know the 'typedef HANDLE HTHUMBNAIL;' part will end up looking like a thumbnail handle probably for PB but i'm not sure about the 'typedef HTHUMBNAIL* PHTHUMBNAIL;' - - or is is a pointer to handle to a thumbnail in PB? or how would it look in PB?

or is it 'Define <variable>.<type>' but then does it matter what the type is? I'm always confused over the C++ 'typedef' when converting something to PB.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I'd put both of them as longs.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

> or is is a pointer to handle to a thumbnail in PB?

seems so, from the abbreviation...

if they are sole handle/pointer, it's possible to declare them LONG as Trond suggested,
but perhaps better look them up in the MSDN if they happen to be structures....
oh... and have a nice day.
Post Reply