The title contains all. How do I pass a char and char* from C# to C++/CLI.
Here is my cpp function declaration:
int ForexCpp::FXCrossDate(
char usdTypeOfPeriods,
char *holidayFile,
TDate% result); /* (O) Resulting FX cross date */
In C#, char and char * are exposed as sByte and sByte*…
Since you have chosen to use C++/CLI rather than P/invoke the natural way to handle this is to pass a .net string rather than a
char*.