installing a NET interCOM dll
Not applicable
09-17-2005
06:56 AM
i have developped an acad application, it has some dll's called from a vba macro of autocad, i have no problems to call the vb6 dlls, but im having lot of problems to call a net dll
if i compile the net dll with VS2003 and chek 'register for com interoperability' there is no problem
i can call the dll from the autocad vba macro on this way
Set VB6DLLG = ThisDrawing.Application.GetInterfaceObject("ClassLibraryG.ComClassG")
VB6DLLG.Main
VS2003 register the assembly as private, and it appears on C:\WINDOWS\assembly\download as private, with no key or strongname
but now i want to test the installer, so i unchek 'register for com interoperability' on VS2003 and compile
then i run %windir%\Microsoft.NET\Framework\v1.1.4322\regasm.exe /codebase /tlb "C:\Program Files\programa\ClassLibraryG.dll"
and create the tlb library for COM, but then i cant call the classes, it gimme error -2147024894 (80070002) in the autocad vba macro
the error is the same if i add a reference to tlb library in the VBA IDE of autocad
the vba, dll and tlb are on the same directory C:\Program Files\programa\
so i really dont know where is the problem, anybody knows?
thanks in advance
if i compile the net dll with VS2003 and chek 'register for com interoperability' there is no problem
i can call the dll from the autocad vba macro on this way
Set VB6DLLG = ThisDrawing.Application.GetInterfaceObject("ClassLibraryG.ComClassG")
VB6DLLG.Main
VS2003 register the assembly as private, and it appears on C:\WINDOWS\assembly\download as private, with no key or strongname
but now i want to test the installer, so i unchek 'register for com interoperability' on VS2003 and compile
then i run %windir%\Microsoft.NET\Framework\v1.1.4322\regasm.exe /codebase /tlb "C:\Program Files\programa\ClassLibraryG.dll"
and create the tlb library for COM, but then i cant call the classes, it gimme error -2147024894 (80070002) in the autocad vba macro
the error is the same if i add a reference to tlb library in the VBA IDE of autocad
the vba, dll and tlb are on the same directory C:\Program Files\programa\
so i really dont know where is the problem, anybody knows?
thanks in advance
Link copied