Passing strings from c# application to c++ dll
Posted on 2007-07-31
Im trying to create a dll in c++ that i can reference from a c# application. My problem is that i am new to c++ and am just starting the grasp the concepts behind all the different types of strings. I have built a managed class in c++ and linked it fine in c#. it worked for passing ints and doubles as parameters but i cant figure out how to pass a string as a parameter or likewise return a string.
Any help is appreciated, thank you.