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

This article was previously published under Q190165
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
When you use command line arguments to compile a Microsoft Visual Basicproject that contains WebClass designers, you may encounter errors.
CAUSE
When you use the command line argument /MAKE to compile the application, ifthe associated .DCA files for the Designers (.DSR) are not in the samedirectory as the .DSR files, you may encounter errors during thecompiling. The .DCA files contain type library information that isnecessary to compile the project.
RESOLUTION
Use one of the following workarounds to compile the projectwithout 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.
MORE INFORMATION

Steps to reproduce the behavior

  1. Create a new IIS application in Microsoft Visual Basic.
  2. Double-click Designers in the Project Explorer window.
  3. Double-click WebClass1 in the Project Explorer window.
  4. Right-click Custom WebItems in the Project1 - WebClass1 window, and then select Custom WebItem.
  5. Double-click WebItem1 in the Project1 - WebClass1 window.
  6. In the WebItem1_Respond event, enter the following code:
          WebItem1.Properties("String") = "Test"					
  7. Save the project, and exit Microsoft Visual Basic.
  8. Change the filename of "WebClass1.DCA" or delete it.
  9. 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.
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
190924 Command line argument /MAKE truncates user documents
DCA
Properties

Article ID: 190165 - Last Review: 02/21/2014 00:29:41 - Revision: 2.1

  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • kbnosurvey kbarchive kbbug kbpending kbwebclasses KB190165
Feedback