zoukankan      html  css  js  c++  java
  • CodeBlocks: 生成的exe文件自定义一个图标

    CodeBlocks生成的exe文件的图标默认是系统图标,如何自定义一个漂亮的小图标呢?

    我是C菜鸟,平时只用CodeBlocks练习c,也不开发什么软件,这个问题就难倒我了。

    到网上搜索了一下,发现大家都不怎么用CodeBlocks。

    最后好不容易在google找到一篇与CodeBlocks & icon 有关的,因为是英文的文章,大部分内容说的是什么,我都看不懂,也没关系,我看到这样的一个结构:

    5. At this point the Projects Management pane on the left should look something like this:
    [/indent][-] Workspace
        [-] Spiffomatic
            [-] Sources
             |   |_ main.cpp
            [-] Resources
             |   |_ resources.rc
            [-] Others
                 |_ spiffomatic.ico
    Hit Ctrl-F9 (or Build|Build from the main menu).

    照葫芦画瓢,我还是会的,我先用ResEdit建立了一个 res.rc 存放到应用的 res 文件夹,然后在resedit中导入一个图标,保存。

    然后在CodeBlocks 中添加文件 -> 选择 res es.rc,保存工程,生成exe,自定义图标的exe文件就这样生成了。

    呵呵,原来竟如此简单。

    2012-01-20

  • 相关阅读:
    shell提交hive sql保存运行过程日志
    hive中 exists与left semi join
    hbase shell 导出数据转json
    ubuntu使用
    fast json
    elasticsearch 用户密码配置
    linux 自带php切换xampp
    Ubuntu查看crontab运行日志
    Linux服务器 XAMPP后添加PHP和MYSQL环境变量
    HBuilder 模拟器
  • 原文地址:https://www.cnblogs.com/personnel/p/4583166.html
Copyright © 2011-2022 走看看