BUG: API Fails Passing Very Small Double Datatypes to VFP (167241)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q167241 SYMPTOMS
When calling an API that returns a very small double value, Visual FoxPro
interprets this value as zero.
RESOLUTION
NOTE: The file referenced in this article as Project1.dll is for example
purposes only. Project1.dll is theoretical API library not installed by any
version of Microsoft Visual FoxPro.
As a workaround, call the function through the FoxTools library.
This workaround example is based on the "Steps To Reproduce Behavior"
section of this article. The code in this example is case sensitive;
therefore, it must be typed exactly as it appears below:
SET LIBRARY TO SYS(2004)+"FOXTOOLS"
hh=REGFN32("getVal","C","F","Project1.dll")
x = "0.00000000000000000000000000000000085555"
?CALLFN(hh,x)
This returns the correct value.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
| Modification Type: | Major | Last Reviewed: | 10/16/2002 |
|---|
| Keywords: | kbBug kbProgramming KB167241 |
|---|
|