Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to declare DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00260473
Message ID:
00260532
Vues:
14
>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
>

You might want to look at CLSHEAP in the Files Section here on UT

>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
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
Répondre
Fil
Voir

Click here to load this message in the networking platform