Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm busy with a app that needs to call a sub in a DLL to which I don't know the name. In other words, the DLL name will be supplied in a registry setting and the app will then need to call a sub in that DLL.

 

Sort of like a plug-in. The problem is that I can't reference the DLL because I won't know the name of the DLL until run-time. Is this even possible?

Posted

You need the System.Reflection namespace

Create an Assembly class for the DLL (If it's a .Net DLL)

You need to create an instance of the class that owns the function(This should implement a certain Interface)

Then you can access the functions, There is a tutorial in the Tutor's section or you can use the search feature on the forums

.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...