获取窗口句柄失败?

获取窗口句柄失败?,第1张

貌似你是创建了一个线程,然后在这个线程里面调用AfxGetMainWnd~~~~这样是无法获得主窗口句柄的,这个函数只能获得当前线程的窗口句柄

MSDN的说明:

If the function is called from a secondary thread in the application, the function returns the main window associated with the thread that made the call.

正确做法是:你在创建线程时把窗口的的句柄以参数形式传入去

可能的原因:

1、没有插入usbkey(请插入usbkey),若是使用浏览器证书,请将证书导入到浏览器中。

2、签名控件没有正确安装(请到http://www.cmbc.com.cn/dzyh_grwy/download.shtml下载安装)


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7435819.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-05
下一篇 2023-04-05

发表评论

登录后才能评论

评论列表(0条)

保存