Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement