Since the dll's addresses are dinamic we cant set the addresses of new functions in the txt file, well not directly
you could create a map like this
map<string, void (__cdecl *)(...)> mapName;
and a new function
void newfunction(...something);
then in runtime set the map values
mapName["newfunction"] = newfunction;
so when reading the "newfunction" string from the txt we have a correct address for it
this is just a sugestion ..anyone with a better idea, reply
|