Jump to content
Software FX Community

Migrating from ChartFX Client Server 5.1 (COM Visual Studio 2003 with MFC) to ChartFX Client Server 6.2(COM Visual Studio 2003 with MFC)


User (Legacy)

Recommended Posts

Posted

We are in the process of migrating from ChartFX Client Server 5.1 (COM

Visual Studio 2003 with MFC) to ChartFX Client Server 6.2(COM Visual Studio

2003 with MFC)

In 5.1 we used

echo Registering ChartFX components

regsvr32 /s ..\..\Dependencies\ChartFX\cfx4032.ocx

regsvr32 /s ..\..\Dependencies\ChartFX\sfxbar.dll

#import "sfxbar.dll" no_namespace no_implementation

#import "Cfx4032.ocx" no_namespace no_implementation

CWnd m_ChartFX;

IChartFXPtr m_pChartFX;

// ***CFX***

CComBSTR bstrLic("license string");

m_ChartFX.CreateControl(__uuidof(ChartFX), NULL, WS_VISIBLE, rc, this,

m_nID,NULL,NULL,bstrLic /* LICENSE STRING SHOULD GO HERE */ );

// Attach to Chart pointer

m_pChartFX = m_ChartFX.GetControlUnknown();

In 6.2 we doing:

echo Registering ChartFX components

regsvr32 /s ..\..\Dependencies\ChartFX\ChartFX.ClientServer.Core.dll

#import "ChartFX.ClientServer.core.dll" rename_namespace("Cfx62")

rename("min","minX") rename("max","maxX")

exclude("_CollectionBase","_Component","CollectionBase","Component")

CWnd m_ChartFX;

Cfx62::_ChartPtr m_pChartFX;

// ***CFX***

CComBSTR bstrLic("license string");

m_ChartFX.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc, this,

m_nID,NULL,NULL,bstrLic /* LICENSE STRING SHOULD GO HERE */ );

// Attach to Chart pointer

m_pChartFX = m_ChartFX.GetControlUnknown();

When we are trying to rebuild we getting compilation errors:

For example:

error C2039: 'ValueEx' : is not a member of 'Cfx62::_Chart'

error C2065: 'COD_VALUES' : undeclared identifier

error C2061: syntax error : identifier 'CfxAxisIndex'

error C2039: 'OpenDataEx' : is not a member of 'Cfx62::_Chart'

error C2065: 'COD_VALUES' : undeclared identifier

error C2065: 'AXIS_X' : undeclared identifier

error C2039: 'OpenDataEx' : is not a member of 'Cfx62::_Chart'

error C2065: 'CHART_NONECLK' : undeclared identifier

error C2039: 'AxesStyle' : is not a member of 'Cfx62::_Chart'

error C2065: 'CAS_MATH' : undeclared identifier

error C2039: 'AllowResize' : is not a member of 'Cfx62::_Chart'

error C2065: 'CTE_SMOOTH' : undeclared identifier

error C2065: 'CD_ALLDATA' : undeclared identifier

error C2065: 'AXIS_Y' : undeclared identifier

error C3861: 'PutMax': identifier not found, even with argument-dependent

lookup

error C3861: 'PutSTEP': identifier not found, even with argument-dependent

lookup

error C3861: 'PutLabelValue': identifier not found, even with

argument-dependent lookup

error C2039: 'Gallery' : is not a member of 'Cfx62::_Chart'

error C2065: 'GANTT' : undeclared identifier

error C2039: 'Gallery' : is not a member of 'Cfx62::_Chart'

error C2065: 'BAR' : undeclared identifier

error C2065: 'PIE' : undeclared identifier

error C3861: 'BAR': identifier not found, even with argument-dependent

lookup

error C2065: 'HIT_POINT' : undeclared identifier

error C2065: 'HIT_BETWEEN' : undeclared identifier

error C2039: 'HText' : is not a member of 'Cfx62::_Chart'

error C3861: 'PutMax': identifier not found, even with argument-dependent

lookup

error C3861: 'PutSTEP': identifier not found, even with argument-dependent

lookup

error C3861: 'PutLabelValue': identifier not found, even with

argument-dependent lookup

error C2065: 'CfxDataMask' : undeclared identifier

error C2065: 'CD_ALLDATA' : undeclared identifier

error C2065: 'CD_VALUES' : undeclared identifier

error C2065: 'COD_COLORS' : undeclared identifier

error C2039: 'Color' : is not a member of 'Cfx62::_Chart'

error C2039: 'Docked' : is not a member of 'Cfx62::_LegendBox'

error C2065: 'TGFP_BOTTOM' : undeclared identifier

error C2039: 'BorderStyle' : is not a member of 'Cfx62::_LegendBox'

error C2065: 'BBS_FLATLINE' : undeclared identifier

For complete list see attached log file.

Which methods of Cfx62::_ChartPtr interface should I used instead ?

BuildLog.htm

BuildLog.htm

Posted

We are in the process of migrating from ChartFX Client Server 5.1 (COM

Visual Studio 2003 with MFC) to ChartFX Client Server 6.2(COM Visual Studio

2003 with MFC)

In 5.1 we used

echo Registering ChartFX components

regsvr32 /s ..\..\Dependencies\ChartFX\cfx4032.ocx

regsvr32 /s ..\..\Dependencies\ChartFX\sfxbar.dll

#import "sfxbar.dll" no_namespace no_implementation

#import "Cfx4032.ocx" no_namespace no_implementation

CWnd m_ChartFX;

IChartFXPtr m_pChartFX;

// ***CFX***

CComBSTR bstrLic("license string");

m_ChartFX.CreateControl(__uuidof(ChartFX), NULL, WS_VISIBLE, rc, this,

m_nID,NULL,NULL,bstrLic /* LICENSE STRING SHOULD GO HERE */ );

// Attach to Chart pointer

m_pChartFX = m_ChartFX.GetControlUnknown();

In 6.2 we doing:

echo Registering ChartFX components

regsvr32 /s ..\..\Dependencies\ChartFX\ChartFX.ClientServer.Core.dll

#import "ChartFX.ClientServer.core.dll" rename_namespace("Cfx62")

rename("min","minX") rename("max","maxX")

exclude("_CollectionBase","_Component","CollectionBase","Component")

CWnd m_ChartFX;

Cfx62::_ChartPtr m_pChartFX;

// ***CFX***

CComBSTR bstrLic("license string");

m_ChartFX.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc, this,

m_nID,NULL,NULL,bstrLic /* LICENSE STRING SHOULD GO HERE */ );

// Attach to Chart pointer

m_pChartFX = m_ChartFX.GetControlUnknown();

When we are trying to rebuild we getting compilation errors:

For example:

error C2039: 'ValueEx' : is not a member of 'Cfx62::_Chart'

error C2065: 'COD_VALUES' : undeclared identifier

error C2061: syntax error : identifier 'CfxAxisIndex'

error C2039: 'OpenDataEx' : is not a member of 'Cfx62::_Chart'

error C2065: 'COD_VALUES' : undeclared identifier

error C2065: 'AXIS_X' : undeclared identifier

error C2039: 'OpenDataEx' : is not a member of 'Cfx62::_Chart'

error C2065: 'CHART_NONECLK' : undeclared identifier

error C2039: 'AxesStyle' : is not a member of 'Cfx62::_Chart'

error C2065: 'CAS_MATH' : undeclared identifier

error C2039: 'AllowResize' : is not a member of 'Cfx62::_Chart'

error C2065: 'CTE_SMOOTH' : undeclared identifier

error C2065: 'CD_ALLDATA' : undeclared identifier

error C2065: 'AXIS_Y' : undeclared identifier

error C3861: 'PutMax': identifier not found, even with argument-dependent

lookup

error C3861: 'PutSTEP': identifier not found, even with argument-dependent

lookup

error C3861: 'PutLabelValue': identifier not found, even with

argument-dependent lookup

error C2039: 'Gallery' : is not a member of 'Cfx62::_Chart'

error C2065: 'GANTT' : undeclared identifier

error C2039: 'Gallery' : is not a member of 'Cfx62::_Chart'

error C2065: 'BAR' : undeclared identifier

error C2065: 'PIE' : undeclared identifier

error C3861: 'BAR': identifier not found, even with argument-dependent

lookup

error C2065: 'HIT_POINT' : undeclared identifier

error C2065: 'HIT_BETWEEN' : undeclared identifier

error C2039: 'HText' : is not a member of 'Cfx62::_Chart'

error C3861: 'PutMax': identifier not found, even with argument-dependent

lookup

error C3861: 'PutSTEP': identifier not found, even with argument-dependent

lookup

error C3861: 'PutLabelValue': identifier not found, even with

argument-dependent lookup

error C2065: 'CfxDataMask' : undeclared identifier

error C2065: 'CD_ALLDATA' : undeclared identifier

error C2065: 'CD_VALUES' : undeclared identifier

error C2065: 'COD_COLORS' : undeclared identifier

error C2039: 'Color' : is not a member of 'Cfx62::_Chart'

error C2039: 'Docked' : is not a member of 'Cfx62::_LegendBox'

error C2065: 'TGFP_BOTTOM' : undeclared identifier

error C2039: 'BorderStyle' : is not a member of 'Cfx62::_LegendBox'

error C2065: 'BBS_FLATLINE' : undeclared identifier

For complete list see attached log file.

Which methods of Cfx62::_ChartPtr interface should I used instead ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...