delphi5下编写的dll在xp下如何跟踪呢?dll是在delphi5下编写的,win2k下跟踪没有问题,为什么xp下不可以呢?恳请高手相助!!!
解决方案 »
- 如何把一个表中的一个字段更新到另外一张表的一个字段中去
- delphi中如何把文本转换成图象?
- 用delphi6编写的程序如何在delphi7中运行?
- 请教一个小问题,急
- Fastreport 修改预览内容(急!!!!!!!!)
- 关于文本文件的读取与统计
- QuickReport 组件在哪?
- MSComm控件接收、发送数据问题~~~急急急急急急急急急急急急
- 4路USB摄像头视频录像系统功能特点
- 作为新中国的Delphier,我们该如何活下去啊,
- 是考研还是继续编程?请各位出出主意?
- 偶不明白:delphi的type中声明了:tform1:=class(form);button1:=tbutton;等,为什么却在最后又声明:var form1:=tform1,为什么不声明在t
解决方法:
Until up to Win2k, you had to set the HostApplication on Start=>Parameter to
debug a DLL. This will not work on Windows XP.
在Win2K中,你可以设置Run-->Parameter对话框中的HostApplication来调试DLL,但是在WinXP中,将不会正常工作! That Delphi will know the DLL if you run the progam, you have to do the
following:
要让Delphi在运行程序的时候,知道你的DLL,你必须作如下的工作:The program must load the DLL. After this, press Ctrl-Alt-M in Delphi, to list
all modules. Sometimes there will be the DLL with path.
首先,程序必须加载这个DLL,之后,请在Delphi中按Ctrl+Alt+M,这个时候会列出所有的模块,有一些模块回带有路径。Solution:
解决方案:Right click on the DLL, select "Reload symbols" and set the full path to the
DLL. Now the breakpoints should be active.
右击那个DLL,选择“Reload Symbols”,并且设置这个DLL的全路径,设置之后,你的断点应该有效了。When the DLL will be compiled in the system path (directory in PATH) this
problem dont occur.
如果DLL编译的输出目录在系统路径(PATH环境变量的路径中)中,那么不会出现这个问题。
2。按F9开始跟踪,程序跑起来后,Delphi下 按 ctrl+alt+M ,弹出Modules窗口(右击都是文字的那一块区域,选择add module 选择你编译路径下的dll)【第一次加载模块】
3。开启调用dll的程序,这时delphi 5 会自己弹出cpu窗口,再按ctrl+alt+M,弹出Modules窗口 找到列表中你加载进来的哪个dll,右击选择 reload symble table... 选择你编译路径下的dll)【第二次加载模块】
4。按F7,F8或F9可以开始跟踪了够清楚不?