I am using [dllimport to import a delphi 7 DLL file into my project, but i have hit a point where i need to use different dll files based on the users input into the application.
for example, if the user was to press button 1, then dll "dllfile1.dll" would be loaded, button 2 would load "dllfile2.dll" etc. there are around 15 dll files that could potentially be used and all have the same entry method name.
Can anyone think of a good way around this programmatically without me putting in a [dllimport command for each file and then having to update the software each time i need to add / remove one of the dll files to be used? Also i guess with doing it this
way i couldnt just put all the imports into the same class as the entry methods are the same?
View Complete Post