Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Conversions and structures
Message
 
 
To
29/04/1999 10:30:35
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00213418
Message ID:
00213834
Views:
31
Michael:

Here is a KB article that describes passing structures to a DLL.

HOWTO: Pass Structures to a DLL
http://support.microsoft.com/support/kb/articles/q181/2/89.asp?FR=0

HTH,

--Paul

>>>Is there a class out there that will convert datatypes from vfp to standard dll/(c/c++) datatypes. For instance...
>>>
>>>ulong
>>>pStr
>>>etc...
>>>
>>
>>What do you need to do? Simple data types declared via DECLARE DLL are converted by VFP for you; you need to know a good deal more to handle structures and pointers. You might want to look at Paul Tatavu's POINTERS class and my CLSHEAP class, which both provide mechanisms for doing some of the conversions and allocations needed to interface C-style .DLLs with VFP.
>
>Thanx for a fast reply...
>
>
>I need to call a function that is defined like this:
>
>ULONG PacketGetAdapterNames(PTSTR pStr, PULONG pSize)
>
>I can get it to work in Visual Basic, and even Access(scary!) but not in VFP...
>
>Both Arguments should be passed by reference.
>
>In VFP:
>
>declare PacketGetAdapterNames in c:\newpack.dll string @ long @
>and then:
>mike = PacketGetAdapterNames(@buf,@namelength)
>and VFP returns:
>"Too Many Arguments."
Previous
Reply
Map
View

Click here to load this message in the networking platform