Monthly Archives: July 2009

DevPartner 9.02 coverage analysis

DevPartner failed to instrument two projects with “Error and Coverage” type, the only common fact is that there is a medium size CPP file in thos projects, one is around 40k, another is around 64k. It seems to be bug … Continue reading

Posted in debug | Leave a comment

usage of boost::program_options::parse_config_file

I just need to create options_description as usual, and prepare configuration file in the following format: #include <boost/program_options.hpp>namespace po = boost::program_options; std::stringstream ss;ss  << "CurrentX=1234"<<std::endl    <<"CurrentY=456"<<std::endl;    po::options_description desc("Allowed options");    desc.add_options()        ("help,h", "produce help message")        ("CurrentX", po::value<int>(), "set CurrentX")        ("CurrentY", po::value<int>(), … Continue reading

Posted in Open Source | Leave a comment

Programtically close child console process

PostThreadMessage(process_info.dwThreadId, WM_QUIT, 0 ,0); does not work; I have to use CREATE_NEW_CONSOLE flag when creating the child process, so GenerateConsoleCtrlEvent does not work either. Console HWND can be found via EnumWindows API, then parent process invoke PostMessage(console_window, WM_CLOSE, 0, 0); … Continue reading

Posted in GUI | Leave a comment