BUG: Error in Upgraded Visual J++ Project that Uses the Chart Control (325751)
The information in this article applies to:
- Microsoft Visual J# .NET (2002)
This article was previously published under Q325751 SYMPTOMS When you build an application that uses the Microsoft Chart
Control (MSChrt20.ocx) and that was upgraded to Visual J# .NET by using the
Visual J# Upgrade Wizard, you receive the following compiler error message:
Internal Compiler Error: jclass_decl.cpp(486)
CAUSE The DLL that TlbImp generates during the upgrade with the
wizard does not have a constructor, so the compiler assert is generated.
RESOLUTION To work around this problem, do not rely on the TlbImp DLLs
that the wizard generates. Instead, add a reference for MSChart20.ocx to your
project manually. You can do this in two ways:
- After the upgrade completes, remove any of the following
assemblies from the reference list, and then add the reference to the Microsoft
Chart Control 6.0 (MSChart20.ocx) manually by using the COM tab in the Add Reference dialog box:
- MSChart20Lib
- MSCOmctlLib
- MSDATASRC
- stdole
- On the first page of the wizard, click Finish to skip the upgrade step, and then manually add a reference to
Vjswfc.dll and MSChart20.ocx by using the Add Reference dialog box.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 1/28/2004 |
---|
Keywords: | kbbug KB325751 |
---|
|