I do that regularly, however I create the CIN resource trough the command line. If you create it with the Visual C IDE you will have to make sure you enable the debugging features in the Compile and Link tab of the project settings. This would be mainly:
Compile (C/C++): Optimization: Disable (debug) (/Od)
Linking: Generate debug info (/debug)
In addition you may want to define following makro in your source file:
#ifdef _DEBUG
#define DebugBreaking() {__asm int 3}
#else
#define DebugBreaking()
#endif
and add the DebugBreaking(); call whereever in your source code where you want to break into the debugger. The standard Win32 API DebugBreak() never was able to find my source code to do source code debugging in VC.
Also VC may not be setup automa
tically to catch exceptions and you only get a General Protection fault dialog or a Dr. Watson dialog. There are some registry settings you can make to get VC to be your system debugger and there should be information about how to set that up in your VC documentation or alternatingly on msdn.microsoft.com.
Rolf K
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390