Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GlobalAlloc Workspace?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00551490
Message ID:
00551509
Vues:
20
Hi, Dale,

Please drive carefully (when you ride pointers they may lead you to mighty crashs).

So, here is my suggestion based on your info
DECLARE INTEGER GlobalAlloc IN WIN32API INTEGER nFlags, INTEGER nSize
DECLARE INTEGER GlobalFree IN WIN32API INTEGER nHandle

lnHandle = GlobalAlloc(0,32000)
IF lnHandle!=0
   ...
   GlobalFree(lnHandle)
ELSE
   WAIT WINDOW "Out of memory!"
ENDIF
>I am trying to call a DLL from VFP7 and the whitepaper docs specify that I need to have a workspace allocated. They have a sample of VB code and it uses a function called GLOBALALLOC(), but I don't know how to do this in VFP. Does anyone have an idea or where I might look for help on this?
>
>If you need I can post the sample VB code on the site and it might help. The docs also say I must pass the workspace created (around 32000 bytes) as a pointer to the workspace. I have no clue how I might go about that either.

bye
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform