PDA

View Full Version : about multiple windows design problem



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.

ChrisW67
16th November 2012, 02:30
You have not shown anything like code that does something so we have precisely no way to know what you are doing wrong. If you are not getting a window then chances are it's because you not creating and showing one.

kenchan
16th November 2012, 04:44
i have created show one, i want to call class's varible and method each other , such as: A can call B class 's varible, and also B can call A class'varible .

Added after 1 43 minutes:

i have been solved ,THKS