step1:Create Blank Workspace add two project DLL and TestDll
step2:DLL Project
1.Project Settings -> C/C++ ->Debug info ->Program Database for Edit and Continue
2.Project Settings -> Link ->Check Generate debug info check box
step3:TestDll Project
1.Project Settings ->Debug ->Excutable for debug session ->input dir and filename
2.Project Settings ->Debug ->Working directory -> input dir
3.Project Settings ->Link ->Output file name ->input dir and filename
4.Project Settings ->link ->Object/library modules->input dll.lib
DLL
class AFX_EXT_CLASS TestClass
{
public:
void MsgBox(CString str);
TestClass();
virtual ~TestClass();
};
void TestClass::MsgBox(CString str)
{
AfxMessageBox(str); //Add breakpoint
}