Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FPOLE.DLL
Message
De
18/06/1999 13:08:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
FPOLE.DLL
Divers
Thread ID:
00231492
Message ID:
00231492
Vues:
29
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
Fil
Voir

Click here to load this message in the networking platform