佚名通过本文主要向大家介绍了atl,atl71.dll,atl100.dll下载,atl71.dll修复,穿越火线atl71.dll等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: atl中有窗口句柄引出的问题
描述:
解决方案1:
描述:
atl做acitvex控件,中间有语句
((CStatic *)hWnd5)->GetWindowRect(&orirc);
运行到此时报错
Unhandled exception in Mby.exe MFC42D.DLL :0xC0000005;Access Violation
然后停留在:
{ ASSERT(::IsWindow(m_hWnd)); ::GetWindowRect(m_hWnd, lpRect); }
这是杂回事哦!
解决方案1:
CWindow wnd5 =GetDlgItem(IDC_STATIC5);
...
wnd5.MoveWindow(orirc,TRUE);
....
hWnd5是什么类型的?
为啥要强制转化?