passing data between C and C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amera
    New Member
    • Dec 2009
    • 29

    passing data between C and C#

    What would be suitable options to exchange data between C program and C# program? The data is CHAR
  • dennisoleksyuk
    New Member
    • Jan 2010
    • 17

    #2
    .NET Interop

    .NET can work with native win32 applications.

    If you application is implemented as a pure win32 dll then a .NET application can call its function.

    If you application is a set of COM objects then they can interact more freely. .NET can create COM objects and call their methods. COM objects can create .NET objects and call their methods.

    Did it help you?

    Comment

    • Amera
      New Member
      • Dec 2009
      • 29

      #3
      could you give me an example ?

      Comment

      • dennisoleksyuk
        New Member
        • Jan 2010
        • 17

        #4
        Example of what? Calling win32 library from .NET, using COM object from .NET, or using .NET object from COM?
        Maybe it will be easier if you will describe what task you need to achieve. Then I can post you some piece of code.

        Comment

        • Amera
          New Member
          • Dec 2009
          • 29

          #5
          Calling win32 library from .NET, using COM object .

          The task is to pass data between C program and C# program .

          which is passing char between them.

          Comment

          • dennisoleksyuk
            New Member
            • Jan 2010
            • 17

            #6
            This post is duplicate of http://bytes.com/topic/c-sharp/answe...address-dll-c#

            Comment

            Working...