User forums > General (but related to Code::Blocks)

Additional code is disapeared when I come back to Frame.wxs

(1/1)

wnap:
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);
--- End code ---



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



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



How can I fix this? Thank you,

BlueHazzard:
don't write your code inside the

--- Code: ---//*(
//*)

--- End 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

Navigation

[0] Message Index

Go to full version