COM API and multiple versions

When I create a COM program in VB.NET and add a reference to the Bricscad type library, I am required to select a library for only one version.  The program then runs only on the version that matches the reference added.  This can be a problem when some users are using older versions of Bricscad.  I have attempted to add multiple Bricscad references but Visual Studio does not allow that.  Is there a way to work around this other than creating a program version for each Bricscad version being used?

Comments

  • Hi James,

    I think you do have to create multiple executables.  I create multiple Projects within one Solution - each project has a target eg Bricscad 10, Bricscad 11, AutoCAD 2010 etc.  All my source code is in one of these projects only.  Then I add those source files to the other projects 'AS LINK'.  So there's only one set of source code files.

    Installer:  In Program Files under my program's folder I create multiple sub folders for these different program executables.  My toolbar commands launch 'someprogram.exe' without any path given.  I set the search path variable in CAD to include the correct subfolder.  So there's only one set of toolbars.  There may be other approaches, but that's what I do!

  • you can also try using late binding techniques

  • Damian: Thank you for your response.  I was hoping to avoid multiple executables but your method sounds good.

    Daniel: I have never used late binding but will do some research.  Thank you.

This discussion has been closed.