In C# I can send the string array to my DLL command via
stringarray[1]="trash"; stringarray[2]="trash"; ... stringarray[22]="trash"; returnvalue = MyCommand(stringarray);
When I attempt this in C++
std::string stringarray[23]; int configlines =0; stringarray[1]="trash"; stringarray[2]="trash"; ... stringarray[22]="trash"; returnvalue = mynamespace::myproj::MyCommand(stringarray);
I get cannot convert parameter 1 from std::string[23] to cli::array<Type,dimension>
the MyCommand shows up as
public static System.Int32 MyCommand(System.String[] stringarray)
Member of mynamespace.myproj
in the Object Browser
What am I doing wrong.
note I don't normally code C++ but use C# & VB.NET


Sign In
Create Account


Back to top









