Microsoft KB Archive/190165

= BUG: Compile errors when you use command line argument /MAKE =

Article ID: 190165

Article Last Modified on 4/27/2006

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190165



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.



Steps to reproduce the behavior
 Create a new IIS application in Microsoft Visual Basic. Double-click Designers in the Project Explorer window. Double-click WebClass1 in the Project Explorer window. Right-click Custom WebItems in the Project1 - WebClass1 window, and then select Custom WebItem. Double-click WebItem1 in the Project1 - WebClass1 window.</li>  In the WebItem1_Respond event, enter the following code: WebItem1.Properties("String") = "Test" </li> Save the project, and exit Microsoft Visual Basic.</li> Change the filename of "WebClass1.DCA" or delete it.</li> From a command line, type the following command:

c:\program files\devstudio\vb98\vb6.exe" /MAKE "c:\temp\project1.vbp

Note Modify the path information to correspond to the directories for both the installation of Microsoft Visual Basic and the saved project. Quotes should be used if the path contains long filenames.</li></ol>

<div class="references_section">