activeX compatible build tool for vb6

Posted on 2005-04-27
Last Modified: 2008-02-26
i've got a project built in vb6 where i've got one activeX exe that is then shared by 4 EXE projects.

my build process is quite cumbersome - i have to build the activeX exe and then open up each of the standard EXE projects, remove the reference to the activeX EXE, add the reference again - and then compile.  if i compile straight away (without removing and readding the reference to the activeX EXE) there is always a compile error when my activeX EXE is called - with VB6 saying it can't find the activeX EXE.

i'm wondering - are there any automated build tools out there that could do this for me?

i tried using Visual Build Professional - as it supports building multiple vb6 project in whatever order you like - but i couldn't get it to remove the references to the ActiveX EXE adn then readd them.  Is there any way to do this with an automated build tool out there on the market?
Question by:kenshaw
    LVL 2

    Accepted Solution

    I don't know of any tools like that, but I may have another solution.

    What version compatability mode have you set for your ActiveX exe?  (on the "component" tab of project properties).

    If it is set to "No compatability" then you will always have to re-compile the Exe projects that use it.  The other two modes allow flexibility when no external changes are made (ie: all exposed Subs/Functions keep the same names/parameters).  

    For more details of which of the other options to select you would be best to press the help button on that screen.
    LVL 38

    Assisted Solution

    Sizey is right that the compatibility options will help you out.

    You need to select project or binary compatibility.  Here's a guide on when you use one or the other:

    Basically you use project compatibility when you are developing and debugging your Active X component and switch to Binary compatibility once your interface is stable.

    Also, once you've got the problem of references fixed, then you can create a batch file to compile or create a VB program that uses the shell command.  The command line parameters to build a VB project are as follows:

    Vb6.exe /make projectname[.vbp] [exename]
    or for a DLL
    Vb6.exe /makedll projectname[.vbp] [dllname]

    There are other switches you can use as well that are documented under "Working with Command Line Switches" in the help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now