Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with VB DLL
Message
De
08/08/2013 07:08:42
 
 
À
08/08/2013 06:49:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01580026
Message ID:
01580033
Vues:
38
Jörg,
>
>the dll is written in c. I Have the c Header File but I'm not very familiar with c so I can't get a hint out of it.

post at least the function signature definiton from the header file and the struct definitions if some of those were used.

>I even thought of a wrapper in VB but my favourite solution is to build it all in foxpro

Depending on what VBA passes
- all strings in a row with the C-typical Char(0) at each end
- only 4 pointers to each string in VBA memory space
- something esle entirely

the solution could be built either in vfp directly (1. possibility), in a C-Fll (probably needed for 2. possibility, as memory in vfp shifts around and in a C-fll you could either lock it or build a local stable memory in the C memory space). Dunno enough of accompanying needs like needed speed, deployment, budget to give you further hints. There ***are*** some structures not directly available from vfp, which traditionally fell to a C fll. No idea nor proof if that is the case here, hence the hint to literature. Wrapper in VB6 IMO is a compromize in cost and speed (both dev and run time).

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform