PDA

View Full Version : How to add one more cpp and .h file to the same UI??



Gokulnathvc
19th August 2011, 11:10
How to add one more cpp and .h file to the same UI??

wysota
19th August 2011, 11:19
Include the files into where you want them to be.

Gokulnathvc
19th August 2011, 11:22
But if i use the new file's class, it should call the same UI.

wysota
19th August 2011, 11:23
So include the same ui_xxx.h file and use it.

Gokulnathvc
19th August 2011, 11:24
Couldnt get your information sir. If i use new file's class name for instance sample2.exec(). It should execute the same UI which the sample1 class is using which is already declared.

wysota
19th August 2011, 11:54
How does your 'sample1' define its GUI?

Gokulnathvc
19th August 2011, 12:02
Its declaration in the matching class corresponding to the UI.

wysota
19th August 2011, 12:58
So use the same class for the other dialog class.