: Hi!
:
: I have a main program and several (from 3 to 300) little dll's.
300... talking about overkill ;)
Is there no way you can do with one DLL and a data file? :P
:The main program has to call about 5 of the dll's functions. At devel
: time I know the names and parameters of the functions, but not the
: dll's name (so that's a variable). What I'd like to make is
: dim d as string = "out.dll"[/code]: and then doing something like
: <DLLImport(d)>.Func(4, 12)
: All of the dll's knows that same 5 public functions, but all of them
: produce a different result. Both the main program and the dll's are
: written in VB2005.
:
I don't have VB2005 installed on this computer, so I can't check.
There is an API called LoadLibrary() and GetProcAddress() that can be used to get C-style functions from DLL's. But those are C dlls and I highly doubt VB2005 exports them as such.
How did you expose the functions? Are they in a Class, or in some kind of public module?
Best Regards,
Richard
The way I see it... Well, it's all pretty blurry