Jump to content
  • Advertisement
Sign in to follow this  
nsto119

Modularizing programs into DLLs - avoiding circular dependencies.

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

So, in the past I've never really felt the need to modularize my program into DLLs - I had set requirements that didn't change, so i didn't feel like wasting the effort. My latest program has different requirements, and I figure that since I do so much graphics programming, it'd be in my best interest to make something that's easily reusable and upgradable without too much code copying. Being that I've never done anything like this, I'd really like to hear the best way to have so many DLLs without any corcular dependencies. I've spent all of... 30 minutes thinking of a solution, and this is what I came up with: http://img118.imageshack.us/my.php?image=engra1.jpg Am I way off base here? If I am, I'll attribute it to the fact that I just had 4 teeth pulled and am still a bit loopy from the anisthetitc.

Share this post


Link to post
Share on other sites
Advertisement
What interface(s) does interface.dll export?

How does interface.dll get the implemenation of the interfaces it exports?

Share this post


Link to post
Share on other sites
Interface.dll would export an instance of the IEngine (or whatever you'd like to call it) interface, which would be implemented by an Engine class in the executable.

I'm using C#, and the plan was to have interface.dll be the only dll directly refrenced by any assembly. all other DLLs would be loaded by the executable dynamically.

[Edited by - nsto119 on September 6, 2006 7:36:42 AM]

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!