debugging - Visual Studio 2010 - Debug DLL - Debug Command using rundll32 doesn't work -


i have problem debugging c++ dll project in visual studio 2010. while debuging want dll loaded rundll32.exe automatically. follow these steps (like here http://msdn.microsoft.com/en-us/library/c91k1xcf.aspx):

  1. in solution explorer, select project creates dll.

  2. from view menu, choose property pages.

  3. in property pages dialog box, open configuration properties folder , select debugging category.

  4. in command box, type: "c:\windows\system32\rundll32.exe"

  5. in command arguments box type (main function executed): output.dll, main

  6. in working directory type: $(solutiondir)$(configuration)

  7. attach -> yes

after following these steps, try debug dll, error:

"unable attach. process "c:/windows/system32\rundll32.exe" not running on "my-pc", refresh process list before attempting attach."

anyone know how debug dll, without manually starting rundll32.exe command prompt , manually attaching process?

you should set:

"attach -> no"

otherwise vs not trying start new rundll32.exe process. setting attach -> yes tells vs attach existing process.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -