03 2016 档案

摘要:函数:原型 每一个构造函数都有一个属性叫做原型(prototype,下面都不再翻译,使用其原文)。这个属性非常有用:为一个特定类声明通用的变量或者函数。 在函数内定义的变量和函数如果不对外提供接口,那么外部将无法访问到,也就是变为私有变量和私有函数。 这样在函数对象Obj外部无法访问变量a和函数fn 阅读全文
posted @ 2016-03-24 21:25 疯封风 阅读(24762) 评论(2) 推荐(3)
摘要:http://blog.sina.com.cn/s/blog_4fcd1ea30100qrzn.html bool CUsbSwitchDlg::UnInstallUsb(char szDriveName) //参数是要弹出的盘符如:G,F { DWORD accessMode = 0, share 阅读全文
posted @ 2016-03-21 21:18 疯封风 阅读(768) 评论(0) 推荐(0)
摘要:分3步: 一》实现IDispatch 接口 #ifndef _IDISPIMP_H_ #define _IDISPIMP_H_ // idispimp.h class CImpIDispatch : public IDispatch { protected: ULONG m_cRef; public 阅读全文
posted @ 2016-03-02 22:14 疯封风 阅读(15503) 评论(1) 推荐(1)