
I put the all dll source code here: MFCDLL.def - ======== LIBRARY MFCDLL EXPORTS ShowDialog interface.h ======= #ifndef INTERFACE_H_INCLUDED #define INTERFACE_H_INCLUDED #if defined DAS_DLL #define EXPORT32 __declspec(dllexport) #else #define EXPORT32 __declspec(dllimport) #endif #define DLL_OK 0 #define DLL_ERROR -1 extern "C" EXPORT32 int __stdcall ShowDialog(HWND hwndParentWindow); #endif interface.cpp ========= #include "stdafx.h" #include "interface.h" #include "MFCDLL.h" #include <boost/thread.hpp> CMFCDLLApp theApp; EXPORT32 int __stdcall ShowDialog(HWND hwndParentWindow) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); return DLL_OK; } MFCDLL.h ======= #pragma once #ifndef __AFXWIN_H__ #error "include 'stdafx.h' before including this file for PCH" #endif #include "resource.h" // main symbols class CMFCDLLApp : public CWinApp { public: CMFCDLLApp(); public: virtual BOOL InitInstance(); virtual int ExitInstance( ); DECLARE_MESSAGE_MAP() }; MFCDLL.cpp ======== #include "stdafx.h" #include "MFCDLL.h" #ifdef _DEBUG #define new DEBUG_NEW #endif BEGIN_MESSAGE_MAP(CMFCDLLApp, CWinApp) END_MESSAGE_MAP() CMFCDLLApp::CMFCDLLApp() { } BOOL CMFCDLLApp::InitInstance() { CWinApp::InitInstance(); return TRUE; } int CMFCDLLApp::ExitInstance() { return CWinApp::ExitInstance(); } and error message: http://boost.2283326.n4.nabble.com/file/n4631691/err.png err.png -- View this message in context: http://boost.2283326.n4.nabble.com/issue-about-include-boost-thread-header-i... Sent from the Boost - Users mailing list archive at Nabble.com.