M
muffinman
Hello,
I try to convert a string (char[] or string or CString, etc) into
an executable function.
For example :
char sample[20] = "cout << \"sample\"";
char setColor[30] = "glColor3f(1.0f, 1.0f, 0.0f);"
execute(sample); // my wish is to do this!
execute(setColor); // and also this!
then I can run the string.
I am trying to write a game console without directInput. I want to
execute any strings, without switch or if comparisons...
Thank you
I try to convert a string (char[] or string or CString, etc) into
an executable function.
For example :
char sample[20] = "cout << \"sample\"";
char setColor[30] = "glColor3f(1.0f, 1.0f, 0.0f);"
execute(sample); // my wish is to do this!
execute(setColor); // and also this!
then I can run the string.
I am trying to write a game console without directInput. I want to
execute any strings, without switch or if comparisons...
Thank you