• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >vc/mfc > InvokeHelper()函数问题

InvokeHelper()函数问题

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-04

佚名通过本文主要向大家介绍了invokehelper函数,invokehelper,实际问题与二次函数,函数零点问题,二次函数最值问题等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: InvokeHelper()函数问题
描述:

谁能给我解释一下InvokeHelper()函数对OLE控件功能及它的参数含义?


解决方案1:

 Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: J# Code: JScript  
Visual Basic
C#
Visual C++
J#
JScript
MFC Library Reference 
CWnd::InvokeHelper 
See Also  Send Feedback 
 
Call this member function to invoke the ActiveX Control method or property specified by dwDispID, in the context specified by wFlags.
 
void AFX_CDECL InvokeHelper(
   DISPID dwDispID,
   WORD wFlags,
   VARTYPE vtRet,
   void* pvRet,
   const BYTE* pbParamInfo,
   ... 
);
 
Parameters
dwDispID
Identifies the method or property to be invoked.
wFlags
Flags describing the context of the call to IDispatch::Invoke. For possible wFlags values, see IDispatch::Invoke in the Windows SDK.
vtRet
Specifies the type of the return value. For possible values, see the Remarks section for COleDispatchDriver::InvokeHelper.
pvRet
Address of the variable that will that will receive the property value or return value. It must match the type specified by vtRet.
pbParamInfo
Pointer to a null-terminated string of bytes specifying the types of the parameters following pbParamInfo. For possible values, see the Remarks section for COleDispatchDriver::InvokeHelper.
...
Variable List of parameters, of types specified in pbParamInfo.
Remarks
The pbParamInfo parameter specifies the types of the parameters passed to the method or property. The variable list of arguments is represented by ... in the syntax declaration.
This function converts the parameters to VARIANTARG values, then invokes the IDispatch::Invoke method on the ActiveX control. If the call to IDispatch::Invoke fails, this function will throw an exception. If the SCODE (status code) returned by IDispatch::Invoke is DISP_E_EXCEPTION, this function throws a COleException object, otherwise it throws a COleDispatchException.
Note: 
This function should be called only on a CWnd object that represents an ActiveX control.
 
For more information about using this member function with ActiveX Control Containers, see the article ActiveX Control Containers: Programming ActiveX Controls in an ActiveX Control Container.
Requirements
Header: afxwin.h
See Also
Concepts
CWnd Class
CWnd Members
Hierarchy Chart
CWnd::GetProperty
CWnd::SetProperty
COleDispatchDriver Class
CWnd::CreateControl
Send feedback on this topic to Microsoft.


分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • InvokeHelper函数的用法,有人熟悉吗?
  • InvokeHelper
  • 用InvokeHelper实现的类的变量调用
  • 想请教关于ActivexControlmediaplayer的问题不知InvokeHelper怎么用
  • 关于InvokeHelper函数操作outlook
  • Invalidpropertyvalue错误//InvokeHelper
  • 求救:如何通过COleDispatchDriver类的InvokeHelper()调用COM的方法
  • 关于InvokeHelper问题
  • InvokeHelper()函数问题
  • InvokeHelper获取控件属性值时返回空

相关文章

  • 2017-06-05 调用DLL时出错,小毛病,来看看吧!
  • 2017-06-04 [COM新手提问]COM组件调用不起来,达人来看看
  • 2017-06-05 有关调试的一个很妖的问题?
  • 2017-06-04 ActiveX的事件是怎么回事?
  • 2017-06-04 adosqlserver问题
  • 2017-06-04 做了个MFCACTIVEX,插入到RICHEDIT中,出现问题,急须帮助
  • 2017-06-04 使用MFC在应用程序中嵌入MSWord的问题
  • 2017-06-05 求助如何使控件消失
  • 2017-06-04 请教高手,在线等,基于CDHTMLDialog类的应用程序,如何动态改变页面上的图片?
  • 2017-06-05 BeyondCompare的右键菜单

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • dll中创建大数组失败
    • release有这样的警告,请教怎样解决?
    • 在一个Win32动态DLL中建立的成员函数如何export出来给其他应用程序调用?
    • 进程外组件的线程模型
    • 当某客户端的对象实例被放入池中之后,对象的数据成员保存在何处?
    • directshow视频采集问题
    • 《未公开的Windows核心技术UndocumentedWindows英文原名》哪里有?
    • 关于CreateProcess中环境变量的问题
    • activex的高手帮帮忙
    • 一个ATL入门的简单问题,请进来看看

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有