B
Bern McCarty
In MEC++ I could just call a function that was expecting a String __gc* even
though I had a native char *. The char * automatically got marshaled to a
String __gc*.
In the May CTP of VS 2005 I just get a compile-time error: cannot convert
parameter 1 from 'char *' to 'System::String ^'
What would be the normal C++/CLI way to handle this? And can I do it that
way in the May CTP?
I thought it might be the marshal_as template but I couldn't really find it
or enough information about it.
Bern McCarty
Bentley Systems, Inc.
though I had a native char *. The char * automatically got marshaled to a
String __gc*.
In the May CTP of VS 2005 I just get a compile-time error: cannot convert
parameter 1 from 'char *' to 'System::String ^'
What would be the normal C++/CLI way to handle this? And can I do it that
way in the May CTP?
I thought it might be the marshal_as template but I couldn't really find it
or enough information about it.
Bern McCarty
Bentley Systems, Inc.