Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save VARIANT datatype from Fingerprint scanner
Message
De
27/12/2007 10:33:47
 
 
À
27/12/2007 10:28:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01276941
Message ID:
01277795
Vues:
21
Any indication in the documentation about how big a fingerprint return value would be? I'd imagine it to be a lot larger than 4K, unless it's just the data record about the user that matches that's actually returned. Try setting your buffer to 100K and see if that helps.

>Fred,
>
>>No indication or possibly some other property you have to set that says what the size of the return value buffer is? That's a pretty common way that's used to pass a buffer.
>
>>Is anything being returned in AERROR()? What are you getting back for lnResult?
>
>I am pretty sure there is no property that shows the size of the return value. I may have missed it, so, below is the documentation of that object, FPTEMPLATE. As for lnResult, I get back a value of Zero, which is the success value.
>
>

>FPTemplate
>A COM component containing a fingerprint template. The object is
>characterized by its type, either a preregistration, registration or verification
>template.
>
>Interface
>IFPTemplate
>
>Methods
>
>Export([out] VARIANT* pVal, [out,retval] AIErrors *pErr)
>Exports the template object as a signed blob of bytes.
>
>Import([in] VARIANT Val)
>Evaluates the signature of a blob of bytes representing the signed template
>object and, if verified, imports the data into the FPTemplate object.
>
>Properties
>
>InstanceID([out,retval] BSTR* pVal)
>Returns the GUID of the object in string format (read-only).
>
>Version([out,retval] BSTR* pVal)
>Returns the version number of the object (read-only).
>
>TypeID([out,retval] AIDataTypes* pVal)
>Returns the type of the object, Dt_Template (read-only).
>
>CredType([out,retval] AICredentials* pVal)
>Returns the type of credential this object refers to, Cr_Fingerprint (read-only).
>
>VendorID([out,retval] BSTR* pVal)
>Returns the GUID for the vendor in string format (read-only).
>
>SecureMode([out, retval] AISecureModeMask *pVal)
>Returns the security mode of the object (read-only). See
>“AISecureModeMask” on page 111 for possible values.
>
>Nonce([out, retval] VARIANT *pVal)
>Returns the nonce contained in the object. If no nonce is present, an empty
>variant is returned (read-only).
>
>TemplType([out,retval] AITemplateTypes* pVal)
>Returns the type of the template (read-only).
>
>TemplData([out,retval] VARIANT *pVal)
>Returns the raw template data, without the header and signature (read-only).
>
>Event interface
>None
>
>Event methods
>None
>
>Return codes
>Er_OK is returned if successful. (Er_OK is 0 in value)
>Er_InvalidArg is returned by:
>• Import method when the input parameter is not valid
>• Export method when the parameter is not valid
>Er_BadSignature is returned by:
>• Import method when the signature is not verified
>Er_AlreadyCreated is returned by:
>• Import method when the object is not empty but already contains data
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform