随笔分类 -  VC/EVC

摘要: 阅读全文
posted @ 2009-12-24 16:21 木瓜脑袋 阅读(3866) 评论(0) 推荐(0)
摘要:字符串的长度通常是指字符串中包含字符的数目,但有的时候人们需要的是字符串所占字节的数目。常见的获取字符串长度的方法包括如下几种。 1.使用sizeof获取字符串长度 sizeof的含义很明确,它用以获取字符数组的字节数(当然包括结束符\0)。对于ANSI字符串和UNICODE字符串,形式如下: sizeof(cs)/sizeof(char) sizeof(ws)/sizeof(wcha... 阅读全文
posted @ 2009-12-12 00:10 木瓜脑袋 阅读(494) 评论(0) 推荐(0)
摘要:毫无疑问,我们都看到过像 TCHAR, std::string, BSTR 等各种各样的字符串类型,还有那些以 _tcs 开头的奇怪的宏。你也许正在盯着显示器发愁。本指引将总结引进各种字符类型的目的,展示一些简单的用法,并告诉您在必要时,如何实现各种字符串类型之间的转换。 在第一部分,我们将介绍3种字符编码类型。了解各种编码模式的工作方式是很重要... 阅读全文
posted @ 2009-12-11 23:31 木瓜脑袋 阅读(969) 评论(0) 推荐(0)
摘要:I have created a simple 'Hello, world' application for smart phone. It compiles and runs just fine. But when I try to open rc-file in resource editor I get the following error:error RC2104: undefined keyword or key name: I_IMAGENONE. 阅读全文
posted @ 2009-11-28 17:20 木瓜脑袋 阅读(4069) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-11-19 16:21 木瓜脑袋 阅读(1467) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-11-19 13:24 木瓜脑袋 阅读(473) 评论(0) 推荐(0)
摘要:windows的组件中,可以说,滚动条是最难的。难就难在如何设置滚动信息上。 阅读全文
posted @ 2009-10-29 10:24 木瓜脑袋 阅读(1192) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-10-20 08:49 木瓜脑袋 阅读(3582) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-07-02 09:36 木瓜脑袋 阅读(602) 评论(0) 推荐(0)
摘要:在写WinCE程序时,经常要针对不同的版本写不同的代码,如何在预编译时判断WinCE的版本呢? 可使用如下语句判断 //=============== //判断WinCE版本号 #if (_WIN32... 阅读全文
posted @ 2009-06-25 13:22 木瓜脑袋 阅读(1074) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-06-24 14:19 木瓜脑袋 阅读(706) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2009-06-24 14:16 木瓜脑袋 阅读(1287) 评论(0) 推荐(1)
摘要:采用Win32 SDK编程,主窗口显示采用DialogBox()函数,在窗口中添加了List control控件后,程序一运行就退出,删除List control控件后,程序就可以正常运行了。 阅读全文
posted @ 2009-06-10 14:53 木瓜脑袋 阅读(1734) 评论(2) 推荐(0)
摘要: 阅读全文
posted @ 2009-06-08 16:54 木瓜脑袋 阅读(899) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-06-08 16:52 木瓜脑袋 阅读(1793) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-06-08 16:48 木瓜脑袋 阅读(1358) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2009-06-05 11:39 木瓜脑袋 阅读(1070) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-06-04 11:57 木瓜脑袋 阅读(573) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-04-15 22:11 木瓜脑袋 阅读(1360) 评论(0) 推荐(0)