• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

activeX compatible build tool for vb6

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?
0
kenshaw
Asked:
kenshaw
2 Solutions
 
SizeyCommented:
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.
0
 
PaulHewsCommented:
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:
http://support.microsoft.com/kb/q161137/

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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now