Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clipboard functions
Message
De
23/11/1999 06:12:02
 
 
À
23/11/1999 06:04:35
Tom Antczak
Allentown Digital Services
Allentown, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00294261
Message ID:
00294262
Vues:
18
>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
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform