Jump to content
  • Advertisement

Archived

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

SKREAMZ

exporting classes

This topic is 6007 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

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
Advertisement
(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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!