Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem calling a DLL function
Message
From
15/12/1998 12:36:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00166967
Message ID:
00167761
Views:
30
Actually, I have a legitimate piece of code that both accepts and returns longs with negative values; I have routing code that uses taxicab geometry to compute route travel distances within a city grid, and it accepts both positive and negative integers to specify relative positions...so I'm not just being difficult some of the time.

There are also situations where you may be passed back a negative value as an error code in the API; for example, an instance pseudohandle, as returned by ShellExecute(), can be a negative value for certain classes of errors, and if you're using ShellExecuteEx(), you have to pull that hInstance value out of a structure. I suspect that there are situations where some of the shape API structs like RECT may contain negative longs as well.

>Now you are just being difficult *LOL*
>
>> But I found another one where I passed a -2!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform