i haven't gotten rest (or any c++ coding done) in days so this is probably real easy, look at the following psuedo-code:
class cppclass{
private:
int *b;
public:
cppclass(int * passedpointer);
};
//global pointer
int *a;
int main(void)
{
cppclass foobar;
...
a = functionthatsetsa(); //now a is set
...
foobar(a); //so now foobar contains a member (b) which is a
}
//any calls to foobar.b fail, several runs through the program show that a is set and that somehow my constructor isn't setting b to point to the same thing that a is
(hey and by the way, i haven't been on the boards in a while because school just started and i started dating this girl and i haven't had an ounce of time to myself until now)