问题
I have an old project done in CodeBlocks WxSmiths. I copied it across to my new computer and now I cannot make any changes to the project! I can add items to a panel on the main frame (and the preview looks fine) but the changes are discarded when I compile and run the project. All I get is the old project executable without my new additions! (I did clean build as well). Or in other words a main frame cpp file and header file is not getting updated with the new changes I make to the form. The files are not read-only. Do anybody have any ideas as why this happens?
回答1:
This most likely is the case when you have wxSmith files pointing to incorrect source files. Open the project file (using your favorite editor) and check the Extensions xml tag:
<Extensions>
<code_completion />
<debugger />
<wxsmith version="1">
<gui name="wxWidgets" src="src/wxExampleApp.cpp" main="wxExample" init_handlers="necessary" language="CPP" />
<resources>
<wxPanel wxs="wxsmith/somePanel.wxs" src="src/somePanel.cpp" hdr="src/somePanel.h" name="windowTabPanel" language="CPP" />
</resources>
</wxsmith>
<envvars />
</Extensions>
Make sure that your src and hdr files point to the correct source files you have in your project. Otherwise wxSmith won't be able to update those files based on the changes made from the RAD view.
来源:https://stackoverflow.com/questions/17521955/editing-codeblocks-wxsmiths-project