Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save VARIANT datatype from Fingerprint scanner
Message
De
02/01/2008 17:04:18
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
À
02/01/2008 10:26:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01276941
Message ID:
01279114
Vues:
21
Dennis,
>>if the array is dimensioned with 12 elements (i.e., DIMENSION laFinger[12]), then the size is 12x12 or 144...

This is after the ActiveX control is called, correct? That sure looks like the control is re-dimensioning the array.

Regarding the object browser, I was suggesting looking at the interface to see what what type of parameter was expected, number, string etc., and making sure to pass that type of parameter.

>>Someone said that it is beyond VFP's 'comprehension' for these byte Arrays... true?

VFP8 and later can pass byte arrays by_ref to a COM server. Before that, we were out of luck. No matter what was done with COMARRAY, VFP passed by val only. Drove me crazy about 10 years ago when I was on a project that required passing safearrays to C++ servers by ref.

I can't think of anything else to suggest at the moment, hope you get it to work.


Gary


>Gary,
>
>I'm a little confused by observation 1. Is the size of the array different after the method call? That would seem to indicate a re-dimensioning by the activex component.
>

>Hi, I posted an 'erratum' of sorts on Observation 1... the resulting size is the number of elements of the array I created multiplied by itself... if the array is dimensioned with 12 elements (i.e., DIMENSION laFinger[12]), then the size is 12x12 or 144...
>
>
>I don't have much in the way of more ideas, perhaps loading the array with 0's or chr(0)'s before sending.
>

>
>I have also tried the above suggestion - to no avail. Someone said that it is beyond VFP's 'comprehension' for these byte arrays... true?
>
>
>Have you examined the ActiveX control with the object browser to see if that reveals anything useful? I've dragged an interface on to an open prg or even the command window to see what a method wants and returns.
>

>
>I tried doing that, and the PRG window showed a 'class definition', I then put some code in it, saved it, then instantiated it via CREATEOBJECT()... it doesn't seem to response after that... sorry, but how do you go about using the 'resulting' code?
>
>Thanks!
>
>Dennis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform