Jump to content
  • Advertisement

Archived

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

theprogrammer

Customized Engine in Runtime

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

Hi, everybody? What''s up? I was looking into Unreal Tournament''s folder and I found some dynamic link libraries like OpenGLDrv.DLL and D3DDrv.DLL. In UT you can change video configurations only outside the game itself. Anyway, for UT, it doesn''t matter if you get OpenGL or Direct3D, the game will run in the same way. I want to do the same thing for my Graphics Engine. I used OOP in order to create an abstract way to deal with surfaces and the graphic driver. Of course I didn''t go too deep because I don''t want a slow code. So my question is : How can I create a DLL, link it at runtime in my program and use the objects inside the DLL ? BTW, I''m using Borland C++ Builder.... Thank you very much! TheProgrammer

Share this post


Link to post
Share on other sites
Advertisement
COM is a method of exposing objects from dll''s.
You need the enterprise edition of C++ Builder to build or use COM objects, $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.

Alternatively you could make a dll function that instances your graphics engine and returns a pointer to it, and use the same header in both dll''s and the game engine.




Magmai Kai Holmlor
- The disgruntled & disillusioned

Share this post


Link to post
Share on other sites
I tried that, but C++ Builder compiler couldn''t find the methods'' address into the DLL. In fact, I don''t know EXACTLY how to do it 8).

Thanks a lot.

TheProgrammer

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!