Microsoft KB Archive/190924

= Command Line Argument /MAKE Truncates User Documents =

Article ID: 190924

Article Last Modified on 10/21/2005

-

APPLIES TO


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

-



This article was previously published under Q190924



SYMPTOMS
When you use the Microsoft Visual Basic command line argument /MAKE to compile an ActiveX .exe document, user documents may get truncated.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

Note You must have a Visual Studio license agreement to obtain this hotfix.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of this fix should have the following file attributes or later:   Date          Version      Size      File name --  18-Sep-2001   6.0.93.56    1.79 MB   VB6.exe



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
 Start Microsoft Visual Basic, and then create a new ActiveX Document EXE. By default, UserDocument1 is created. In the Project window, double-click User Documents. In the Project window, right-click UserDocument1, and then click View Object. Set the Top property of UserDocument1 to 16000 .  Using the toolbox, create two labels on the form. Set the properties of the labels as follows: <pre class="fixed_text">     Name       Caption       Top ---      ---      Label1     "Top 8000"    8000 Label2    "Top 15000"   15000 </li> Save the project, and exit Visual Basic.</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. Use quotation marks if the path contains long file names.</li> In Microsoft Internet Explorer, open the UserDocument1.vbd file, which should reside in the same directory as the Visual Basic project that you created. Scroll down. Note that the first label is visible but the second is not.</li></ol>

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

<div class="references_section">