CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    17

    problem of serialization

    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?



  2. #2
    Join Date
    Apr 1999
    Location
    France
    Posts
    35

    Re: problem of serialization

    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

  3. #3
    Join Date
    May 1999
    Posts
    17

    Re: problem of serialization

    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!



  4. #4
    Join Date
    Apr 1999
    Location
    France
    Posts
    35

    Re: problem of serialization

    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

  5. #5
    Join Date
    Apr 1999
    Posts
    383

    Re: problem of serialization

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured