>Hello All,
>
>I'm trying to use the API on an NT 4.x machine thru VFP6. The particular function is in User32.lib and is named 'GetClipboardData()'. It takes an unsigned integer for its parameter that specifies a clipboard format. The format I'm trying to use is CF_BITMAP.
>
>I've declared the API function in my init, but when I make the call I receive an error stating the "...variable CF_BITMAP cannot be found."
>
CF_BITMAP is a constant that must be declared using #DEFINE; FWIW, the value is 2. Most constants in the API are defined in one of the common C/C++ header files, for example, CF_BITMAP is defined in WINUSER.H (this is a C file, so you'd still have to translate the content of the .H file; in this case, the syntax for #DEFINE is identical to the syntax in VFP.)
Add the following line of code before making the call to the API
#DEFINE CF_BITMAP 2
or simply substitute 2 for all occurances of CF_BITMAP