Jump to content
Software FX Community

Unlimited real-time chart doesn't work.


User (Legacy)

Recommended Posts

I want to get unlimited real-time char. But I can't add points to series 

without MaxValues specifying (PutValueEx returns E_FAIL). I use MSVC++,

cfx4032.dll version is 5.0.14.0, SfxBar.dll version is 1.0.23.0.

Here is code I try to use :

<cppcode>

m_pChartFX->CreateWnd(long(hWnd), IDC_CHARTFX, 0, 0, 500, 500, WS_CHILD |

WS_VISIBLE);

m_hwndChartFX = HWND(m_pChartFX->hWnd);

//m_pChartFX->MaxValues = 20; //if this line is uncommented the code

works fine

m_pChartFX->OpenDataEx(CfxCod(COD_VALUES | COD_ADDPOINTS), 1, 1);

m_pChartFX->ValueEx[0][0] = 1; //PutValueEx returns E_FAIL

m_pChartFX->CloseData(CfxCod(COD_VALUES | COD_REALTIME));

</cppcode>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...