Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need advice on using a VFP DLL
Message
De
25/04/2008 21:22:01
 
 
À
25/04/2008 14:51:13
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01313145
Message ID:
01313252
Vues:
16
>Well I'm stumped already. I compiled a bunch of functions and procedures into an exe as a test. I tried to call a procedure using DO myProc IN myTest.exe WITH 1. While this worked from the command window (i.e., no crash or errors), my problem is that the procedure is supposed to return a string. How do I get the returned value with a DO ... IN ... syntax?

Most of my code works with objects, and you if you have a little helper function in the app returning the objects

function appobject(toRefReturn, tcClass, tcOptClasslib)
toRefReturn = newobject(tcClass, tcOptClasslib)

do appobject in xx.app with loRet, (m.tcClass), (m.tcOptClasslib) && I standardize on return value as 1. par for that pattern

or you set proc to the app and can call similar functions (which must have a distinct name then! One of the few kinks in this approach, read the help about it - fpw was smarter here) returning values. With the objects you work the usual way, calling methods and setting properties.

HTH

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform