Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm having problems debugging a VB class to work inside AutoCad. (Previous question). This class references an Autocad dll.
So I thought I would part test this class by writing another application with code that says
Dim a as new cadclass
and step through.
When I try to step through, I get an error to say that the Autocad dll cannot be found!
Posted

The Autocad DLL may not be a .NET library. If it isn't then you cannot directly instantiate it's classes - you have to use Interop instead.
 
Share this answer
 
Comments
Stuart Nathan 23-Nov-11 7:18am    
I'm not that clever, and I don't understand Interop.

What I did was this.
In my AcadClass, (written in VB / VS2008 ) I added a reference to an Autocad dll - acdbmgd.dll
VS Properties description is "Implementation of the ObjectDBX .NET Managed Wrapper"
However it was not under the .NET tab

The object browser shows all the properties etc.

It compiles correctly.
My class is designed to be "inprocess" to AutoCad.
I went this route to debug part of my class because I could not attach AutoCad. I have now succeeded in this, so this is no longer necessary.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900