J
John Harrison
The said:I noticed that when i call a function foo everything
works as expected. The problem is that when i try to
call foo from the constructor when compiling, the
computer bugs me about unresolved external.
Can i somehow declare a method so it's available for
the constructor?
There's no reason a method cannot be called from a constructor. You
doesn't have to declare it any special way.
There only reason I can think of for what you are describing is that you
are trying to call a pure virtual method from a constructor, and
expecting the derived class virtual method to be called, is that the
case? Better post some code.
john