Original Post
i really don't know what *** **** is wrong here... i've written a simple class with some variables but no matter what i do, i can't access any of it from a function inside this class, i always get error messages, but WHY?!?! the debugger always gives me an error message, saying that i am violating memory when accessing this variable, i really don't know what is wrong, it's like c++ doesn't work anymore -.- the really funny thing is, that DOES work, both functions are inside the 'class CScriptEngine' definition. please help me, this is driving me crazy -.-
class CScriptEngine
{
public:
int maxpointers;
int anzahlpointers;
... some more code ...
void ParseLine(char *line)
{
maxpointers = 5;
void RegisterVariable(char *name, int *ptr)
{
... some more code ...
anzahlpointers += 1;
}