编辑CodeBlocks WxSmiths项目 [英] Editing CodeBlocks WxSmiths project

查看:69
本文介绍了编辑CodeBlocks WxSmiths项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用CodeBlocks WxSmiths完成的旧项目。我将其复制到新计算机上,现在无法对该项目进行任何更改!我可以将项目添加到主框架的面板上(并且预览看起来很好),但是在编译和运行项目时所做的更改将被放弃。我得到的只是旧的项目可执行文件,没有我的新添加内容! (我也清理了构建)。或者换句话说,主框架cpp文件和头文件没有随着我对表单所做的新更改而更新。这些文件不是只读的。有人知道为什么会发生这种情况吗?

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?

推荐答案

当您的wxSmith文件指向错误源时,最有可能是这种情况文件。
(使用您喜欢的编辑器)打开项目文件,并检查扩展名 xml标签:

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>

请确保您的src和hdr文件指向项目中具有的正确源文件。
否则,wxSmith将无法根据在RAD视图中所做的更改来更新这些文件。

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.

这篇关于编辑CodeBlocks WxSmiths项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆