Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C Structure query
Message
From
30/01/2002 10:05:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
C Structure query
Miscellaneous
Thread ID:
00612717
Message ID:
00612717
Views:
62
Hello All,

I am attempting to using API calls to a 3rd party DLL to query their own database.

The function I have found myself using seems fairly simple at first glance...

void CheckDetails (DetailsChecked* details, long* Index)

The problem I have is with the DetailsChecked structure type. The type itself is made up of 70 parameters each being LONG or CHAR* (pointers to the memory address of CHAR datatypes)

An Example would be that the DetailsChecked Structure is made up thus:

(CHAR* String1, LONG LengthOfString1, CHAR* String2, LONG LengthOfString1)

Although with 70 parameters rather than 4.

Can this structure be emulated in VFP 6.0? I have tried declaring an array of 70 elements, I also tried one long character string... until I realised that CHAR* was apointer to the value rather than the value itself. Any ideas?

TIA for any advice or help that can be provided.

Regards,

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
Next
Reply
Map
View

Click here to load this message in the networking platform