Hi All,
I’ve been doing a bit of work of late dealing with interops between managed and unmanaged code, and I have nailed a little snippet which shows how convert between a managed .NET String object and a stanard ANSI/C-style string. Check out the following code if you need to do the same:
1 2 3 4 5 6 | |
Another option is to use the CString class, but some people might not want to have to deal with the extra overhead or objects. The choice is yours :)