HI! i have two dlls one is in c# and the other in c++ i need to send a string from the c# to the c++ :S i've tried many ways i found all over internet but always i receive garbage inside c++, any example on how to do it? i use dll import...

Sounds like maybe you should be passing a reference to the string, not the string its self. Whats the function prototype of the C++ function you are calling?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.