资 源 简 介
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
文 件 列 表
ClientDP
res
ClientDP.aps
ClientDP.clw
ClientDP.cpp
ClientDP.dsp
ClientDP.dsw
ClientDP.h
ClientDP.ncb
ClientDP.opt
ClientDP.plg
ClientDP.rc
ClientDPDlg.cpp
ClientDPDlg.h
EditItem.cpp
EditItem.h
MEMDC.H
MyConst.h
ReadMe.txt
resource.h
StdAfx.cpp
StdAfx.h
XComboList.cpp
XComboList.h
XHeaderCtrl.cpp
XHeaderCtrl.h
XListCtrl.cpp
XListCtrl.h
ClientCP
res
ClientCP.aps
ClientCP.clw
ClientCP.cpp
ClientCP.dsp
ClientCP.dsw
ClientCP.h
ClientCP.ncb
ClientCP.opt
ClientCP.plg
ClientCP.rc
ClientCPDlg.cpp
ClientCPDlg.h
EditItem.cpp
EditItem.h
MEMDC.H
MyConst.h
ReadMe.txt
resource.h
StdAfx.cpp
StdAfx.h
XComboList.cpp
XComboList.h
XHeaderCtrl.cpp
XHeaderCtrl.h
XListCtrl.cpp
XListCtrl.h
DataTransfer
CentralProgram.cpp
CentralProgram.h
CentralProgram.rgs
DataPlugins.cpp
DataPlugins.h
DataPlugins.rgs
DataTransfer.aps
DataTransfer.cpp
DataTransfer.dsp
DataTransfer.dsw
DataTransfer.h
DataTransfer.idl
DataTransfer.ncb
DataTransfer.opt
DataTransfer.plg
DataTransfer.rc
DataTransfer.rgs
DataTransfer.tlb
DataTransferps.def
DataTransferps.dll
DataTransferps.exp
DataTransferps.lib
DataTransferps.mk
DataTransfer_i.c
DataTransfer_i.obj
DataTransfer_p.c
DataTransfer_p.obj
dlldata.c
dlldata.obj
MyConst.h
MyStruct.h
resource.h
StdAfx.cpp
StdAfx.h
~VC212.tmp