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#
from C++ to C#
Collapse
X
-
Originally posted by dru103079I 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#
Or do you mean how do you open and parse a text file in c#?
-mwalts -
Originally posted by mwaltsDo 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#?
-mwaltsComment
-
Originally posted by dru103079yes I need to know how to send dara from a c++ process to c# process during runtime.
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
-
Originally posted by chinuNecessary 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
Comment