Ich habe C++/CLI-Code-Funktion Update auf RichTextbox.Ausgabe von C nach C++/CLI
public:void WriteToRichTextBox(char * outputText)
{
String^ result = gcnew String(outputText);
richTextBox1->Text += result;
}
Und in C-Code, wie kann ich tun:
void updateString()
{
char * abc = "example text";
WriteToRichTextBox(abc);
}
Antwort Update:
Nicht in irgendeiner einfachen oder sinnvollen Weise, wie dieser C-Code geschrieben wird. Ändern Sie stattdessen Ihren C-Code in * return * eine Zeichenfolge. – crashmstr
@crashmstr sicher ich weiß, ich gebe nur ein Beispiel. –