-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Visual Studio 2022 显示二维码崩溃 #66
Comments
Please check at the WeChat version. Or have you opened Wechat? |
我可以确保微信的版本是项目所支持的,我也尝试了许多方法,但是当点击显示二维码的按钮之后就会崩溃。 |
Oh. You can check the Window's name. And maybe it was 微信. |
哦!是的!你是对的! |
Look at the README: |
我确保我已经安装了VS2017 并且 勾选使用C++的桌面开发,但是问题并不能解决,上述的问题都是在此环境下编译运行产生的,我认为不是开发环境的问题,而是其他问题导致的 |
你可以查看WeChatRobotDlg.cpp这个文件,在第245行,程序获取了图片(二维码)的完整路径,并且在第249行,加载这个图片文件,但是我发现这个图片加载失败了,并且我也没有在电脑上找到这个图片文件,我想这就是崩溃的原因,但是我不能解决它。 |
我尝试去“骗”这个程序,我通过截图的方式,手动保存了这个图片,程序也正确的加载并显示了这张图片,但是当我扫码登录微信之后,程序并没有任何的反应,我觉得在此之前一定出现了一些问题。 |
Oh. Yeah. Let me see... |
But almost all functions in this bot are based on this. |
是的,我现在依然没有找到解决方案... |
Yes... |
I'm sorry because I'm using another python wechat bot. I'll create a virtual machine to debug it. Probably I'll done in the afternoon. |
十分感谢! |
Sorry. |
You shouldn't apologize to me. Instead, I should thank you for helping me |
Sorry. I'm have some things to do these days. |
Can understand, in the spare time to help me is ok, thank you |
您好,我想使用Visual Studio 2022编译这个项目,目前出现了一点小问题,希望可以解决一下
我在运行的时候,发现点击显示二维码的按钮之后,程序会崩溃
查了一圈是执行OnBnClickedShowQrpic函数的时候崩溃的,然后查到
CWnd *pWnd = CWnd::FindWindow(NULL, L"WeChatHelper");在执行这个函数之后,我发现pWnd指针为空,然后后续对这个指针进行操作就崩溃了,请问这是什么原因?
The text was updated successfully, but these errors were encountered: