W
wc
My C# program imported a dll which has a funcation takes a string parameter.
extern "C" __declspec(dllexport) bool __stdcall kickerOpen(string tmpStr)
// in .cpp
How can i call this funcation in C# to pass in the correct string format?
Since string in C# (System.string) is different than string in C++
(std::String).
In my C# code, I'll get a string from user input in textbox (textbox::Text).
private void openbtn_Click(object sender, EventArgs e)
{
string idstr = idStrtxt.Text;
bool isCaseOpen = false;
isCaseOpen = kickerOpen(...); // how?
}
Can anyone advice?
/wc
extern "C" __declspec(dllexport) bool __stdcall kickerOpen(string tmpStr)
// in .cpp
How can i call this funcation in C# to pass in the correct string format?
Since string in C# (System.string) is different than string in C++
(std::String).
In my C# code, I'll get a string from user input in textbox (textbox::Text).
private void openbtn_Click(object sender, EventArgs e)
{
string idstr = idStrtxt.Text;
bool isCaseOpen = false;
isCaseOpen = kickerOpen(...); // how?
}
Can anyone advice?
/wc