Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return (floats / SINGLE/ DOUBLE) from an API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039147
Message ID:
00039263
Vues:
34
I had already tried setting nLineWidth to a float. It made no difference. In particular. I had put
nLineHeight = 1.1
after the DECLARE DOUBLE line.

>> in VFP
>> DECLARE DOUBLE AQuAGetLineHeight IN AQuA_Lib INTEGER nInstanceID
>> nLineHeight = AQuAGetLineHeight(1)
>> wait window str(nLineHeight,10,3)
>>
>> in C++
>> float FAR PASCAL EXPORT AQuAGetLineHeight(long nInstanceID)
>> {
>> AFX_MANAGE_STATE(AfxGetStaticModuleState());
>> // normal function body here
>> return(2.2345);
>> }
>>
>> The wait iwndow shows 2.000.
>
>try adding
>nLineHeight=0.00 or some other float value before you call your function
>
>Arnon
Karen E. Lahey
Huron Valley Software Consulting LLC
klahey@hvsc.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform