我在窗体里面添加了一个List Box控件
 通过Ctr+W 来设置它的变量:Controls ID           type           member
                           IDC_LIST             Control        m_listmusic
为什么设置成功后,程序可以运行,但是看不到界面,什么也不显示?如果不设置List Box控件的变量,程序没问题!运行可以看到界面,为什么?
我把List Box控件变量删除之后,
我又添加Button按纽,在设置Button按纽里面设置变量,出现同样问题!为什么?????unhandle exception in holy.exe,oxc00000005:Access Violation//提示的问题所在是在BOOL CHolyApp::InitInstance()
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();// Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CHolyDlg dlg;
m_pMainWnd = &dlg;
问题出现在m_pMainWnd上,提示上面的警告!