late binding on VB6

Discussion in 'AutoCAD' started by kipshas, Mar 16, 2005.

  1. kipshas

    kipshas Guest

    Hi all,
    I want to create version independent VB6 ActiveX dll for AutocadMaps
    (2004,2005,2006). Your sugestion how to do this??

    In my opinion:
    With AutoCAD everithing is ok sample code:

    public g_acadProgr as Object
    Set g_acadProgr = GetObject(, "AutoCAD.Application")
    If Err Then
    Err.Clear
    If Err Then
    msgbox "No acad runing"
    Exit Sub
    End If
    End If

    but Map is interface object of AutoCad and I can access it with:

    Set g_amap = g_acadProgr.GetInterfaceObject("AutocadMAP.Application.2")
    '2004 Map
    "AutocadMap.Application.3"
    'in 2005 Map

    Now I thinking how to get version of AutocadMap user is running and calling
    my dlll.... do ACADVER System Variable hepled me?? Or another soliution to
    put this string (AutocadMap.Application.3) into a registry when setup
    program of my application runs....
    Thank you for any sugestions.
     
    kipshas, Mar 16, 2005
    #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.