VC++ 동적 링크 라이브러리 (DLL) 프로그래밍 오류
EXE MFC DLL, DLL .lib .dll , RegularDllCallDlg.cpp ( 12 ) :
#pragma comment(lib,"RegularDll.lib")
void ShowDlg(void);
void CRegularDllCallDlg::OnCalldllButton() :
void CRegularDllCallDlg::OnCalldllButton () {
ShowDlg();
}
, .lib .dll , , 。 :
RegularDllCallDlg.obj : error LNK2001: unresolved external symbol "void __cdecl ShowDlg(void)" (?ShowDlg@@YAXXZ)
:extern"C" void ShowDlg(void); // extern"C"