kenchan
16th November 2012, 02:20
HI All,
I have a problem when designed multiple windows.I have three windows: mainwindow , A, B. primary code see as below:
mainwindow.cpp
class main
{
private:
A a;
B b;
}
a.cpp
class B;
class A
{
private:
B *b;
}
b.cpp
class A;
class B
{
private:
A *a;
}
when I runned with debug , compile succeed, but the program runned in the background, why? please give me correct solution, TKS.
I have a problem when designed multiple windows.I have three windows: mainwindow , A, B. primary code see as below:
mainwindow.cpp
class main
{
private:
A a;
B b;
}
a.cpp
class B;
class A
{
private:
B *b;
}
b.cpp
class A;
class B
{
private:
A *a;
}
when I runned with debug , compile succeed, but the program runned in the background, why? please give me correct solution, TKS.