Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending VFP arrays to/from C++?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00258437
Message ID:
00259248
Views:
18
>Hi Michael,
>
>>Has anyone done any work with sending VFP arrays to a dll or returning C++ arrays from a dll to VFP? Ideally what I would like to do is pass a VFP array to my dll and have it populate the array for me. Almost as good would be to have the dll pass back a C array and allow VFP to manipulate it instead. Has anyone done something similar?
>
>Are you talking about an OLE DLL (ie. a COM object), or a plain procedural DLL? In case of the latter, check out my structure class (STRUCT.ZIP here in the file library). It contains some sample about passing arrays to the Windows API and vice versa.
>
>Christof

Hey Christof. Thanks for the info on the struct.zip. I've been looking at it. Some good stuff in there! The DLL I am talking about is a plain procedural DLL. The problem I am faced with is basically this: I need to manipulate a long string in various ways as fast as possible. VFP hasn't been able to meet the benchmarks I was shooting for, so I figured creating a similar function in C++ might improve performance. Ultimately, the modfied string will be moved to a VFP array. I am concerned if I manipulate the string in C++ and return it to VFP only to have VFP move that string into an array performance will once again suffer. Perhaps a better solution would be to pass a VFP array to C++ and allow it to populate the array. All I really need to do this is a byte-map of how VFP stores arrays. Do you know of any resources for this sort of thing?

Michael G. Emmons
memmons@nc.rr.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform