I want to write the DLL in VB6 but have the capability to use
C if I want to make an intermediate DLL. Just to clarify one point,
I'm not wanting to use variable function names, just the DLL file name
itself. In VB.net you can specify the DLL file name as a variable and
call a function in a VB.net created DLL or a C DLL but you can't
call a VB6 created DLL (which is what I really want to do) At this
point the calling program will be VB.net but the DLL's would be
best to be VB6.
One option would be to have the VB.net program call the C DLL
with the variable DLL name and the C DLL is hardcoded to call
the VB6 DLL, kind of a kludge though.
Steve
"J French" <er*****@nowhere.com> wrote in message
news:40****************@news.btclick.com...
On Sat, 12 Jun 2004 18:14:23 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
Thanks for your response. What I want to do is assign a DLL
at run time so I can add DLL's later on without having to change
the program. Each DLL will have the same function names and
method of calling them, just different file names.
I would store the DLL file names in a startup file and just
modify that when a new DLL is added.
Are you suggesting that if the function names are constant
then the API LoadLibrary would work?
Are you writing these DLLs yourself
- and if so in which language ?
If you are writing 'real' DLLs yourself then what you want to do is
pretty easy, you will just need to write another DLL that contains
procedures/functions that can call other procedures/functions by
address.