AcFocus & ACAD 2002/2004

Discussion in 'AutoCAD' started by tacito, Nov 1, 2004.

  1. tacito

    tacito Guest

    I have a vba app that uses the acfocus control. However it is used in machines that have ACAD 2002 and other ones that have ACAD 2004.
    Is it necessary to change acfocusctrl.dll by acfocusctrl16.dll in all forms when using ACAD 2004 ?
    What is the best way for apps that run in different versions of ACAD ?
    Thanks,
    Tacito Fieker
     
    tacito, Nov 1, 2004
    #1
  2. tacito

    mccad Guest

    Write like this:

    If Left(ThisDrawing.Application.Version, 2) = "15" Then
    Set VL =
    ThisDrawing.Application.GetInterfaceObject("VL.Application.1")
    ElseIf Left(ThisDrawing.Application.Version, 2) = "16" Then
    Set VL =
    ThisDrawing.Application.GetInterfaceObject("VL.Application.16")
    End If

    ====
    http://www.mjtd.com
    http://bbs.mjtd.com
     
    mccad, Nov 4, 2004
    #2
  3. tacito

    tacito Guest

    I didn´t understand how to apply this sample for ACFOCUS controls.
    Is it necessary to reference the DLL ?
    How to insert the component for each form ?

    Could you give me more details ?
    Thanks,
    Tacito
     
    tacito, Nov 5, 2004
    #3
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.