-
Recent Posts
Recent Comments
Mike T. on Code snippet Using WMI via… Drew Canitz on minimal ATL window eskici on file transfer over synchronous… Rose on Purify reported error entry po… duongnguyenvan on file transfer over synchronous… Archives
- August 2018
- March 2018
- May 2017
- July 2012
- May 2012
- April 2012
- March 2012
- January 2012
- October 2011
- September 2011
- July 2011
- June 2011
- May 2011
- April 2011
- October 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
Categories
Meta
Monthly Archives: September 2009
build boost_1_40_0.7z via Visual Studio 2008 Profession on Windows XP
At first I build it in usual way as I did with boost 1.39, but bjam (Boost.Jam 03.1.17) prints a lot of errors like the following. cl : Command line error D8022 : cannot open ‘bin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi\has_long_double_support.obj.rsp’ The file does exist … Continue reading
Posted in Open Source
Leave a comment
self debugging on XP
It is nice to save some useful information at the point of application crash. The useful methods including call stack and minidump file. Call stack can be obtained by installing exception filter via AddVectoredExceptionHandler Function, stack trace can be obtained … Continue reading
Posted in debug
Leave a comment
ATL, MFC and scoped_any
I am glad to found Achieve More Reliable Resource Management with Our Custom C++ Classes, but when using it in a unit test project, I got weird compile error. The error points to line 238 of scoped_any.h DECLARE_SMART_ANY_TYPEDEFS(scoped) and according … Continue reading
Posted in MFC
Leave a comment
file transfer over asynchronous TCP connection via boost.asio
// another sample that send file name and content to Tcp server, but using asynchronous mode Tcp connection //// send a file to a tcp server via boost.asio library#include <iostream>#include <boost/asio.hpp>#include <boost/bind.hpp>#include <fstream>#include <sstream>using boost::asio::ip::tcp;class async_tcp_client{public: async_tcp_client(boost::asio::io_service& io_service, const std::string& … Continue reading
Posted in Open Source
Leave a comment
file transfer over synchronousTCP connection via boost.asio
//First is a synchronous TCP client that send file name and file content to Tcp Server. //// send a file to a tcp server via boost.asio library#include <iostream>#include <boost/asio.hpp>#include <fstream>#include <sstream>using boost::asio::ip::tcp;int main(int argc, char* argv[]){ if (argc != 3) … Continue reading
Posted in Open Source
2 Comments