Message 1 of 9
Problem in loading application

Not applicable
01-28-2008
07:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I get the message "Problem in loading application" when I run the following code (copied straight from the help
file).
It's occurs in AutoCad Map 2008.
Public m_Map As AcadMap
Public m_MapProject As Project
Private Sub Class_Initialize()
Set m_Map = ThisDrawing.Application. _
GetInterfaceObject("AutoCADMap.Application.2")
If m_Map Is Nothing Then
MsgBox "Unable to create AutoCADMap.Application Automation server."
End
End If
Set m_MapProject = m_Map.Projects(ThisDrawing)
If m_MapProject Is Nothing Then
MsgBox "Unable to get active map project."
End
End If
End Sub
Any help?
I'm Trying in AutoCad Map 2008
-lymajunior
file).
It's occurs in AutoCad Map 2008.
Public m_Map As AcadMap
Public m_MapProject As Project
Private Sub Class_Initialize()
Set m_Map = ThisDrawing.Application. _
GetInterfaceObject("AutoCADMap.Application.2")
If m_Map Is Nothing Then
MsgBox "Unable to create AutoCADMap.Application Automation server."
End
End If
Set m_MapProject = m_Map.Projects(ThisDrawing)
If m_MapProject Is Nothing Then
MsgBox "Unable to get active map project."
End
End If
End Sub
Any help?
I'm Trying in AutoCad Map 2008
-lymajunior