J
Jake Thompson
Does anybody know the answer to the following issue
I am using the standard LoadLibary function fromn MSN
It is called from a "C" exe to load up a C++ DLL
The C++ DLL has an import statement to create a pointer to a VB.net
com interopt program.
I am using the TLB instead of the DLL. In the past (which always
worked) I used the DLL extention but the program the dll interfaced
with was written in standard COM for VB.6 and not .net.
Now that the interface program is writen in .net com interopt my
loadlibrary call to my DLL will not respond. No timeout, no error just
hangs.
Is this a unmanaged to managed thing, a compiler setting issue, or
just can't get there from here using LoadLibrary.
I am open to ideas but note that the main legacy system is written in
"C" and the easist way at the to access the original VB program was
through Globalprocs and smartpointers.
UIltimately what I would like to do is skip the C++ and go straight to
the .net module from "C" - grab my data and bring it back to the
legacy program but again that would be much more difficult from my
understanding. I don't have a problem reworking the C++ program but is
that really my problem? It seems that the real problem is the
LoadLibrary call and that it just doesnt like the TLB file even though
the C++ program will find the functions and compile correctly.
So I hope someone can offer advice as to what options I have or what I
can try to get around this mess.
Any ideas?
Thanks
I am using the standard LoadLibary function fromn MSN
It is called from a "C" exe to load up a C++ DLL
The C++ DLL has an import statement to create a pointer to a VB.net
com interopt program.
I am using the TLB instead of the DLL. In the past (which always
worked) I used the DLL extention but the program the dll interfaced
with was written in standard COM for VB.6 and not .net.
Now that the interface program is writen in .net com interopt my
loadlibrary call to my DLL will not respond. No timeout, no error just
hangs.
Is this a unmanaged to managed thing, a compiler setting issue, or
just can't get there from here using LoadLibrary.
I am open to ideas but note that the main legacy system is written in
"C" and the easist way at the to access the original VB program was
through Globalprocs and smartpointers.
UIltimately what I would like to do is skip the C++ and go straight to
the .net module from "C" - grab my data and bring it back to the
legacy program but again that would be much more difficult from my
understanding. I don't have a problem reworking the C++ program but is
that really my problem? It seems that the real problem is the
LoadLibrary call and that it just doesnt like the TLB file even though
the C++ program will find the functions and compile correctly.
So I hope someone can offer advice as to what options I have or what I
can try to get around this mess.
Any ideas?
Thanks