typedef void* t_handle

Windows specific forum
LiK137
Enthusiast
Enthusiast
Posts: 279
Joined: Wed Jun 23, 2010 5:13 pm

typedef void* t_handle

Post by LiK137 »

Hi,
not clear how to handle "typedef void* t_handle" cpp declaration in PureBasic?
Would be thankful if with examples.
And difference between "typedef void*" and "typedef void".
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: typedef void* t_handle

Post by nco2k »

void is nothing.
void* is a pointer.
void** is a pointer to a pointer.

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
LiK137
Enthusiast
Enthusiast
Posts: 279
Joined: Wed Jun 23, 2010 5:13 pm

Re: typedef void* t_handle

Post by LiK137 »

ThanQ nco2k,
Clear, Understood
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: typedef void* t_handle

Post by IceSoft »

Read also the wiki about "typedef"
https://en.wikipedia.org/wiki/Typedef
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
LiK137
Enthusiast
Enthusiast
Posts: 279
Joined: Wed Jun 23, 2010 5:13 pm

Re: typedef void* t_handle

Post by LiK137 »

Very brief information.
I read it and find that link very helpful.
Such Sado-Maso like "typedef struct MyStruct newtype;" from that link brings to mind "Goto" keyword. I walked backwards *.h include files to find out those typedefs.
Anyway, the link You provided made related problems clear. Very big thanks for that.
But it is very useful in manner of macros.
Post Reply