Microsoft KB Archive/235119

= PRB: No Version Info if COM DLL/EXE Is Built Under Windows Me/98/95 =

Article ID: 235119

Article Last Modified on 9/27/2004

-

APPLIES TO

 Microsoft Visual FoxPro 6.0 Professional Edition, when used with:  Microsoft Windows 95

 Microsoft Windows 98 Standard Edition

 Microsoft Windows Millennium Edition 

-

<div class="notice_section">

This article was previously published under Q235119

<div class="symptoms_section">

SYMPTOMS
When the properties of a Visual FoxPro COM server, either EXE or DLL, (created with Visual FoxPro 6.0 with the Visual Studio 6.0 Service Pack 3, Service Pack 4, or Service Pack 5 updates) are displayed, there is not a version tab even though version information was entered into the EXE or DLL when it was built.

<div class="resolution_section">

RESOLUTION
Build the EXE or DLL with Visual FoxPro 6.0 running on the Windows NT or Windows 2000 operating systems instead of on Windows Millennium Edition (Me), Windows 98, or Windows 95.

<div class="moreinformation_section">

MORE INFORMATION
This problem only occurs with Visual FoxPro 6.0 with the Visual Studio 6.0 SP3, SP4, or SP5 updates, running on Windows Me, Windows 98, or Windows 95. The original release of Visual FoxPro 6.0, without the Visual Studio 6.0 SP3, SP4, or SP5 updates, does not exhibit this problem.

To determine if you have the Visual Studio 6.0 SP3, SP4, or SP5 updates, on the Visual FoxPro Help menu, select About Microsoft Visual FoxPro. The version will be listed as "Microsoft Visual FoxPro 6.0 SP#."

In addition, this only happens to COM servers. Run-time EXEs that do not have an OLEPUBLIC class do not have this problem. Note that to build a DLL from a Visual FoxPro project, there has to be at least one OLEPUBLIC class in the project.

Steps to Reproduce Behavior
<ol> With Visual FoxPro 6.0 installed on Windows Me, Windows 98, or Windows 95, create a new project named test.pjx.</li> Install Visual Studio 6.0 SP3, SP4, or SP5. This will make several updates to your installation of Visual FoxPro 6.0.</li> Using Visual FoxPro 6.0, create a new project named test.pjx.</li>  Add a new program file to the project. Place the following code in the program file and save it as test.prg: * This is a comment </li> Add a new class to the project. Name it "test," base it on the custom class and save it in test.vcx.</li> With the Class Designer open, choose the Class Info command from the Class menu. Check the OLE Public checkbox. Choose OK to exit and save the class.</li> In the Project Manager, choose the Build button.</li> In the Build Options dialog box, choose the Version button and enter a version number and any other information desired.</li> Build your choice of a:  Win32 executable / COM server (exe)</li> Single-threaded COM server (dll)</li> Multi-threaded COM server (dll)</li></ul> </li> Once test.exe or test.dll is built, go to Windows Explorer and select the file. Right-click the file and choose Properties from the Short Cut menu. The ALT+ENTER key combination can also be used to bring up the properties once the file is selected.</li> Note that there is no version tab in the properties sheet for the file. The version and any other information that was entered is not there either.</li></ol>

Additional query words: AGetFileVersion

Keywords: kbbug kbprojmanager kbprb kbpending KB235119

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.