mmm....vediamo se riesco a spiegarmi..
Io ho questa mia dichiarazione in VB che richiama una funzione scritta in C (in una dll)
Ora, come penultimo valore io gli passo una stringa vuota e lui me la riempe con il valore che mi interessa, a seconda del parametro che gli ho passato in CRYPT_ATTRIBUTE_TYPE. In questo caso, il valore è (riportando quanto dice il manuale)codice:Public Declare Function cryptGetAttributeString Lib "CL32.DLL" (ByVal cryptHandle As Long, _ ByVal attributeType As CRYPT_ATTRIBUTE_TYPE, _ ByVal value As String, _ ByRef valueLength As Long) As Long
Ora quello che mi dovrebbe restituire è in realtà la data (data e ora credo) in cui un documento è stato firmato digitalmente.codice:TIME: The standard ANSI/ISO C time value containing the local time expressed as seconds since 1970. This is a binary (rather than numeric) field, with the data being the time value (in C and C++ this is a time_t, usually a signed long integer
Invece mi restituisce qualcosa tipo: "Gê|A"
qualcuno sa mica perchè?

Rispondi quotando