1.) Verify the function prototype
2.) Verify the address is correct
3.) Use a bigger buffer. You risk causing a buffer overflow by only using 32 bytes.
Code:const char* something = reinterpret_cast< const char* >( 0xdeaddead ); char buf[ 1024 ] = { 0 }; // Maximum size of a command sprintf_s( buf, "Something is: %s", something ); CBuf_ExecuteText( 0, 0, buf );