定义了一个函数
void myfunction()
{
char buff[256];
m_mylist.InsertItem(0, buff);
}
想调用类变量CListCtrl m_mylist;
解决方法:
void myfunction(CListCtrl &list)
{
char buff[256];
list.InsertItem(0, buff);
}
定义了一个函数
void myfunction()
{
char buff[256];
m_mylist.InsertItem(0, buff);
}
想调用类变量CListCtrl m_mylist;
解决方法:
void myfunction(CListCtrl &list)
{
char buff[256];
list.InsertItem(0, buff);
}