CosmoGreco
Programmer
This is possible to achieve in C++. I just can’t figure out how to do it:
Dynamically generate a line of code stored in a string at run-time.
Example:
char *pszVar = “int iVar = 10;”;
Then, how to make the contents of pszVar come alive like a macro substitution so it will be a line of code like?
int iVar = 10;
Thanks,
Cos
Dynamically generate a line of code stored in a string at run-time.
Example:
char *pszVar = “int iVar = 10;”;
Then, how to make the contents of pszVar come alive like a macro substitution so it will be a line of code like?
int iVar = 10;
Thanks,
Cos