Hi,
I have class X and class Y such as the following;
class X
{
...
void foo();
...
}
-----------------------------------------------
#include "X.h"
class Y
{
void hoo()
{
X myNewX;
myNewX.foo();
}
}
int main()
{
X newX = new X();
}
When I do this, it gives error at runtime saying no object found or something like that. Sorry I do not have a compiler now.
King Regards