In-process or Out-of-process?

Discussion in 'AutoCAD' started by Danny P., Aug 26, 2004.

  1. Danny P.

    Danny P. Guest

    I have a scenario where I would like to know if the code is in AutoCAD's
    memory space or not. It's too deep for me to figure out. ;-)

    I create in VB an executable called MyApp.exe and a separate DLL called
    MyDLL.dll

    In MyApp.exe is this code (with the proper references):

    Dim objApp As AcadApplication
    Dim MyClass As MyDLL.MyClass
    Set objApp = CreateObject("AutoCAD.Application")
    Set MyClass = objApp.GetInterfaceObject("MyDLL.MyClass")
    MyClass.MyFunction

    Is MyFunction running at optimum speed in this situation? I'm guessing not.

    Is there another, cleaner, way to run functions inside of AutoCAD's
    memory space from an external EXE? In my situation, an external EXE is
    desired.

    Thanks in advance for your help!
    -Danny Polkinhorn
    WATG
    Honolulu
     
    Danny P., Aug 26, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.