Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Out Long pointers out of an DLL call
Message
 
 
À
29/09/2003 10:56:23
Tom Johnson
Plymouth Rock Technology, Inc.
Plymouth, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00833153
Message ID:
00833156
Vues:
20
Try
xOut = 0
yOut = 0
>I'm trying to get this call to work in VFP, but have ben unsuccessful so far.
>
>PixelToValue ([in] double x, [in] double y, [out] long *xValue, [out] long *yValue,CfxAxisIndex nYAxis);
>
>Anyone have an idea on how to make this work in VFP? I seem to be hung up on the Out Long pointers. Here is my best guess...but VFP returns OLE Error code # 0x80020005 -- Type Mismatch.
>
>Thanks,
>
>Tom J
>
>LPARAMETERS oSource, nXCoord, nYCoord
>
>LOCAL xOut
>LOCAL yOut
>
>xOut=REPLICATE(CHR(0),4)
>yOut=REPLICATE(CHR(0),4)
>
>*ChartName.PixelToValue([in] double x, [in] double y,
>* [out] long *xValue, [out] long *yValue,CfxAxisIndex nYAxis);
>
>this.pixeltovalue(nXCoord,nyCoord,@xOut,@yOut,0) && problem seems to be with xOut and yOut
>
>? VAL(xout),VAL(yout)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform