Jump to content
Software FX Community

set axis format


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...