Author Topic: Additional code is disapeared when I come back to Frame.wxs  (Read 1343 times)

Offline wnap

  • Single posting newcomer
  • *
  • Posts: 2
Additional code is disapeared when I come back to Frame.wxs
« 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: [Select]
StatusBar1->SetStatusText(wxT("Hello everybody."), 1);


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,

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2493
Re: Additional code is disapeared when I come back to Frame.wxs
« Reply #1 on: April 26, 2016, 09:58:46 pm »
don't write your code inside the
Code: [Select]
//*(
//*)

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