>Ed Rauh,
> After i change to short in DLL declare it is ok already.
> Can i change the return value to binary ? How ?
A SHORT is a 16 bit binary representation. Read the documentation on the DECLARE...DLL in VFP; it outlines the data types supported for return values and parameters. If you need to look at specific bit patterns, you can use the bitwise operators against various numeric representations to examine bits of a return value explicitly.