Captrick458
Programmer
I am trying to create a CListBox, and it works if I use
CListBox *pTheList=new CListBox;
pTheList->Create(...
pTheList->AddString(...
however, if I use the following, it will not work.
CListBox TheList;
TheList.Create(...
TheList.AddString(...
The compiler does not complain, and there are no complaints at runtime, TheList just is not visible. According to the MS documentation, either construct should work.
Any advice will be greatly appreciated.
Rick
CListBox *pTheList=new CListBox;
pTheList->Create(...
pTheList->AddString(...
however, if I use the following, it will not work.
CListBox TheList;
TheList.Create(...
TheList.AddString(...
The compiler does not complain, and there are no complaints at runtime, TheList just is not visible. According to the MS documentation, either construct should work.
Any advice will be greatly appreciated.
Rick