摘要: 原文地址:http://www.cnblogs.com/MikeZhang/archive/2012/03/24/MySplitFunCPP.html这篇文章总结的很好,原文出自上面的地址。一、用strtok函数进行字符串分割原型: char *strtok(char *str, const cha... 阅读全文
posted @ 2015-01-26 11:32 小艾利 阅读(211) 评论(0) 推荐(0)
摘要: 1.自己动手改造codecvt来读写Unicode(LE)代码:#include #include #include #include "TextCodeChange.h"using namespace std;//#define endl L"\r\n"int main(){ locale ... 阅读全文
posted @ 2015-01-25 14:11 小艾利 阅读(1504) 评论(0) 推荐(1)
摘要: wxWidgets界面设计工具DialogBlocks // * create by zyzx // * 2009-3-12 // * 转载请注明来源:http://www.cppblog.com/zyzx 工欲善其事,必先利其器。在MFC上开发,有VS系列强大的可视化工具,基于wx的开发工具虽然没... 阅读全文
posted @ 2015-01-21 20:33 小艾利 阅读(1129) 评论(0) 推荐(0)
摘要: 1 // WINATLTest.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "WINATLTest.h" 6 7 #define MAX_LOADSTRING 100 8 9 // 全局变量: 10 H... 阅读全文
posted @ 2015-01-05 22:55 小艾利 阅读(418) 评论(0) 推荐(0)
摘要: 修改对话框程序的PreTranslateMessage()消息 1 BOOL CMainDlg::PreTranslateMessage(MSG* pMsg) 2 { 3 int nCurSel; 4 if((nCurSel = m_wndOutputList.GetCurSel()... 阅读全文
posted @ 2014-12-24 09:38 小艾利 阅读(591) 评论(0) 推荐(0)
摘要: http://sourceforge.jp/ 阅读全文
posted @ 2014-10-23 16:04 小艾利 阅读(124) 评论(0) 推荐(0)
摘要: 问题描述:Person.h#include #include "Date.h"class Person{public:Person(const std::string& name,const Date& birthday);std::string name() const;std::string b... 阅读全文
posted @ 2014-10-14 10:12 小艾利 阅读(252) 评论(0) 推荐(0)
摘要: 一、ANSI转换为UTF-16#include wchar_t* AnsiToUnicodeBegin(const char* str){ char* sz = new char[strlen(str)+1]; strcpy(sz, str); int wLen = MultiByteT... 阅读全文
posted @ 2014-09-10 22:49 小艾利 阅读(1869) 评论(0) 推荐(0)
摘要: 1.C\C++程序中调用Lua函数方法一:#include "stdafx.h"#include #include #include #include "lua.hpp"const char* lua_function_code = "function dealStr(str) \ ... 阅读全文
posted @ 2014-09-05 13:22 小艾利 阅读(330) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/stephen-liu74/category/360139.htmlhttp://www.cnblogs.com/lancidie/archive/2011/01/31/1948379.htmlhttp://www.cnblogs.com/lancidi... 阅读全文
posted @ 2014-05-19 16:36 小艾利 阅读(124) 评论(0) 推荐(0)