Click to See Complete Forum and Search --> : problem of serialization
moussathiandoum
June 3rd, 1999, 04:47 AM
I have two application client /server
The client is a Active x created with MFC
When the client send CString , DWORD type data , using << operator of CArchive , the server retrieve this with no problem
But when I send a BYTE* pointer with ar::Write , I have a problem ,Is serialization necessary to do
this? How?
B. Colombet
June 4th, 1999, 03:44 AM
Do you write your BYTE* pointer to file ?
I hope no.
I suppose you use CArchive with a memory file which is shared between client and server, isn't it?
Beware to use shared memory with semaphores.
hope it helps.
C++ developer
Faculté de Médecine
27 Bd Jean Moulin
13385 Marseille cedex 05
moussathiandoum
June 4th, 1999, 04:15 AM
I do not send a pointer , I mind the content of a
BYTE *pointer
Is it posible to share memory file using CArchive between two applications if they aren' t in the same computer
if yes , How!
B. Colombet
June 4th, 1999, 04:39 AM
Well, packages like Corba are Client Server specialized.
I'm not expert with it but friends of mine are.
So I don't know if you can use CArchive this way.
But if clients and server are running on the same computer, there is a way to share memory among clients and, why not with the server ?
I'm not sure in this case, that CArchive is the solution (probably not).
I would try to read documentation about DCOM or ActiveX components that might solve the problem.
I'm sorry but I can't help you much about that.
Cheers,
Bruno
C++ developer
Faculté de Médecine
27 Bd Jean Moulin
13385 Marseille cedex 05
Dave Lorde
June 4th, 1999, 04:58 AM
I would suggest using COM (or CORBA) for client-server data exchange and communication, CArchive serialisation is more appropriate for object persistence within a single application.
Dave
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.