Hi all.
I'm experimenting with executing VFP commands from another application and in running the example in the MSDN documentation (for FPOLE.DLL), every thing appears to work correctly except I don't get any data written to my buffer when executing the FoxEval command.
I'm running VFP 6.0 SP3.
This is the code:
MYDLL = "C:\Program Files\Microsoft Visual Studio\Vfp98\Fpole.dll"
DECLARE integer SetOleObject in (MYDLL) string
DECLARE integer FoxDoCmd in (MYDLL) string,string
DECLARE integer FoxEval in (MYDLL) ;
string, string @,integer
=SetOleObject("visualfoxpro.application")
cBuff=SPACE(100)
nM3 = FoxEval("TTOC(DATETIME())",@cBuff,100)
cM3 = ALLTRIM(cBuff)
clear dlls
***
FoxEval return 20 (number of characters supposedly put into the buffer) but the buffer is unchanged.
Anyone have any ideas?
Thanks...
Robert Lewis
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