Y
Yan Vinogradov
There are two ways to convert a char* received from the unmanaged code
into a managed System.String object that I am aware of. The first one
is to simply construct String object passing char* as constructor
parameter. The second one is to use Marshal:
trToStringAnsi (or
similar) method. Both seem to work just fine. Are there any catches
that I am missing?
Thanks,
Yan
into a managed System.String object that I am aware of. The first one
is to simply construct String object passing char* as constructor
parameter. The second one is to use Marshal:

similar) method. Both seem to work just fine. Are there any catches
that I am missing?
Thanks,
Yan