摘要:
/**************************************************************************** 使用下面的HMODULE GetCurrentModule()可以获取dll自己的句柄。 接着使用 TCHAR lib_name[MAX_PATH]; ::GetModuleFileName( GetCurrentModule(), lib... 阅读全文
posted @ 2019-02-20 11:40
大鹏赋
阅读(1232)
评论(0)
推荐(0)
摘要:
#include #ifdef _DEBUG #include #include using std::endl; #endif void CMFCApplication1Dlg::OnBnClickedOk() { // TODO: 在此添加控件通知处理程序代码 #ifdef _DEBUG std::ofstream ofs("log.txt"); #endif // 使... 阅读全文
posted @ 2019-02-20 11:17
大鹏赋
阅读(2635)
评论(0)
推荐(0)
摘要:
void saveWideFileHead(std::ofstream& out)// 写入文件内容前,先写入BOM { char const* const utf16head = "\xFF\xFE"; out.write(utf16head, 2); } void saveWideFileContent(std::ofstream& out, wchar_t const* str, i... 阅读全文
posted @ 2019-02-20 11:14
大鹏赋
阅读(1519)
评论(1)
推荐(0)
摘要:
// 生成bat文件 std::ofstream ofs("network_check.bat"); ofs << "@echo Webservice connect check begin" << std::endl; ofs << "@echo Webservice connect check end" << std::endl; ofs.close(); // 创建管道 SE... 阅读全文
posted @ 2019-02-19 09:56
大鹏赋
阅读(389)
评论(0)
推荐(0)
摘要:
1:scan 2:detect for one type 阅读全文
posted @ 2019-02-02 17:29
大鹏赋
阅读(632)
评论(1)
推荐(1)
摘要:
参考资料: 跨平台c++/boost/asio 简单的HTTP POST请求 客户端模型http://www.cnblogs.com/linbc/p/5034286.html C++ Post/Get请求(Boost.Asio库)https://blog.csdn.net/csnd_ayo/arti 阅读全文
posted @ 2019-02-01 14:46
大鹏赋
阅读(1851)
评论(0)
推荐(1)
摘要:
1:需要包含文件文#include <boost/test/minimal_test.hpp> 2:minimal_test内部实现了main(), 因此无需自己编写main()函数, 只要实现test_main()即可 参考资料:http://www.cnblogs.com/moon1992/p/ 阅读全文
posted @ 2019-02-01 10:44
大鹏赋
阅读(297)
评论(0)
推荐(0)
浙公网安备 33010602011771号