Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have a dll and I want to debug my dll.I have also browse the path of exe.But now I want to change the path of that exe because it was not correct exe.In the property I have remove the path of exe from the debugging option also.but when I start the debugging the error message show that Debugging information for exe cannot be found or does not match.Binary was not build with debug information
And output window show that..............

'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).
Posted
Updated 4-Oct-11 21:43pm
v3
Comments
Sergey Alexandrovich Kryukov 5-Oct-11 2:15am    
Did you do it in Debug configuration? Did you modify it?
--SA
Richard MacCutchan 5-Oct-11 4:21am    
Rebuild your DEBUG configuration and start debugging direct from within Visual Studio. Do not move your executable to another location as you may be moving the wrong version and/or missing the associated debug files.

1 solution

make sure that _DEBUG is defined
project properties -> Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions
 
Share this answer
 
Comments
vikky08 5-Oct-11 2:51am    
Yes,_DEBUG is defined.
Simon Bang Terkildsen 5-Oct-11 9:39am    
Then I'm afraid I have to say I'm blank :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900