我问过一个问题:"请问怎么用一个对话框中的按钮调出另一个已经作好的对话框."
朋友们给的解答是YourDlg::OnButtonDown()
{
    YourOtherDlg dlg;
    dlg.DoModal();
}
不要忘了在YourDlgd的cpp或.h文件中添加#include "YourOtherDlg.h"!我这么做了,编译通过,运行时出错,提示:Dlg.obj : error LNK2005: "public: __thiscall Dlg::Dlg(class CWnd *)" (??0Dlg@@QAE@PAVCWnd@@@Z) already defined in BISHE1.obj
Dlg.obj : error LNK2005: "protected: virtual void __thiscall Dlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@Dlg@@MAEXPAVCDataExchange@@@Z) already defined in BISHE1.obj
Dlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall Dlg::_GetBaseMessageMap(void)" (?_GetBaseMessageMap@Dlg@@KGPBUAFX_MSGMAP@@XZ) already defined in BISHE1.obj
Dlg.obj : error LNK2005: "protected: virtual struct AFX_MSGMAP const * __thiscall Dlg::GetMessageMap(void)const " (?GetMessageMap@Dlg@@MBEPBUAFX_MSGMAP@@XZ) already defined in BISHE1.obj
Dlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const Dlg::messageMap" (?messageMap@Dlg@@1UAFX_MSGMAP@@B) already defined in BISHE1.obj
Dlg.obj : error LNK2005: "private: static struct AFX_MSGMAP_ENTRY const * const Dlg::_messageEntries" (?_messageEntries@Dlg@@0QBUAFX_MSGMAP_ENTRY@@B) already defined in BISHE1.obj
Debug/BISHE1.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.BISHE1.exe - 7 error(s), 0 warning(s)请问怎么解决?
请高手帮忙,谢谢.