Jean,

You have this in ftp://foxincloud.com/ab/abOOP.PRG

You can:
1/ download ftp://foxincloud.com/ab/*.* (preferably into home(1) + 'tools\ab\')
2/ in your startup program:
    set path to <where the above files are installed > additive
    do ab
3/ get the XML using:
cXML = cXMLofObject(yourObj)

4/ restore the object using:
yourObj = objectOfXML(m.cXML)

both cXMLofObject() and objectOfXML() are in abOOP.prg
read source code for more details like error handling

supports:
- nested objects
- array properties
- collections
- class and classlibrary
- protected and hidden properties of objects derived from FoxInCloud 'base classes' aw.vcx!aw* (included in the download)

does not support:
- Object array elements
- protected and hidden properties of objects not derived from FoxInCloud 'base classes'

Thierry Nivelet
FoxInCloud
Give your VFP app a second life in the cloud
http://foxincloud.com/

Le 27/01/2015 21:20, Jean MAURICE a écrit :
I would like to test transmission of datas between two exe with shared memory (CreateFileMapping, OpenFileMapping, MapViewOfFile, UnmapViewOfFile).

I can do it work with strings (I can send a string and I can receive it in the second exe).

But now, I want to improve it : I would like to transmit 'objects' (things that are called 'structure' in C) like

DEFINE CLASS test AS custom
    toto = "toto"
    tata = "tata"
    tutu = -2
    titi = .T.
ENDDEFINE && test

XML seems to be my friend for that. I found on Ed's download page "ctxml.prg" that works with object built with SCATTER NAME but not with an instance of the 'test' class above.

1) has anyone already done this and can give me help and ... encouragement ;-)

2) is there a tool that can translate properties of classes to XML and vice-versa ?

The Foxil

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to