hi,
under vs2008, I made an dialog based app from scratch. I added shared mfc dll in the properties and etc, I made an empty project, not mfc. All went well, until the time, I wanted to use class wizzard and "Add variable" to a combobox, but it complained that there is no DoDataExchange function, I made another mfc project and copied the code to override it, no more complaining, the variable added, I checked the ddx dodataexchange routine, it seems the same, I tested and added a AfxMessageBox and it was called by mfc, even I used UpdateData function, nothing changed, when i use AddString or InsertString functions of CCombobox variable, nothing is added to my combobox, while the appwizzard made is okay and works properly.
I copy some code to show:
The other strange thing is that in one project (mine) I can use string w/out _T(), but the mfc app says I should use it.Code:protected: virtual void DoDataExchange(CDataExchange* pDX); void CMyDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); DDX_Control(pDX, IDC_COMBO1, mycmb); AfxMessageBox("f"); }
I'll be happy to know how things happen so,
Thanks!