Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5968177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:03:07+00:00 2026-05-22T20:03:07+00:00

Up until now I’ve only used DLL’s as a source for plugins in my

  • 0

Up until now I’ve only used DLL’s as a source for plugins in my applications.

But I know that using DLL’s will allow me to update my program “client side” a lot easier the re-downloading the main EXE all time.

The problem is, I cant seem to find an effective way to use dll’s in my application, or to use them in a way that would impact the program, but not force me to change the way the entire program works.

The “application” in this instance is an XNA Game.

So for example, I have three main classes (excluding the main game Class)

Units
Players
Networking.

I would like to have the Units/Players in one DLL, and the Networking in another DLL, or at least move the networking to a separate DLL, But the way the networking class works and is coded would require the DLL to have a reference to the Game, and the Game to have a reference to the DLL, which is prevented in Visual Studio to prevent circular dependencies.

My question, is how can I effectively use a DLL to store my networking class, I have a couple of ideas, but I’m not sure how feasible any of them is yet.

What I would like, if possible, would be to have the entire networking instance running from the dll, sending receiving, and updating the game data as needed.

But so far I have only been able to come up with a way to have the receiving and sending in the Main game.exe and move the handling functions into the dll, and even then, the handling functions cannot (easily) communicate with the game.

I also thought of using the Plugin System, but that requires me to use Delegates for all my functions that I want to use in the Networking DLL, and seems very inefficient in the long run.

If this sort of thing cant be done with DLL’s (back and forth communication between the Host program and dll), then what use are they anyway?

Sure I can have simple functions, like my “Color” class, to parse and return color codes, but simple things aren’t going to change, and need to be updated.

Anyway, I always tend to ramble about things that don’t matter (for the most part), so thanks for taking a look, and for any responses 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:03:07+00:00Added an answer on May 22, 2026 at 8:03 pm

    OK – so you have 3 classes with dependencies on each other.

    Can you change the relationship so that instead of one class referencing another, instead you reference an interface?

    E.g. ClassA has a method which uses ClassB – MethodB1
    ClassB implements interface IB, so now Class A has instead a reference to IB

    Put all your interfaces in a separate assembly.
    Now A, B and C have no reference to each other – just to the interface class.
    In your executable use Dependency Injection to wire up the Concrete class implementations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Until now I've been only writing console applications but I need to write a
Up until now I have been using std::string in my C++ applications for embedded
Until now I've always used the ASP.NET MVC framework source for debugging ASP.NET MVC.
Until now, I have not create any massive applications using ASP.Net. However, I am
Until now I've been used to using DAOs to retrieve information from databases. Other
Until now I have only used git packages with gem: gem install <package> Haven't
Until now I have been using XML parsing in my application, but I recently
I've got a CodeIgniter project that until now has been only run remotely (it
I am using Java RMI and until now just used the following VM arguments
I have a codebase that (until now) used git to store its dependencies. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.