登录
首页 » ActiveX-DCOM-ATL » 变化的变量可以在交付的COM/DCOM接口(输入方法,…

变化的变量可以在交付的COM/DCOM接口(输入方法,…

于 2022-04-08 发布 文件大小:350.44 kB
0 93
下载积分: 2 下载次数: 1

代码说明:

Variant变量可以在COM/DCOM接口方法中传递(传入、传出)不定长结构数组,但是需要打包和解包,效率比较低。这个例子使用了size_is指定长度的方法,本是从MSDN上看到的,但是MSDN上给出的例子不够具体,所以费了些时间摸索,最后试通,给刚接触COM的朋友分享(老家伙们可以直接无视)。本例子由于是工作需要做得试验程序,因此其中存在少量冗余代码,大家注意一下就行了,还有,减少传递的参数个数时,所传递的实时(随机模拟)数据只是减了最后一个(没有减去相对应的),这个Bug不妨碍大局,因此存留,虽然Server支持DCOM,但是Client需要在本地运行,如果想Remote,稍微修改一下既可。-Variant variables can be in the COM/DCOM interface method of delivery (incoming, outgoing) variable-length array of structures, but it needs to be packaged reconciliation package, the efficiency is relatively low. This example uses the method size_is specified length, this is seen from the MSDN, but the example given on MSDN is not specific enough, it took some time to explore, the final test pass, to a friend new to COM sharing (the old guy They can ignore). This example needs to be done because it is the work of testing procedures, and therefore, there is a small amount of redundant code, we take note of the line, and also to reduce the number of parameters passed when the transmission

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 介绍: 介绍如何在Win32中处理串口。串口通讯可以通过多种技术实现,例如:ActiveX,I/O存取和文件操作。本文介绍Win32平台下通过文件操作技术使...
    介绍: 介绍如何在Win32中处理串口。串口通讯可以通过多种技术实现,例如:ActiveX,I/O存取和文件操作。本文介绍Win32平台下通过文件操作技术使用串口。程序员可以使用 Microsoft Visual C++ Version 6.0所提供的kernel32.lib。在Microsoft Windows(2000,Me,XP and 95/98)中,串口作为文件处理。因此可以通过Windows文件创建函数打开串口。 文章不仅介绍了串口通讯,也介绍了在串口通讯应用程序中实现多任务,多任务可以使串口通讯应用程序在同一时间处理更多的任务,例如:读数据任务,发送数据任务,GUI任务等。-Introduction: Introduction of how to deal with Win32 serial port. Serial communication can realize through a variety of technologies, such as: ActiveX, I/O access and file operations. This article describes the Win32 platform by file operation technique using the serial port. Programmers can use Microsoft Visual C++ Version 6.0 provided by kernel32.lib. In Microsoft Windows (2000, Me, XP and 95/98), the serial port as a file handle. Windows files can be created through the open serial port function. Article not only introduces serial communications, also introduced in the serial communication applications realize multi-tasking, multi-mission can make serial communication applications at
    2022-01-22 06:22:02下载
    积分:1
  • 曲线软件,可以非常方便的将数据呈现出来。Vb编写的软件供大家学习使用...
    曲线软件,可以非常方便的将数据呈现出来。Vb编写的软件供大家学习使用-Curve software, can be very easily out of the data presented. Vb written software for everyone learning to use
    2022-02-12 05:16:09下载
    积分:1
  • 学习编程的经典资料 初学者必备 拥有理论性和实践性
    学习编程的经典资料 初学者必备 拥有理论性和实践性-Programming information for beginners to learn the classic theoretical and practical must-have
    2022-02-25 00:55:35下载
    积分:1
  • 在C++ WTL形象观看图像
    Image View in WTL in C++ and see image
    2022-07-15 11:34:11下载
    积分:1
  • 这个目录包含以下内容:
    This directory contains the following: [fajd.m] The FAJD algorithm for finding the approximate general (non-orthogonal) joint diagonalizer of a set of matrices. [test.m] A routine to demonstrates the way to call FAJD after generating a set of target-matrices. [average_performance.m] A routine that compares the average performance of FAJD with different fixed processing parameters. [sir.m] A function that calculates the signal to interference ratio (SIR) of a combined demixing-mixing matrix. Contributed by Xi-Lin Li (e-mail: li-xl04@mails.tsinghua.edu.cn). Comments, bug reports, questions and suggestions are welcome.
    2022-02-28 09:39:28下载
    积分:1
  • Uart communication uart
    Uart communication uart-Uart communication uart
    2022-03-09 18:48:13下载
    积分:1
  • COM使用COM提高C++应用程序的性能(8KB)
    COM使用COM提高C++应用程序的性能(8KB)-COM raise C application performance (8KB)
    2022-07-08 00:27:41下载
    积分:1
  • 文件传输功能 多人传输 实施方式打法接口哈市的法律阿合理的飞机啊还是福利计划...
    文件传输功能 多人传输 实施方式打法接口哈市的法律阿合理的飞机啊还是福利计划-ACTIVEXFILETRANS asdfjklasdjfladfasdkfjklasjf klasjdf lsjkadfsdafasdfas
    2022-03-20 11:01:10下载
    积分:1
  • 条码打印控件源代码,一个大公司的作品 Barcode
    条码打印控件源代码,一个大公司的作品 Barcode-ocx.rar-Bar code printing control, source code, a large company works Barcode-ocx.rar
    2022-07-01 18:16:38下载
    积分:1
  • 使用生成的C++代码的验证码图像IIS过滤器时
    使用IIS过滤器时通过C++生成验证码图片的代码-When using the IIS filter generated by C++ code for the image verification code
    2023-07-04 07:30:03下载
    积分:1
  • 696516资源总数
  • 106462会员总数
  • 0今日下载