Original Post
Okay, this may sound crazy, but it is possible to call a function from within a string. I''ll explain what I mean:
int main()
{
char string[50];
string="printf(\"Test\")";
}
I want to call the function stored inside of string. The reason I want to do something like this is because I am writing a game which loads all map data from an external file and I don''t want to have to create a scripting language in order to load event data into the game. I know something similar to this can be done because in Win32 programming, you have to point a Window initialization variable to a class, which is store inside of a string. I''d appreciate any help. Thanks.