2009年2月25日

VC:CString用法整理

摘要: 1.CString::IsEmpty BOOL IsEmpty( ) const; 返回值:如果CString 对象的长度为0,则返回非零值;否则返回0。 说明:此成员函数用来测试一个CString 对象是否是空的。 示例: 下面的例子说明了如何使用CString::IsEmpty。 // CString::IsEmpty 示例 CString s; ASSERT( s.IsEmp... 阅读全文

posted @ 2009-02-25 20:12 chuncn 阅读(1160) 评论(0) 推荐(0) 编辑

vc的一些简单用法

摘要: 一: CStatic的用法 public: CMyStaticDlg(CWnd* pParent = NULL); // standard constructor CStatic m_Dynamic; //设置文本 CStatic* static1 = (CStatic*)GetDlgItem(IDC_STATIC1); static1->SetWindowText... 阅读全文

posted @ 2009-02-25 20:03 chuncn 阅读(1648) 评论(0) 推荐(0) 编辑

c++重点分析[转]

摘要: 一、#include “filename.h”和#include 的区别 #include “filename.h”是指编译器将从当前工作目录上开始查找此文件 #include 是指编译器将从标准库目录中开始查找此文件 二、头文件的作用 加强安全检测 通过头文件可能方便地调用库功能,而不必关心其实现方式 三、* , &修饰符的位置 对于*和&修饰符,为了避免误解,最好将修饰符紧靠变量名 ... 阅读全文

posted @ 2009-02-25 20:00 chuncn 阅读(381) 评论(0) 推荐(0) 编辑

c# 委托 和 c/c++指向函数的指针 的区别

摘要: c/c++ 指向函数的指针 普通函数int fun(int a, int b){ return a > b ? a : b;} 指向函数的指针int (*pf)(int , int); 初始化int (*pf)(int , int) = fun;int (*pf)(int , int) = &fun;赋值pf = fun; 调用 fun(1, 3); pf(1, 4); 或者 (*pf)(2,... 阅读全文

posted @ 2009-02-25 01:18 chuncn 阅读(2105) 评论(2) 推荐(0) 编辑

导航