Last active
November 23, 2023 14:44
-
-
Save victory-sokolov/060b9fe5f6eecc9f0f7c3250209095a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System::Runtime::InteropServices; | |
char * and_SysStringToChar(System::String^ string) | |
{ | |
return (char*)(void*)Marshal::StringToHGlobalAnsi(string); | |
} | |
String^ s = textBox1->Text; | |
char* str = and_SysStringToChar(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment