Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPOLE.DLL
Message
From
18/06/1999 13:08:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
FPOLE.DLL
Miscellaneous
Thread ID:
00231492
Message ID:
00231492
Views:
28
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
Map
View

Click here to load this message in the networking platform