c++
JasonRight
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
截取中文输入法输入的字符串,更改编码为ANSI
在全英文的XP中,在非unicode的程序中输入的中文会转为“??”。通过截获WM_IME_COMPOSITION消息得到输入的字符串ImmGetCompositionStringW得到UnicodeWideCharToMultiByte转换为ANSI[code="c++"]BOOL CchartestDlg::PreTranslateMessage(MSG* pMsg...2008-04-29 12:23:24 · 691 阅读 · 0 评论 -
boost库的常用用法
class Shapeclass Triangle : public Shape1.shared_ptr定义类:[code="c++"]typedef boost::shared_ptr ShapeSharedPtr;[/code]实例化:[code="c++"]ShapeSharedPtr shapeSP = ShapeSharedPtr(new Sh...2008-05-07 23:00:53 · 455 阅读 · 0 评论 -
回调函数的用法
在要调用回调函数的类中声明:[code="c++"]CallFun.h//返回类型为void, 参数类型为std::stringtypedef void(*PCALLBACKFunc) (std::string );class CallFun{ private: PCALLBACKFunc m_pCallBack; public: voi...2008-05-08 10:54:13 · 387 阅读 · 0 评论
分享