+ Reply to Thread
Results 1 to 2 of 2

Thread: How to send whole structure to another process?

  1. #1

    How to send whole structure to another process?

    I have following structure:

    Code:
    struct Student
    {
    	int m_nRole;
    	char m_szName[100] ;
    } ;
    I want to pass this structure from one process to another process on the same machine.

    How to do this?

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    46
    There are couple of Inter Process Communication to do this:

    a. Shared memory
    For more information : http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

    b. Socket
    For more information : http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

    c. Clipboard
    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

    d. Windows Message with WM_COPYDATA

    e. Use named pipe
    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

    I hope this helps.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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