|
Boost Users : |
Subject: [Boost-users] [ASIO|Thread] Advice for removing MFC/ afxwin.h dependancies
From: smbrown_at_[hidden]
Date: 2010-05-25 12:11:21
Hi all,
I've inherited a windows C++ application which I've extended and that I'm
now preparing for porting to Linux.
I'm going through the app removing any MFC code replacing it with standard
C++. I use Boost asio and thread and they seem to be requiring me to
include afxwin.h before any boost includes or it won't build complaining
that Winsock.h or Windows.h has alreday been included.
I can bodge around those errors, but then the code doesn't link as new and
delete have already been referenced from an afx lib.
Is there any general advice for Boost/MFC coexistance or MFC removal?
Thanks,
Simon
++++ IMPORTANT NOTICE ++++
This email may contain confidential information and will be protected by copyright.
It is intended only for the use of the person(s) to whom it is addressed and any unauthorised use (including forwarding or dissemination the contents) may be unlawful. If you receive this email by mistake, please advise the sender immediately by using the reply facility on your email software and delete the email from your computer.
Opinions, conclusions and other information in this email that do not relate to the official business of this organisation shall be understood as neither given nor endorsed by it.
If this message forms part of a quotation for the supply of goods, the quotation is an invitation to treat only. No contract will come into effect until the Company issuing such quotation issues an acknowledgment of order for the supply of such goods. The contract will be on the terms of such acknowledgment of order.
------------------------------------------------------------------------
Teledyne Defence Limited
phone: +44 (0) 1274 531602
web: www.teledynedefence.co.uk
------------------------------------------------------------------------
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net