Microsoft KB Archive/194903

= FIX: JActiveX-Generated VC6 COM Wrappers Don't Compile in VJ6 =

Article ID: 194903

Article Last Modified on 8/25/2005

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q194903



SYMPTOMS
Compilation errors may occur after adding COM wrappers for some type libraries to a Microsoft Visual J++ project. For example, the following nine errors are generated when building a Visual J++ 6.0 Windows Application project that has added COM wrappers for "Visual C++ Shared Objects" (Devshl.dll) and "Visual C++ Project System" (Devbld.pkg):

BuildProject.java(94,40) : error J0061: The members 'Object IDispBuildProject.getConfigurations' and 'IConfigurations BuildProject.getConfigurations' differ in return type only

Configuration.java(20,39) : error J0063: Declare the class abstract, or implement abstract member 'void IDispConfiguration.setName(String newValue)'

Configuration.java(20,39) : error J0063: Declare the class abstract, or implement abstract member 'void IDispConfiguration.setParent(Object newValue)'

Configuration.java(20,39) : error J0063: Declare the class abstract, or implement abstract member 'void IDispConfiguration.setApplication(Object newValue)'

Configuration.java(20,39) : error J0063: Declare the class abstract, or implement abstract member 'void IDispConfiguration.setConfigurations(Object newValue)'

Configuration.java(48,40) : error J0061: The members 'Object IDispConfiguration.getConfigurations' and 'IConfigurations Configuration.getConfigurations' differ in return type only

Configurations.java(32,38) : error J0061: The members 'Object IDispConfigurations.getParent' and 'IBuildProject Configurations.getParent' differ in return type only

Configurations.java(41,39) : error J0061: The members 'Object IDispConfigurations.Item(Variant Index)' and 'IConfiguration Configurations.Item(Variant Index)' differ in return type only

Projects.java(35,40) : error J0061: The members 'Object IDispProjects.Item(Variant Index)' and 'IGenericProject Projects.Item(Variant Index)' differ in return type only



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in Visual Studio version 6.0 Service Pack 3.

For information on obtaining Service Pack 3 for Visual Studio, please see:

230731 INFO: Visual Studio 6.0 SP3 Readme: Part 7 - Visual J++



Steps to Reproduce Behavior

 * 1) Both Visual C++ 6.0 and Visual J++ 6.0 must be installed to reproduce this problem.
 * 2) Create a Windows Application in Visual J++ 6.0.
 * 3) From the Project menu, select Add COM Wrapper.
 * 4) Click the Browse button and navigate to Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\Ide. In the Files of Type drop-down list, select All Files(*.*). Select the file Devbld.pkg, and click the Open button.
 * 5) Click the Browse button and navigate to Program Files\Microsoft Visual Studio\Common\MSDev98\Bin, select the file Devshl.dll, and click the Open button.
 * 6) Make sure the check boxes beside Visual C++ Project System and Visual C++ Shared Objects are selected and click OK on the COM Wrappers dialog box.
 * 7) From the Build menu, select Rebuild.

The above nine errors will appear in the Visual J++ 6.0 Task List.

