CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    42

    Question About Inter-process communication between Application1(in C++)and Application2(in C#)

    My scenario is like this.
    I have to develop an unmanaged DLL (in C++) which will run as part of Application1. "MyDLL" will export functions using __declSpec(dllexport) and make them available to Application1.

    i have another Application2 which is in C#. Application2 uses .NET remoting to achieve inter-process communication. It offers APIs to invoke it, and interact with it for data transfer, etc.

    From within "MyDLL", I need to call these C# APIs and invoke Application2 (which obviously runs as seperate process, I suppose), and do data transfer to and fro.

    I think .NET remoting requires applications on both sides to be developed in C#. Whereas, "MyDLL" here is a C++ DLL.

    I request someone to suggest how to achieve this.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: About Inter-process communication between Application1(in C++)and Application2(in C#)

    Application2 uses .NET remoting to achieve inter-process communication.
    Please be a bit more specific about that. Let's use OS-level terms (like pipe, socket, etc.) but not C#.
    Best regards,
    Igor

  3. #3
    Join Date
    Jul 2008
    Posts
    42

    Re: About Inter-process communication between Application1(in C++)and Application2(in C#)

    I'm afraid, i do not know much details. Application2 team simply says that it uses .NET Remoting for inter-process communication.

    What i would like to know is: How could I go about in producing "MyDLL"?

    Application2 team has released a set of dlls (rather assemblies in C# terminology).

    I have to decide the architecure of MyDLL (i.e right from project settings, compiler options, to implementation details).

    One of the exported functions (that Application1 team requires) has the following signature:

    __declspec(dllexport)
    int processData(int num_data, const wchar_t** equations);

    How could I transfer such pointer information (of Application1) to Application2 APIs via my C++ DLL?

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