This is typically where polymorphism is used, but without an idea of the design of your objects, I can't really offer much more than that hint.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>I'm limited as to what I can give you (security reasons)
Hehe, the Top Secret Addendum to the C++ Language ;)
It seems nobody can tell you anything with unknown types of state.Variable and saveloadtypes array or strTmp and strBuf scopes or correct pFrame and m_pAppWnd pointer values...
There are lots of possibilities to get troubles in this code snippet.
Regrettably I can't enumerate all ones here (security reasons)...
ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348