Click here to Skip to main content
15,905,144 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Binary file read writing problem PinPopular
CPallini26-Aug-10 23:51
mveCPallini26-Aug-10 23:51 
AnswerRe: Binary file read writing problem Pin
ThatsAlok29-Aug-10 20:59
ThatsAlok29-Aug-10 20:59 
QuestionGUI Pin
T.RATHA KRISHNAN26-Aug-10 20:10
T.RATHA KRISHNAN26-Aug-10 20:10 
AnswerRe: GUI Pin
Niklas L26-Aug-10 22:00
Niklas L26-Aug-10 22:00 
GeneralRe: GUI Pin
T.RATHA KRISHNAN26-Aug-10 23:05
T.RATHA KRISHNAN26-Aug-10 23:05 
GeneralRe: GUI Pin
Niklas L26-Aug-10 23:22
Niklas L26-Aug-10 23:22 
GeneralRe: GUI Pin
T.RATHA KRISHNAN26-Aug-10 23:29
T.RATHA KRISHNAN26-Aug-10 23:29 
GeneralRe: GUI Pin
Niklas L27-Aug-10 1:09
Niklas L27-Aug-10 1:09 
There are some basic issues with your code.

case EXIT_BUTTON:
   initMenuContext.device->closeDevice();
   break;
   return true;
You don't need both break and return. Especially not in this order. You are only making it harder for yourself to follow the program flow.

This
SColor WHITE = video::SColor(255,255,255,255);
is the same as
SColor WHITE(255,255,255,255);
Don't type more than you have to to keep readability.

This
CInitMenu* cIMNU = new CInitMenu();
cIMNU->runGame();

will leak memory and should be written something like
CInitMenu().runGame();
even though I think having the main menu as the object root of your app is a bit skewed.

Now, why do you want the new menu appear in the same window? It looks like the GUI system is designed for having child dialogs. An alternative could be to use their tab control.

If you still need to open the menu in the same window, I see no other alternative than to remove (or hide) the original controls, and insert your new ones. But don't take my word for it. I have only seen the GUI classes for about 5 minutes. Ask for a solution in the other forum I gave a link to.

GeneralRe: GUI Pin
T.RATHA KRISHNAN27-Aug-10 2:08
T.RATHA KRISHNAN27-Aug-10 2:08 
GeneralRe: GUI Pin
Niklas L27-Aug-10 2:45
Niklas L27-Aug-10 2:45 
Questionunresolved external symbol in TAPI prog Pin
AmbiguousName26-Aug-10 10:46
AmbiguousName26-Aug-10 10:46 
AnswerRe: unresolved external symbol in TAPI prog Pin
Niklas L26-Aug-10 11:29
Niklas L26-Aug-10 11:29 
GeneralRe: unresolved external symbol in TAPI prog Pin
AmbiguousName26-Aug-10 23:09
AmbiguousName26-Aug-10 23:09 
AnswerRe: unresolved external symbol in TAPI prog Pin
«_Superman_»26-Aug-10 17:45
professional«_Superman_»26-Aug-10 17:45 
GeneralRe: unresolved external symbol in TAPI prog Pin
Niklas L26-Aug-10 20:36
Niklas L26-Aug-10 20:36 
GeneralRe: unresolved external symbol in TAPI prog Pin
AmbiguousName26-Aug-10 23:37
AmbiguousName26-Aug-10 23:37 
GeneralRe: unresolved external symbol in TAPI prog Pin
wsauer27-Aug-10 15:01
wsauer27-Aug-10 15:01 
QuestionIntel IPP static libs addition to the project Pin
Chesnokov Yuriy26-Aug-10 10:15
professionalChesnokov Yuriy26-Aug-10 10:15 
AnswerRe: Intel IPP static libs addition to the project Pin
Niklas L26-Aug-10 11:38
Niklas L26-Aug-10 11:38 
GeneralRe: Intel IPP static libs addition to the project Pin
Chesnokov Yuriy26-Aug-10 19:35
professionalChesnokov Yuriy26-Aug-10 19:35 
AnswerRe: Intel IPP static libs addition to the project Pin
«_Superman_»26-Aug-10 17:56
professional«_Superman_»26-Aug-10 17:56 
GeneralRe: Intel IPP static libs addition to the project Pin
Chesnokov Yuriy26-Aug-10 19:37
professionalChesnokov Yuriy26-Aug-10 19:37 
GeneralRe: Intel IPP static libs addition to the project Pin
«_Superman_»27-Aug-10 3:56
professional«_Superman_»27-Aug-10 3:56 
QuestionAnyone use CppCheck ? Enum 'MyEnum' hides typedef with same name... Pin
Maximilien26-Aug-10 3:32
Maximilien26-Aug-10 3:32 
QuestionRe: Anyone use CppCheck ? Enum 'MyEnum' hides typedef with same name... Pin
David Crow26-Aug-10 3:55
David Crow26-Aug-10 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.