Jump to content
  • Advertisement
Sign in to follow this  
Chuck300

Object Oriented Design and DLLs

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

How can I combine an Object Oriented Design and DLLs, with and without delivering the source code to any engine-end-user???

Share this post


Link to post
Share on other sites
Advertisement
Define your objected oriented design by declaring corresponding class interfaces exported from the DLL. Internally, the DLL uses classes that actually implement the exported interfaces but which are not exported and hence are not visible from outside the DLL.

Share this post


Link to post
Share on other sites
Quote:
Original post by Waterwalker
Define your objected oriented design by declaring corresponding class interfaces exported from the DLL. Internally, the DLL uses classes that actually implement the exported interfaces but which are not exported and hence are not visible from outside the DLL.


Yes and that's the problem I want to create a dll with a lot of overloaded functions, operators and also templates, which are accessible from outside the dll.
Is there any application creating those dlls.
For example it could create a dll from a class and implement every overloaded function.
It could look like this:
INT example_1i3f(INT, FLOAT, FLOAT, FLOAT);
INT example_2i3f(INT, INT, FLOAT, FLOAT, FLOAT);

Now I/it can build a static library and delete those strange postfixes.
It would look like this:
class Example{...
example(INT A, FLOAT B, FLOAT C, FLOAT D){return example_1i3f(A,B,C,D);}
example(INT A, INT B, FLOAT C, FLOAT D, FLOAT E){return example_2i3f(A,B,C,D,E);}
...
}
Usually I did this by hand but it gets very complicated in very complex cases.

So is there any tool providing those functionalities???

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!