Jump to content
  • Advertisement

Archived

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

Metal Typhoon

simple question about typedef....

This topic is 5683 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

what is this meaning ? typedef void (WINAPI *cfunc) (); changing void to something... i dont get it.. i''m learning how to load use a dll thx in advance
Metal Typhoon

Share this post


Link to post
Share on other sites
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!