Archived

This topic is now archived and is closed to further replies.

Metal Typhoon

simple question about typedef....

Recommended Posts

That defines a function pointer type for function pointers that point to a function with the prototype:
void WINAPI myfunc();


[edited by - Asgard on November 1, 2002 5:48:17 PM]

Share this post


Link to post
Share on other sites
It makes a type that is a function pointer, for functions that take no parameters and return nothing (with whatever storage modifiers WINAPI is defined as). And it calls the type cfunc.

Share this post


Link to post
Share on other sites
so if i want to typedef a function that returns a poointer it should be like this ?

typedef RETURNTYPE (WINAPI *NAME) (); ???
and one last question how would u export a class...

extern "C"_declspec (dllexport)

// CLASS

?? or do i have to do in every fucntion definition for the class ?

thx alot..

Metal Typhoon

Share this post


Link to post
Share on other sites