Ed,
I haven't hit an API call that needed a negative integer input. My code only converts positive integers. Besides if I needed more than the simple functions I posted I'd just use a VC++ DLL wrapper instead.
>One followup here - the QUAD code I left converts between DWORDs and VFP; the code will work fine as long as the number being converted is a positive integer in the range 0 to (2^31 - 1); if you have negative numbers, they'll convert incorrectly to values 2^31 or greater. I can post code for NumToBINLong and BINLongToNum if there's any need (I don't know what the code on your Web page does; I'm sure everyone and his brother has code that does this correctly by now...)