Re: [Boost-bugs] [Boost C++ Libraries] #10685: mfc_thread_init.hpp does not compile

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10685: mfc_thread_init.hpp does not compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-01 17:00:18


#10685: mfc_thread_init.hpp does not compile
-------------------------------+------------------------
  Reporter: fab@… | Owner: ned14
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords: MFC thread
-------------------------------+------------------------

Comment (by ned14):

 There is a problem.

 The following MFC Extension DLL ought to be close to compiling:

 {{{
 // Purely to test if Boost.Thread compiles with a MFC extension DLL
 #ifdef _MSC_VER
 #include <windows.h>
 #include <stdafx.h>
 #include <afxdllx.h>
 #include <boost/thread.hpp>

 static AFX_EXTENSION_MODULE extensionDLL;

 extern "C" int APIENTRY
 DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID)
 {
    if (dwReason == DLL_PROCESS_ATTACH)
    {
       // Extension DLL one-time initialization
       if (!AfxInitExtensionModule(
              extensionDLL, hInstance))
          return 0;

    }
    else if (dwReason == DLL_PROCESS_DETACH)
    {
       // Extension DLL per-process termination
       AfxTermExtensionModule(extensionDLL);

    }
    return 1; // ok
 }
 #endif
 }}}

 And that would test if Boost.Thread compiles with MFC or not.

 My problem is I have the Visual Studio Express free edition. I don't have
 the commercial one costing thousands of euro, so I don't have MFC.

 Can someone else test this for me please?

 Thanks,
 Niall

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10685#comment:9>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC