Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: wnap on April 26, 2016, 01:17:35 pm

Title: Additional code is disapeared when I come back to Frame.wxs
Post by: wnap on April 26, 2016, 01:17:35 pm
I use Code::Block and wxWidgets C++.

When I add some my own codes at FrameMain.cpp in Constructor, such as:

Code
StatusBar1->SetStatusText(wxT("Hello everybody."), 1);

(https://i.imgsafe.org/f47a77a.png)

I click save button. Then I go to FrameMain.wxs to change style:

(https://i.imgsafe.org/f2a7a05.png)

and click save button. But, then I go back to FrameMain.cpp, my own codes is disapeared.

(https://i.imgsafe.org/7f01578.png)

How can I fix this? Thank you,
Title: Re: Additional code is disapeared when I come back to Frame.wxs
Post by: BlueHazzard on April 26, 2016, 09:58:46 pm
don't write your code inside the
Code
//*(
//*)

markings anywhere.
wxSmith will delete all code written inside these. Write your code at the outside and you will be fine

PS. Don't post images of your code, but copy and paste it inside code tags (the# symbol)

greetings