1CM

  

DLL 调试方法

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
}

posted on 2007-05-29 15:29 1CM 阅读(693) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理