Ok maybe one more dll question

Discussion in 'AutoCAD' started by Heath, Feb 5, 2004.

  1. Heath

    Heath Guest

    In AutoCAD VB IDE you go to tools/reference and select the dll file you
    want. Is it possible to load these programmatically within my program rather
    then selecting them manual?

    Thanks again,
    Heath
     
    Heath, Feb 5, 2004
    #1
  2. That's exactly what you're doing when your code
    calls GetObject() or another sub that creates an
    ActiveX object. The loading of the DLL is done
    transparently by Windows.

    Do you mean to dynamically add references to your
    project at runtime? What for? The only purpose
    of referencing the type library of a class at
    design time, is for the purpose of code checking,
    intellisense, and early vtable-binding (vb binds
    method calls to the virtual method table of the
    ActiveX object and does not have to look up the
    methods address each time you call it, in that
    case).

    If you did not reference the type library at
    design time, you could not declare or use classes
    or types defined in the type library, and hence,
    you would have to declare all classes from same
    "As Object".
     
    Tony Tanzillo, Feb 6, 2004
    #2
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.