2011年7月13日
摘要: 今天在Essential C# 2.0里面看到的一段话:In C++, methods called during construction will not dispatch the virtual method. Instead, during construction, the type is associated with the base type rather than the derived type, and virtual methods call the base implementation. In contrast, C# dispatches virtual meth 阅读全文
posted @ 2011-07-13 19:28 caucyj 阅读(1332) 评论(0) 推荐(1) 编辑
  2011年2月12日
摘要: VariantChangeType 函数原始地址:http://msdn.microsoft.com/en-us/library/ms221258.aspx将VARIANT变量从一个类型转化到另外一个类型HRESULT VariantChangeType( VARIANTARG *pvargDest, VARIANTARG *pvarSrc, unsigned short wFlags, VARTYPE vt );参数:pvargDest 指向目标VARIANT的指针。 如果这个参数和pvarSrc是相同的,这个参数就能被适当的转化。pvarSrc指向需要被强制转化的变量的指针wFla 阅读全文
posted @ 2011-02-12 16:55 caucyj 阅读(2646) 评论(0) 推荐(0) 编辑
  2011年2月10日
摘要: VARIANT and VARIANTARGData Types [Automation]原始地址:http://msdn.microsoft.com/en-us/library/ms221627.aspx#footerLink使用VARIANT类型来表示DISPPARAMS内部传递的参数, 同时VARIANT可以订制那些不能引用传参的变量类型。当一个变量A通过VT_VARIANT| VT_BYREF 类型被另外一个变量B引用时,被引用A就不能是VT_VARIANT| VT_BYREF类型。VARIANT类型能作为值传递,VARIANTARG也不能。下面是OAIDL.h文件里面对VARIANT 阅读全文
posted @ 2011-02-10 08:04 caucyj 阅读(1988) 评论(0) 推荐(0) 编辑