exporting classes

Started by
1 comment, last by SKREAMZ 22 years, 2 months ago
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
Blaaaaa Blaaaa Blaa errrrr!!!! Bla?
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!
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

This topic is closed to new replies.

Advertisement