Jump to content
Software FX Community

Run Time Error


User (Legacy)

Recommended Posts

I just got my trial of ChartFX and am looking to use it in VC++ without MFC.

I dutifully followed the directions about doing this on the knowledge base

and in help. However when i run the program i get a run time error.

I basically just set up a window and then do this:

m_pChartFX.CreateInstance(__uuidof(ChartFX));

m_pChartFX->CreateWnd((long)hChart ,IDC_CHART1,0,0,500,500,WS_CHILD |

WS_VISIBLE);

m_hwndChartFX = (HWND) m_pChartFX->hWnd;

just as the help says. I do the CoInitialize stuff as well. The Error

occurs on the CreateWnd line. The only place i could be going wrong i guess

is the IDC_CHART1. What is this? I first tried it just as a random number

and then made a custom control in a dialog box called IDC_CHART1. Both

produced the runtime error. Suggestions on how to fix this are appreciated

=).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...