Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Way To Pass Data From COM-Server To Client ?
Message
De
12/05/2006 12:33:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Best Way To Pass Data From COM-Server To Client ?
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01121386
Message ID:
01121386
Vues:
58
What is the best technique to exchange data from VFP/COM-DLL to client (VFP or VB.NET)? Now I use XML in VFP, because I can easily convert XML to cursor (or reverse) with XmlToCursor() or CursorToXML(). But it's slowly with among of data (because XmlDOM). I wonder if I could use another way to exchange data between layer? What is your suggestion? By example, can I use a recordset between both entities? Is using SAX instead XmlDOM could be better and, if so, how to implements this to obtain the same result (a cursor)?

>> VFP client looks like...
obj = CREATEOBJECT("DataAccessLayer.cAccessTablesDBF")
obj.cTableName = "customers.dbf"
cXml = obj.GetXmlTable()
XMLTOCURSOR("cXml", "MyCursor", 1024)
release obj

>> COM-DLL server looks like...
use (cTableName) in 0 shared
CURSORTOXML(cTableName, "cXML", 1, 6, 0, "1")
use in (cTableName)
return cXML
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform