M
Mike Windsor
I'm hoping this is quite a simple query, but I've spent some time reading
the documentation and I can't seem to get anywhere.
I have a .NET front-end (C++) which has to talk to unmanaged code doing the
actual work behind the scenes. I need to pass a string (representing a
filename) to the unmanaged code so it can create an output file for some
data using an ofstream object.
All the Strings / char arrays that I seem to be able to make are __gc, which
cannot be passed to unmanaged code.
How do I (hopefully without too much mess) get an un-managed string or
char[] out of the .NET framework?
Thanks for your help!
Mike
the documentation and I can't seem to get anywhere.
I have a .NET front-end (C++) which has to talk to unmanaged code doing the
actual work behind the scenes. I need to pass a string (representing a
filename) to the unmanaged code so it can create an output file for some
data using an ofstream object.
All the Strings / char arrays that I seem to be able to make are __gc, which
cannot be passed to unmanaged code.
How do I (hopefully without too much mess) get an un-managed string or
char[] out of the .NET framework?
Thanks for your help!
Mike