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

ID: Q194903

The information in this article applies to:

SYMPTOMS

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 this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

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.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/ 
   http://support.microsoft.com/support/java/ 

(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Adele Hunter, Microsoft Corporation.

Additional query words:

Keywords          : kbAddIn kbCOMt kbJava kbVJ kbVJ600bug 
Version           : WINDOWS:6.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: March 16, 1999