Subject: Re: [boost] Fwd: [Thread] Solution to conflict with MFC?
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2011-04-27 11:13:34
Thorsten Ottosen <thorsten.ottosen_at_[hidden]> writes:
> Anthony speaks about a patch to make this work. Does anyone know where
> it is? And could it be applied?
It is more of a hack than a patch: remove the use of _pRawDllMain from
tss_pe.cpp, and add a new object file outside the boost thread library
that contains a _pRawDllMain that calls both the MFC and Boost
initialization functions. The user must explicitly add that object file
to their project.
-- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976