BUG: Command Line Argument /MAKE Truncates User Documents

ID: Q190924


The information in this article applies to:
  • Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0


SYMPTOMS

When using the Microsoft Visual Basic command line argument /MAKE to compile an ActiveX Document EXE, User Documents may get truncated.


RESOLUTION

Open the project in Visual Basic and compile the project from the IDE.


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

  1. Start Microsoft Visual Basic, creating a new ActiveX Document EXE. UserDocument1 will be created by default.


  2. In the Project window, double-click User Documents.


  3. In the Project window, right-click UserDocument1, and click View Object.


  4. Set the Top property of UserDocument1 to 16000.


  5. Using the Toolbox, create two labels on the form, setting the following properties:
    
          Name       Caption       Top
          ----       -------       ---
    
          Label1     "Top 8000"    8000
          Label2     "Top 15000"   15000 


  6. Save the project, and exit Visual Basic.


  7. 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.


  8. Using Microsoft Internet Explorer, open the file UserDocument1.vbd, which should reside in the same directory as the project created above. Scroll down and note that the first label is visible but the second is not.


NOTE: The height to which the UserDocument is truncated depends on the video resolution of the development machine. For instance, non-exhaustive testing found that on a machine with 800x600 resolution, the UserDocument was truncated to 8775 twips (6.1 inches). On a machine with 1024x768 resolution, the UserDocument was truncated to 8+ inches.


REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

Q190165 BUG: Compile Errors When Using Command Line Argument /MAKE

Additional query words: kbdss kbDSupport kbVBp kbVBp600bug kbCompiler kbIDE

Keywords : kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.