Archived

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

SKREAMZ

exporting classes

Recommended Posts

if ive got a dll and i load that dll using loadlibrary() in my exe which contains a class how would i make it so the dll can call the exe''s classes functions i hope that made sense tnx skreamz

Share this post


Link to post
Share on other sites
(It would be much easier to understand if you took the time to use proper English grammar (or at least a closer approximation).)

I believe that there is an article in the GDNet articles section on that very topic. Try a search for "dll" and "class" and you should find it.

Good Luck!

Share this post


Link to post
Share on other sites
Well if you want to call functions from a class in the DLL in the EXE, there''s an article on how to do that here on GameDev (some Windows specific section)

If you want to call a member function from a class in a DLL... which is a little weird since that''s quite opposite from the general DLL/EXE relationship.. you can probably pass a pointer to the class to a exported DLL function and as long as the DLL knows the structure of the class it can call the member function like normal

Share this post


Link to post
Share on other sites