>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