Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to declare DLL
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to declare DLL
Divers
Thread ID:
00260473
Message ID:
00260473
Vues:
57
I am using a vb sample to develop my vfp 6 project. The vb code assigns names and assigns long integers:
Declare Function HeapAlloc Lib "kernel32" (ByVal hHeap As Long, ByVal dwFlags As Long, ByVal dwBytes As Long) As Long

I initially converted it to:
declare long HeapAlloc in kernel32.dll long hHeap, long dwFlags, long dwBytes

But then noticed a VFP snippet in the thread that did:
DECLARE Integer HeapAlloc in Win32Api Integer, Integer, Integer

Are there significance differences between long and integer types?
Do I need the names (ex hHeap)?
My VFP editor accepted the "any" type. Is that okay, though undocumented?
Thanks
Terry
Imagination is more important than knowledge
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform