Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拖入一张图片后触发了异常 #23

Open
pejoypan opened this issue Sep 16, 2022 · 3 comments
Open

拖入一张图片后触发了异常 #23

pejoypan opened this issue Sep 16, 2022 · 3 comments

Comments

@pejoypan
Copy link

我的环境是 vs2019 opencv3.4.1 windows11
拖入一张图片后,触发了异常
具体位置是
MatchToolDlg.cpp Line 314

CDC* dc = pWnd->GetDC ();

求解答,谢谢!

@DennisLiu1993
Copy link
Owner

哪一行的GetDC呢
如果是在MouseCall內,直接註解掉2118~2115就好了

@pejoypan
Copy link
Author

314行

@DennisLiu1993
Copy link
Owner

註解

313  CWnd* pWnd = CWnd::FromHandle (hWnd);
314	CDC* dc = pWnd->GetDC ();
	
390  pWnd->ReleaseDC (dc);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants