User (Legacy) Posted December 22, 2003 Report Share Posted December 22, 2003 I'm doing dev. for PocketPC 2003 and I'm using the #import option as described in the programmer's guide. I define the two data members and then add this code inside of DoDataExhange: DDX_Control(pDX, IDC_CHART1, m_ChartFX); // Link variable to control if (!pDX->m_bSaveAndValidate) // Link Chart FX pointer to control window m_pChartFX = m_ChartFX.GetControlUnknown(); If I use this code verbatim the first problem that I get is that IDC_CHART1 is undefined. I looked through the sample "Labels" code and found that it was simply a #define set to 1000. But when I manualy put in 1000 it gives me this: "Error: no data exchange control with ID 0x03E8." But even if I try it with a different ID number I can't get any number to work. I'm using the variables/code in the CAboutDlg()'s [the "about" dialog] DoDataExchange that is automatically generated by the Wizard. Any help would be appreciated. Daniel C. Cole Link to comment Share on other sites More sharing options...
Software FX Posted December 22, 2003 Report Share Posted December 22, 2003 Did you add, at design-time a Chart FX control to the dialog ? the ID needs to match that assigned at design time. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.