importing a .net dll into VC6
-
I have searching for hours now trying to figure this one out. I have a .NET dll, not my own, which I wish to import into my project. From what I have read, and I may be wrong, I need to import it as a COM object. So I have tried
#import "net.dll"
which results in: fatal error C1083: Cannot open type library file: 'net.dll': Error loading type library/DLL. This leads me to believe that the dll has no type library. When I have included my own VB dlls using the same method, I have no problems, the .tli and .tlb files are generated. Is there another way to do this?
-
I have searching for hours now trying to figure this one out. I have a .NET dll, not my own, which I wish to import into my project. From what I have read, and I may be wrong, I need to import it as a COM object. So I have tried
#import "net.dll"
which results in: fatal error C1083: Cannot open type library file: 'net.dll': Error loading type library/DLL. This leads me to believe that the dll has no type library. When I have included my own VB dlls using the same method, I have no problems, the .tli and .tlb files are generated. Is there another way to do this?
-
I have searching for hours now trying to figure this one out. I have a .NET dll, not my own, which I wish to import into my project. From what I have read, and I may be wrong, I need to import it as a COM object. So I have tried
#import "net.dll"
which results in: fatal error C1083: Cannot open type library file: 'net.dll': Error loading type library/DLL. This leads me to believe that the dll has no type library. When I have included my own VB dlls using the same method, I have no problems, the .tli and .tlb files are generated. Is there another way to do this?
You can't do .net programming with VC6. The best you can do is make the DLL have a CCW (COM callable wrapper) and then VC6 will see it as just another COM server.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
You can't do .net programming with VC6. The best you can do is make the DLL have a CCW (COM callable wrapper) and then VC6 will see it as just another COM server.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Michael Dunn wrote:
You can't do .net programming with VC6.
does that mean I can't code VB in VC either :p The dll I am trying to use is from a sourceforge project which has been coded in C#. I do not have the means to compile from source therefore I have to download the precompiled version. So I suppose my question is, to make this work in my project, would I have to change anything within the .net dll?