Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C Structure query
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00612717
Message ID:
00613408
Views:
32
Hi Alexander,

Thanks for your assistance

> Yes, it can.
> First, there is a Christof Lange's struct class in UT downloads.

An excellent utility it is too.

> Next, you can allocate memory for string using WinAPI function GlobalAlloc (or something similar), get a pointer to memory with GlobalLock, copy string to buffer and store pointer value in structure. After call of function you have to free the memory by GlobalFree.

I see what you mean... I'll try it out. Thanks.

> But IMO for such kind of tasks there is a C++ language. With C++ you could solve this problem within one hour and avoid a VB runtime overhead.

Very true, unfortunately I have very little knowledge when it comes to C++. To my mind you can't beat Visual FoxPro for database applications, I would happily use C to resolve problems like the one I have here, if only I had the time to teach myself. Visual Basic is a handy second or third best for someone who, like myself, has to get a C based DLL to interface with Visual FoxPro.

Thanks again for your help,

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform