I tried but when setting the breakpoint in VS2005, it says "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Here are the detailed steps:
1. Run the program in a command prompt:
The Notepad window is shown.
2. Start VS2005,open the ManagedTest project
3. Select "Debug" -> "Attach to process", and select the notepad.exe process
4. Set the breakpoint, and the "The breakpoint will not currently be hit..." tooltip is shown
I also copied the ManagedTest.pdb to c:\windows (where the notepad.exe is), but it didn't help.
Please kindly help.