|
|
|
|
|
|
|
|
|
|
|
[求助]注入dll后创建对话框(DoModal),主程序失去响应。
谢谢各位高手的回答:) 我马上尝试你们的方法。 之前新建线程的问题我已经解决了(算是吧),我用WIN32写了一个DLL,里面_BEGINTHREAD,新THREAD里面LoadLibrary MFC的DLL。 现在窗口是建立好了,但是之前的程序主窗口的消息似乎被阻塞(不知道这个词用得恰不恰当),只有当关闭新创建的窗口时,之前向主窗口发送的所有消息才立即一起被处理。 网上好像偶很多人遇到跟我一样的问题,但我仍没找到具体一点的解决方法。 不知道各位有什么解决方法? 昨天搞到好晚,今天想了想准备用WIN32写了一个DLL,里面_BEGINTHREAD,Thread函数里面用WinApi Create一个Window,然后隐藏之,接着在LoadLibrary启动MFC的DLL。不知是否可行。 还有一点不懂的就是当主线程调用Loadlibrary后,执行DLLMAIN中代码的线程是主线程还是什么别的线程? |
|
[求助]注入dll后创建对话框(DoModal),主程序失去响应。
厄。这方面我很菜鸟,能否简略解释一下方便我去查资料? 1。要么用SDK创建窗口 什么SDK? WINAPI还是MFC还是别的? 2.要么把MFC窗口放到主线程 我是LoadLibraryA不知窗口在不在主线程?按照我的理解是的阿。 3。并且不要用DoModal创建窗口。 你指的是不是用非模态对话框? 我又个想法不知行不行,用CreateWindow创建一个窗口,然后利用这个窗口的消息循环,不知可不可行,正在尝试中。 还请赐教! |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值