Message 1 of 2
Late binding and enums

Not applicable
03-13-2006
02:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a program in VB.Net with option strict off.
I don't want to make a reference to any Autodesk dll in my project. I do this to remain independent on the version of AutoCAD.
I create an AutoCad Instance like this.
Dim m_AcadApp as Object = CreateObject("Autocad.Application")
everything is fine until I need a constant. The constants are in ObjectDBX.
I know if I were linked to the dll in my project I could use the constants like this:
AutoCAD.AcAlignment.acAlignmentBottomCenter
Can I use the enums without knowing their value. Or do I need to rewrite each of them with their value in my code.
I have a program in VB.Net with option strict off.
I don't want to make a reference to any Autodesk dll in my project. I do this to remain independent on the version of AutoCAD.
I create an AutoCad Instance like this.
Dim m_AcadApp as Object = CreateObject("Autocad.Application")
everything is fine until I need a constant. The constants are in ObjectDBX.
I know if I were linked to the dll in my project I could use the constants like this:
AutoCAD.AcAlignment.acAlignmentBottomCenter
Can I use the enums without knowing their value. Or do I need to rewrite each of them with their value in my code.