Message 1 of 3
Acad Mechanical 2005 GetInterfaceObject Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Everytime I try to access the McadApplication object or the GeApplication object in VB/VBA, I get a "Problem in loading application" error. I've reinstalled Acad Mechanical 2005 and I have ran mcadautoreg.exe. Nothing seems to fix this problem. Here is a snippet of code I'm using and, yes, I have referenced all the correct dll's. Has anybody got a sure way to fix this error?
Private Sub test()
Dim McadApp As McadApplication
Dim GEApp As GeApplication
Set McadApp = ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
Set GEApp = ThisDrawing.Application.GetInterfaceObject("Ge.Application")
End Sub
Private Sub test()
Dim McadApp As McadApplication
Dim GEApp As GeApplication
Set McadApp = ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
Set GEApp = ThisDrawing.Application.GetInterfaceObject("Ge.Application")
End Sub