DOCUMENT:Q190165 07-AUG-1998 [vbwin] TITLE :BUG: Compile Errors When Using Command Line Argument /MAKE PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== When using command line arguments to compile a Microsoft Visual Basic project containing WebClass designers, errors may be encountered. CAUSE ===== When using the command line argument /MAKE to compile the application, if the associated .DSA files for the Designers (.DSR) are not in the same directory as the .DSR files, errors may be encountered during the compiling. The .DSA files contain type library information that is necessary to compile the project. RESOLUTION ========== Either of the following two workarounds should allow the project to compile 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, saving the changes. This will rebuild the .DSA files for the application in the same directory where the .DSR files are located. - Compile the application inside of the Visual Basic IDE. This will also rebuild the .DSA files for the application. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a new IIS application in Microsoft Visual Basic. 2. Double-click "Designers" in the Project Explorer windows. 3. Double-click "WebClass1" in the Project Explorer windows. 4. Right-click "Custom WebItems" in the "Project1 - WebClass1" window, and 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. Exit Microsoft Visual Basic, saving the project. 8. From a command line, enter 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. Additional query words: kbDSupport kbVBp600bug kbWebClasses kbdss kbVBp ====================================================================== Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbbug ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.