OK, I decided to write a wrapper in VB for the ActiveX. Got the basic simple test to work. Now the problem is I have no clue how to pass things back and forth between VB and VFP. None of my VB or VFP books seem to address the problem, and my web searches come up futile.
I figured I can pass a VFP string to VB, by doing
aString="abc"+chr(0) and using *aString and if the VB program changes the string, I get the changed value back in VFP.
But how come I don't have to remove the chr(0) on return. What if VB returns a bigger string, will that cause it write over other data?
Ideally I need to pass VB an array of strings, and get values returned in corresponding arrays, the returned values could be different data types, string, integer, float, etc.
There must be some nice little set of FAQS to cover all this.
Précédent
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