hello guys...if it is simple question plz excuse me...
1) I have a var associated with ListBox (you know adding var to the control in MFC). Now I can access it in one class "MyProgDlg.cpp" but can't access it in another class "classA.cpp", why is this so
2) how do I concatinate a DWORD with CSTRING var inorder to add it to ListBox??
Here is the code from classA.cpp...
CString str = "Line#";
LPSTR str1 = str.GetBuffer(str.GetLength());
strcat(str1,DevIndex);
SetDlgItemText(IDC_LIST,str1);