|
如何dump出某进程信息及期创建的所有线程信息?
你既然是自己写的程序,那么你完全可以在代码中加入一些调试语句来帮你确定问题,或者输出线程的上下文信息或者退出信息之类的语句。例如,让每个线程创建和退出时候打印什么语句之类的办法,这样做是比较好的选择.(要dump出运行时环境也可以,不过你确定你看抓取的那些页面有用吗?) |
|
MFC下面如何依次弹出对话框
这个问题很容易解决, m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); CAppDialog app; app.DoModal(); //请问一下此处为什么不弹出对话框,谢谢各位了 改成 CAppDialog app; app.DoModal(); //这时它会弹出来 m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); 原因是这一句"m_pMainWnd = &dlg;"这个CWnd*类型的指针是存储你的线程主窗口对象。当和m_pMainWnd 相关的窗口被关闭后(m_pMainWnd = &dlg),MFC会自动终止你的线程。如果该线程是应用程序主线程,程序也将会被终止。(如果该数据成员为NULL,应用程序CWinApp对象的主窗口将用来决定什么时候去终止线程。)跟进去后发现是程序接到WM_QUIT消息(本人测试大约第十个消息就是WM_QUIT消息...) |
|
[下载]驱动编程视频教程,第一套免费内核编程视频(知其所以然技术论坛提供)
终于找到了。谢谢分享 |
|
一个C++类成员函数指针传递问题[急]
LZ没有好好看我的回复,哎 为什么不直接传一个对象的地址然后在回调函数中调用呢?如果没有这样的接口,那么说明设计这样的回调方式本身就有很大的缺陷。 类的静态成员函数能够和普通的指针一样,那是因为静态成员函数不属于对象,是属于这个类,所以才能够取得地址。每个成员函数的地址实际上是由每个实例化的对象中的指针来调用的,所以很多对象能够共享类中的成员函数,它们的数据是分别存放的,成员函数则是在调用相同的那一部分。你要想得到那个地址,就必须加上类作用限定符,来告诉编译器去哪里找到这个类的成员函数 还有我测试的结果是 typedef void (test2::* Func)(void *lp); 前面加不加__thiscall都没有关系,实际上编译器似乎很智能,居然能够找到。 |
|
一个C++类成员函数指针传递问题[急]
你做的是传递函数指针,楼上的说的没错,声明为静态成员函数,是可以取得这个函数的地址 那么调用就能成功 你要用成员指针之类的才可以 解决方案1: 定义一个指向类成员函数的指针 typedef void (test2::* Func)(void *lp); 然后就能可以使用它来得到类成员函数的地址了。不过这个方案很麻烦,要很小心才行 解决方案2: 以其传递成员函数的指针,为什么不直接传递一个类对象过去,这样的话 也省去一些麻烦。 |
|
怎样用VC++的SDK写一个基于对话框的程序?(非MFC)
要看你怎么做了,你是打算封装起来,还是直接的一个程序? |
|
[求助]为什么打开软件没反应但在进程里面有
软件本身就可以没有任何界面或者反应的....后台运行的程序很多没有界面 |
|
|
|
|
|
[下载]四百八十多个脱壳脚本汇总
顶一顶,呵呵 |
|
|
|
|
|
用VB6.0如何在Text1文本框中画椭圆、圆、矩形呢?
首先得到句柄,然后得到绘图设备 最后直接调用代码绘图就可以,不超过2行代码。 代码太简单不好意思发程序了,就下面的 CWnd *cwnd = (CWnd *)GetDlgItem(IDC_EDIT1); cwnd->GetWindowDC()->Ellipse(20,20,70,70); |
|
|
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值