Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return (floats / SINGLE/ DOUBLE) from an API
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00039147
Message ID:
00039274
Views:
35
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
Previous
Reply
Map
View

Click here to load this message in the networking platform