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:
00039274
Vues:
33
confusing nlinewidth and nlineheight?

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform