T
Than
I'm having this kind of problem.
I've got a function which get's as the argument a pointer to an object. It
looks like this:
void DoCalculations(CMyClass* Class);
{
CMyClass temporaryClass = *Class;
return;
}
And when the function ends with return; in place from where it was called:
DoCalculations (&ExampleClass);
object ExampleClass has totally different fields' values, random i suppose.
What do i do wrong?
Operator
CMyClass& operator=(CMyClass& class);
is defined for the class.
Thanks for any help
Than
I've got a function which get's as the argument a pointer to an object. It
looks like this:
void DoCalculations(CMyClass* Class);
{
CMyClass temporaryClass = *Class;
return;
}
And when the function ends with return; in place from where it was called:
DoCalculations (&ExampleClass);
object ExampleClass has totally different fields' values, random i suppose.
What do i do wrong?
Operator
CMyClass& operator=(CMyClass& class);
is defined for the class.
Thanks for any help
Than