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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only