from C++ to C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dru103079
    New Member
    • May 2007
    • 9

    from C++ to C#

    I have an application that i wrote in C++ and sending info to a file, I need to know how to take that file and pass that info into C#
  • mwalts
    New Member
    • May 2007
    • 38

    #2
    Originally posted by dru103079
    I have an application that i wrote in C++ and sending info to a file, I need to know how to take that file and pass that info into C#
    Do you mean you need to know how to send data from a C++ process to a c# process during runtime?

    Or do you mean how do you open and parse a text file in c#?

    -mwalts

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      Originally posted by dru103079
      I have an application that i wrote in C++ and sending info to a file, I need to know how to take that file and pass that info into C#
      If I understand you correctly, this link should help you out.

      Comment

      • dru103079
        New Member
        • May 2007
        • 9

        #4
        Originally posted by mwalts
        Do you mean you need to know how to send data from a C++ process to a c# process during runtime?

        Or do you mean how do you open and parse a text file in c#?

        -mwalts
        yes I need to know how to send dara from a c++ process to c# process during runtime.

        Comment

        • chinu
          New Member
          • Jun 2007
          • 36

          #5
          Originally posted by dru103079
          yes I need to know how to send dara from a c++ process to c# process during runtime.
          Necessary steps.
          1) C# dll should have an interface
          2) ComVisible property should be set to true
          3) using regasm to genearte and register the tlb
          4) using import "xx.tlb" in u r C++ application
          5) Use CoCreateInstanc e and call the object and tranfer the data.
          Hope it helps...

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by chinu
            Necessary steps.
            1) C# dll should have an interface
            2) ComVisible property should be set to true
            3) using regasm to genearte and register the tlb
            4) using import "xx.tlb" in u r C++ application
            5) Use CoCreateInstanc e and call the object and tranfer the data.
            Hope it helps...
            Excellent. Thanks for posting chinu.

            Comment

            Working...