• 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 > 求助:Adonix的Callocx应该怎么调用别的语言开发的控件,附语法说明

求助:Adonix的Callocx应该怎么调用别的语言开发的控件,附语法说明

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

佚名通过本文主要向大家介绍了adonix,网上银行登录安全控件,activex控件下载,activex控件,activex控件被阻止等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 求助:Adonix 的Callocx应该怎么调用别的语言开发的控件,附语法说明
描述:

本帖最后由 lwfengzi 于 2011-07-07 11:24:31 编辑

开发语言是法国sage公司出的,4GL 语言,希望能用Callocx来调用开发好的控件,不知道那2个IO接口怎么用,求教
-------------------------------------------------以下是说明
Callocx makes it possible to use COM OBJects (OLE, ActiveX,...).
Prerequisites
Beside the standard interfaces, the OBJects called by the Callocx instruction MUST absolutely implement the following interfaces: 
IOleObject 
IOleInPlaceActiveObject 
 
Syntax
   Callocx return=""with param_list
Parameters
Element 
 Description
 Restrictions
 
return
 returns the information in the form of a table of character strings
 
 
list_param
 List of id_param separated by the character ','.
 The expressions must be alphanumeric and are limited to 255. 
 
 
Examples
############################################################
#--- Creation of the graphical OBJect
Local Char RETOUR(20)
Callocx RETOUR="" With 
& "X3Action=" +chr$(1)+ "1",
& "X3Identification=" +chr$(1)+ "VtChartLib.VtChart",
& "X3Window=" +chr$(1)+ "0",
& "X3Left=" +chr$(1)+ "1",
& "X3Top=" +chr$(1)+ "1",
& "X3Right=" +chr$(1)+ "340",
& "X3Bottom=" +chr$(1)+ "200",
& "X3GetFile=" +chr$(1)+ filpath("GRAPH","Chart_line_1","vtc"),
& "Repaint=" +chr$(1)+ '10"%d"' + "0"
#--- Retrieval of the identification number of the OBJect
If (left$(RETOUR,9) = "X3Number=") Then
    GOCXID = mid$(RETOUR,11,1)
Endif
############################################################
#--- Modification of the OBJect with
# - title and footnote text
# - number of columns and rows
# - number of column and row labelsLocal Char WCLI(255)
WCLI = "$ADXDIR\Report\GX3APP_gailf50_1801\Chart_line_1.vtc"
Callocx "" With
& "X3Action=" +chr$(1)+ "2",
& "X3Number=" +chr$(1)+ GOCXID,
& "ReadFromFile=" +chr$(1)+ '30"%z"' + WCLI,
& "FootnoteText=" +chr$(1)+ '10"%s"' + "graph footer",
& "TitleText=" +chr$(1)+ '10"%s"' + "graph title",
& "ColumnCount=" +chr$(1)+ '10"%d"' + "1",
& "RowCount=" +chr$(1)+ '10"%d"' + "6",
& "ColumnLabelCount=" +chr$(1)+ '10"%d"' + "1",
& "RowLabelCount=" +chr$(1)+ '10"%d"' + "6"
############################################################
#--- Loading of data
Local Decimal WDAT(6)
WDAT(0)=20
WDAT(1)=40
WDAT(2)=65
WDAT(3)=15
WDAT(4)=10
WDAT(5)=10
For WROW = 1 To 6
    Callocx "" With
    & "X3Action=" +chr$(1)+ "2",
    & "X3Number=" +chr$(1)+ GOCXID,
    & "Column=" +chr$(1)+ '10"%d"' + "1",
    & "Row=" +chr$(1)+ '10"%d"' + num$(WROW),
    & "Data=" +chr$(1)+ '10".s"' + num$(WDAT(WROW-1))
Next WROW
############################################################
# Loading the x-axis labels
For WROW = 1 To 6
Callocx "" With 
    & "X3Action=" +chr$(1)+ "2",
    & "X3Number=" +chr$(1)+ GOCXID,
    & "RowLabelIndex=" +chr$(1)+ '10"%d"' + "1",
    & "Row=" +chr$(1)+ '10"%d"' + num$(WROW),
    & "RowLabel=" +chr$(1)+ '10"%s"' + month$(WROW)
Next WROW
############################################################
# The OCX is repainted and the window is activated
Callocx "" With
& "X3Action=" +chr$(1)+ "2",
& "X3Number=" +chr$(1)+ GOCXID,
& "X3Activation=" +chr$(1)+ "1",
& "Repaint=" +chr$(1)+ '10"%d"' + "1"
End
 
Description and comments
The Callocx statement makes it possible to use COM OBJects (OLE, ActiveX,...) in order to submit results in graphical form, for instance. 
For the graphs, a standard structure of the graph must be previously generated in Visual Basic on PC. It is then stored on the server in the GRAPH directory of the folder with the extensin *.vtc. When used, it is transferred and stored on the client in the x3\report\folder_server_port directory. If such a structure is present on the client workstation, there are no transfers from the server. 
This structure defines the initial presentation, such as: 
presence, colors and header presentation, caption and footnote text 
type of display by column (forms, colors etc.) 
Automatic calculation of the y-values. 
etc. 
This initial presentation can be modified upon execution at client workstation level. The modifiable data are: 
Title and footnote text 
Labels of columns and x-values 
Size and position of the window 
Number of columns and rows 
 
There are standard parameters (starting with X3) and parameters specific to the OCX.
 
Standard parameters 
Parameters are passed under the form:
Parameter=Index+Value
Value must be alphanumerical and limitted to 255. This value is preceded by an inde
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

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

  • 求助:Adonix的Callocx应该怎么调用别的语言开发的控件,附语法说明

相关文章

  • 2017-06-05 这是什么意思?
  • 2017-06-05 一个动态库连接的问题
  • 2017-06-04 我要在ocx上添加toolbar只能用多重继承的方式吗?
  • 2017-06-05 已知条件:IStorage,求:其内的IStream
  • 2017-06-04 求助:什么方法能获得一个atl控件的所有属性名及其对应类型
  • 2017-06-04 还有一个问题
  • 2017-06-04 怎么实现像IE的图像工具条imagetoobar类型的东东
  • 2017-06-04 js怎样提取activex控件返回的variant类型数据
  • 2017-06-04 ActiveX控件的显示问题!
  • 2017-06-05 VC6生成的动态库在vc2005下面调用出错。非常急。

文章分类

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

最近更新的内容

    • DLL调用错误,但程序还是执行完了!
    • 为什么出现了这么多的warning,大家帮我看看吧?
    • 一些简单的问题!
    • 运行一个程序,它会产生两个同名进程,这是怎么回事?
    • 关于COM智能指针的问题
    • 怎样用ActiveX控件做浏览本机目录的对话框!
    • DLL如何自动关闭窗口?
    • DLL的输出问题
    • vc++调用vb组件的方法时,vb方法的参数是string类型的,在vc++中应该怎么传参数
    • button失去焦点的处理,再问一次,这次问题描述得更清楚了,希望ActiveX高手帮忙!

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

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