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: 2016-04-22 15:44:25


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

Comment (by Keith Meadows <Keith.Meadows@…>):

 mfc_thread_init.hpp does not compile.
 This still does not compile when used with MFC. The conflict is pretty
 obvious here as the function declaration and forward declaration/
 assignment do not agree.
 if line 30 is changed from
 extern "C" __declspec(selectany) BOOL (WINAPI * const
 _pRawDllMainOrig)(HANDLE, DWORD, LPVOID) = &ExtRawDllMain;
  to extern "C" __declspec(selectany) BOOL (WINAPI * const
 _pRawDllMainOrig)(HINSTANCE, DWORD, LPVOID) = &ExtRawDllMain;
 everything compiles and runs as expected.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10685#comment:14>
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:20 UTC