我并没有声明m_pchdata ,它可能是cstring的成员变量,顺便说明一下,OnAppidle()中调用ReadTempFile(),ReadTempFile也是CimageList 得公共成员;
m_pchdata error:expression cannot be evaluated!是在调试时察看variable窗口时显示的

解决方案 »

  1.   

    是在执行strPathName = m_currentFolder+ m_BrowseFile;时出错吗
      

  2.   

    你的值没有传过来。m_currrentFolder 和m_BrowseFile.检查一下。
      

  3.   

    是在执行strPathName = m_currentFolder+ m_BrowseFile;时出错的。这个问题还出现在OnAppidle()调用另外的 CimageList 成员变量时。空闲时调用的函数有特殊要求么?谢谢回复!!!
      

  4.   

    太好了!!!! 现在程序已经不报错了。thanks very very .... much !!!!!!              yajunmao