2011-10-05 63 views
1

我有一个dll,我想调试我的dll.I也浏览exe.But的路径,现在我想改变该exe文件的路径,因为它不是正确的exe.In。财产我有,当我开始调试错误消息显示移除调试选项的exe also.but的路径 为EXE调试信息不​​能被发现或不match.Binary不与调试信息建立 而输出窗口显示......调试信息找不到vC++ dll

'hello.exe': Loaded 'C:\Users\Acer\Desktop\dll_example\hello.exe', Binary was not built with debug information. 
'hello.exe': Loaded 'C:\Windows\System32\ntdll.dll' 
'hello.exe': Loaded 'C:\Windows\System32\kernel32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\KernelBase.dll' 
'hello.exe': Loaded 'C:\Windows\System32\WinSCard.dll' 
'hello.exe': Loaded 'C:\Windows\System32\msvcrt.dll' 
'hello.exe': Loaded 'C:\Windows\System32\rpcrt4.dll' 
'hello.exe': Loaded 'C:\Users\Acer\Desktop\dll_example\helloworld.dll' 
'hello.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll' 
'hello.exe': Loaded 'C:\Windows\System32\user32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\gdi32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\lpk.dll' 
'hello.exe': Loaded 'C:\Windows\System32\usp10.dll' 
'hello.exe': Loaded 'C:\Windows\System32\comdlg32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\shlwapi.dll' 
'hello.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\comctl32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\advapi32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\sechost.dll' 
'hello.exe': Loaded 'C:\Windows\System32\shell32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\winspool.drv' 
'hello.exe': Loaded 'C:\Windows\System32\oledlg.dll' 
'hello.exe': Loaded 'C:\Windows\System32\ole32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\olepro32.dll' 
'hello.exe': Loaded 'C:\Windows\System32\oleaut32.dll' 
The program '[0x1740] hello.exe: Native' has exited with code 0 (0x0). 

回答

2

从“Binary未建立调试信息”。看起来你的二进制文件是以“Release”配置构建的。你至少有两个选项:

一)建立二进制中的“调试”配置

II),以便在发布配置生成程序数据库文件(PDB)更改项目设置(检查例如this)。 PDB文件应与EXE位于同一目录中,并且您应该也可以调试您的应用程序。

+0

实际上我有exe文件在VC++ 6中,它只能改变exe的版本,而dll现在在vs2008中,而dll的pdb文件也位于dll所在的同一个文件夹中。一个重要的在vC++ 6版本中的EXE东西pdb。所以我认为它不会与目前的senarios兼容。 – vikky