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



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

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.

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


Modification Type:MajorLast Reviewed:4/27/2006
Keywords:kbBug kbpending kbWebClasses KB190165