Jump to content
Software FX Community

set axis format


User (Legacy)

Recommended Posts

Hi, All:

I used the following code to change the format of axis:

m_pChartFX->Axis->Item[AXIS_X]->Format=AF_SCIENTIFIC;

And I got the error as follows:

error C2664: 'PutFormat' : cannot convert parameter 1 from 'enum CfxFormat'

to 'const class _variant_t &'

Reason: cannot convert from 'enum CfxFormat' to 'const class

_variant_t'

No constructor could take the source type, or constructor overload

resolution was ambiguous

When I tried:

m_pChartFX->Axis->Item[AXIS_Y]->Format=(const class _variant_t)

AF_SCIENTIFIC;

I got error C2440: 'type cast' : cannot convert from 'enum CfxFormat' to

'const class _variant_t'

No constructor could take the source type, or constructor overload

resolution was ambiguous

Can any one tell me how to convert the required type for setting the format

of any axis?

Danqing

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...