How do I convert CLI array to String^ ?
This is my example:
int main(array<String^>^ args)
{
Application::Run(gcnew Main_Form(args));
return 0;
}
Main_Form(array<String^> ^params)
{
if (params->Length > 0)
{
String^ start_param;
//how do i convert the array to normal String^ ?
}
}
i < params->Length– as-is, you're indexing one past the last element of the array.