I am trying to debug my own C / C ++ DLL project from Visual Studio 2010. I am trying to execute the following instructions: http://msdn.microsoft.com/en-us/library/c91k1xcf(v=VS.100).aspx
I want to use the built-in debugger and be able to change the code, view structures, etc., as it would with a regular .exe project. The instructions on the page above describe the Debugging category in the Configuration Properties section, which I cannot see.
http://img707.imageshack.us/img707/4402/lalasz.png
Simply pressing F5 for debugging results in the following error:
Unable to start the program 'C: \ Users ....... Test.dll'
I have used the debugger for regular .exe projects many times and it works fine on this computer. I'm not sure that right now I'm just missing something very obvious.
Change Since I did not do this from the very beginning, I want Visual Studio to load my DLL into the stub process and allow me to debug the source level from there, as OllyDbg does.
My DLL is not the type that contains a bunch of functions that will be exported and called. Instead, it performs the / case switch in DllMain, and on DLL_PROCESS_ATTACH, a new thread. Therefore, I need Visual Studio to load my DLL into the stub executable and allow it to set breakpoints, etc.
source share