How to pass an array of single values to a message?
- From: "tham" <thamyt@xxxxxxxxxxxxxxxxx>
- Date: Wed, 17 May 2006 17:15:23 +0800
Hi
I have an ActiveX control and one of its methods take in a parameter of
array of single values.
The vendor of the ActiveX control has some sample of using the control.
However these sample code is in VB and Visual C++.
Below are the sample codes:
*************************************************
** VB code **
Dim sngLayout(4) As Single
sngLayout(0) = 0
sngLayout(1) = 0
sngLayout(2) = 200
sngLayout(3) = 300
ImgScan1.SetScanCapability 106, sngLayout
*************************************************
*************************************************
** VC++ code **
VARIANT sngLayout[4];
V_VT(&sngLayout[0]) = VT_R4;
V_VT(&sngLayout[1]) = VT_R4;
V_VT(&sngLayout[2]) = VT_R4;
V_VT(&sngLayout[3]) = VT_R4;
V_R4(&sngLayout[0]) = 0;
V_R4(&sngLayout[1]) = 0;
V_R4(&sngLayout[2]) = 200;
V_R4(&sngLayout[3]) = 300;
COleSafeArray sa;
sa.CreateOneDim(VT_R4,4,&sngLayout);
ImgScan1.SetScanCapability (106, sa);
************************************************
I have problem how to pass the array of single values to the method in VFP
8.
Does anyone know how to do it?
Appreciate your help.
Tham
.
- Prev by Date: Re: Trying to use Run (!) command in Fox DOS
- Next by Date: windows smtp server
- Previous by thread: Re: exe won't run
- Next by thread: Re: How to pass an array of single values to a message?
- Index(es):
Relevant Pages
|