Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB6 compilation from command line

Anyone knows how to compile a vb6 webclass dll from a command line? I am trying to build a tool for automating version building, but it fails with an 'Compile Error in File '[file name]', Line xxxx : Variable not defined' alert displayed.

like image 624
Michal Dymel Avatar asked Jan 25 '09 20:01

Michal Dymel


1 Answers

Known bug:

SYMPTOMS

When you use command line arguments to compile a Microsoft Visual Basic project that contains WebClass designers, you may encounter errors.

CAUSE

When you use the command line argument /MAKE to compile the application, if the associated .DCA files for the Designers (.DSR) are not in the same directory as the .DSR files, you may encounter errors during the compiling. The .DCA files contain type library information that is necessary to compile the project.

RESOLUTION

Use one of the following workarounds to compile the project without errors:

  • Open the project in Visual Basic, and make a change in the project. Any change, such as entering a space and then deleting the space in the project, will suffice. Close Visual Basic, and save the changes. This rebuilds the .DCA files for the application in the same directory where the .DSR files are located.
  • Compile the application inside of the Visual Basic Integrated Development Environment (IDE). This also rebuilds the .DCA files for the application.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article...

like image 71
cmsjr Avatar answered Nov 10 '22 18:11

cmsjr