Message 1 of 3
Converting code to .dll file. Problems with 2009.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I don't understand the problem here but hopefully someone will make sense of it.
I've have some code that I converted using VB6.0 for use from a .dll file.
It used to work ok using a reference to AutoCAD/ObjectDBX common 17.0 Type Library but maybe it's because I now have 2009 that I can't successfully convert it to a .dll file.
Now I get the error "Automation error Classfactory, cannot supply requested class" when trying to open a document using the following.
Dim DbxDoc As New AxDbDocument
DbxDoc.Open "C:\Profile.dwg"
Most of my variable types are set to As Object (late binding apparently) but I can't Dim DbxDoc As New Object
Any suggestions very welcome.
I've have some code that I converted using VB6.0 for use from a .dll file.
It used to work ok using a reference to AutoCAD/ObjectDBX common 17.0 Type Library but maybe it's because I now have 2009 that I can't successfully convert it to a .dll file.
Now I get the error "Automation error Classfactory, cannot supply requested class" when trying to open a document using the following.
Dim DbxDoc As New AxDbDocument
DbxDoc.Open "C:\Profile.dwg"
Most of my variable types are set to As Object (late binding apparently) but I can't Dim DbxDoc As New Object
Any suggestions very welcome.