最近做一个系统时,苦于界面比较难看,如果自己从头做起的话,过于烦琐,便上网,寻找合适的界面库,找了多个,发现了一个比较合适的界面库GuiLib(官方网址:www.beyondata.com),这个界面库号称终身免费,可以用于商业软件,故而应用起来,不用担心版权问题。而其他的几个界面库,多半是要求付费的,虽然做得比较好,但毕竟MONEY是个问题。
          到GuiLib上下载了他的最新版之后,首先便是编译链接的问题。考虑到软件的国际通用性,便选择了UNICODE方式进行编译,结果出现了20多个错误,主要集中在下面三个方面:
          1、缺少头文件
           提示信息:visualstylesxp.h(6) : fatal error C1083: Cannot open include file: 'uxtheme.h': No such file or directory。提示Uxtheme.h 和Tmschema.h找不到,而Schemadef.h是在Tmschema.h里调用的,所以我们还需要另外三个文件,这在VC6里面没有,包含在Windows PlatformSDK安转了Visual Studio 2003或 Visual Studio 2005 中都有PlatformSDK。你若安装过,就不必费尽去下载385.0 MB的SDK了,默认安装的话三个文件都在C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include
(Uxtheme.h 中定义了在向控件添加外观风格的步骤中以及在相应的代码示例中所引用的 UxTheme API;Tmschema.h 中定义了各个类。听说要将WINVER,_WIN32_WINNT, _WIN32_WINDOWS定义为0x0501(支持XP)才能编译通过。)这三个文件在下面的地址有下载:
http://www.cnblogs.com/Files/xcvm/Uxtheme.h.rar
复制三个文件到 GuiLib 目录下,把
#include <uxtheme.h>
#include <tmschema.h>
改为
#include "uxtheme.h"
#include "tmschema.h"
就可以正常编译了。
          Windows? Server 2003 SP1 Platform SDK下载地址:
          Windows? Server 2003 SP1 Platform SDK ISO Install(单个镜像文件)
http://download.microsoft.com/download/7/5/e/75ec7f04-4c8c-4f38-b582-966e76602643/5.2.3790.1830.15.PlatformSDK_Svr2003SP1_rtm.img
Windows? Server 2003 SP1 Platform SDK Full Download(多个压缩包)
http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&DisplayLang=en#filelistFile
          2、ADO错误
          在“GuiADODB.h ”文件中,没有定义“msado15.dll”文件的具体位置,可根据你系统的安装情况,更改为正确的位置即可。
          3、字符串错误
          这个是最主要的错误,大部分是因为使用UNICODE项进行编译时出现的。原作者在设计时,没有使用兼容MBCS/UNICODE的方式,故而需要进行更改,具体可参阅下面的文章。http://vckbase.com/document/viewdoc/?id=1733

fatal error C1083: Cannot open include file: 'uxtheme.h'的解决相关推荐

  1. _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':no such file or directory

    Window7下使用"pip"安装"MySQL-python"提示错误:_mysql.c(42) : fatal error C1083: Cannot ope ...

  2. fatal error C1083: Cannot open include file: 'iostream.h': No such file or dire

    错误: fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 我的源代码测试回调函数 ...

  3. MySQLdb/_mysql.c(29) : fatal error C1083: Cannot open include file: ‘mysql.h‘: No such file or direc

    环境:64位Windows10系统,python2.7.15 问题:安装pip install mysqlclient时报错MySQLdb/_mysql.c(29) : fatal error C10 ...

  4. windows 安装达梦数据库Python 报错:fatal error C1083: Cannot open include file: ‘DPI.h‘: No such file or direc

    报错: c:\dmdms program\drivers\python\dmpython\strct.h(18): fatal error C1083: Cannot open include fil ...

  5. fatal error C1083: Cannot open include file: 'ceconfig.h': No such file or directory

    点击开始 - 运行 - 输入 cmd - 进入命令行 敲入F:再敲入cd "F:\VS8\Microsoft Visual Studio 8\Common7\IDE" 然后再敲入d ...

  6. 启动jupyter notebook报错fatal error C1083: Cannot open include file: ‘sys/un.h‘: No such file or directo

    启动jupyter notebook报错fatal error C1083 太久没用jupyter notebook,更新了Anaconda的base环境的jupyter库,而没有更新之前安装的其他内 ...

  7. VS2008(SP1)资源编译错误:fatal error RC1015: cannot open include file 'afxres.h'.

    只要一改动资源,按F7编译就会出现两个错误: error RC2001: newline in constant fatal error RC1015: cannot open include fil ...

  8. dcmtk 3.6.0 error C1083: Cannot open include file: 'iostream.h' 解决办法

    2011年1月6日发布的dcmtk 3.6.0版本在编译完毕后, 用自己工程调用dcmdata.lib的过程中发现一个这样的错误: "error C1083: Cannot open inc ...

  9. error RC1015: cannot open include file 'afxres.h'. 的解决办法

    编译工程时出现如下错误: error RC1015: cannot open include file 'afxres.h'. 'afxres.h' 文件是跟MFC相关的,出现此种错误有两种解决办法: ...

最新文章

  1. SAP S4HANA BP事务代码初始界面的ROLE和Grouping配置
  2. QT的QQmlProperty类的使用
  3. centos下搭建网站服务器,Centos7搭建web服务器
  4. 星期三,今天早上上了四节JS课程,下午听健康讲座,晚上装系统
  5. X-lab 开放实验室开源创新的故事
  6. 网关过滤器验证token
  7. MFC无边框对话框实现拖动
  8. 项目管理——文档的重要性
  9. 2018百度之星程序设计大赛 - 资格赛 1002 子串查询
  10. consul 数据持久化_一起学习Nacos的数据持久化
  11. iOS tableview嵌套collectionview
  12. 最佳HTML5应用开发工具有哪些?
  13. 火狐插件 Katalon Recorder 生成 python 等语言 代码
  14. 冒险岛单机服务器修改,关于一树冒险岛单机技能 转数最新修改
  15. 扬州鉴真国际半程马拉松
  16. 计算机考研考研院校难度等级,建议收藏
  17. 只读存储器和随机存储器有什么区别?
  18. Vim 编辑器真的 yyds
  19. 网络攻防实验:defcon2015 r0pbab
  20. Save coredump

热门文章

  1. c# winform 不在任务栏显示,只显示任务栏图标
  2. Windows开发之——超好用的快速搜索工具
  3. 对于火热的MLOps的一些冷静观察
  4. 计算机主机箱故障排除,计算机维护及常见故障的排除
  5. windows内外网隔离的环境下同时使用
  6. 【Python数据分析基础-1】二元操作符(又全又清晰!)
  7. [CG从零开始] 6. 加载一个柴犬模型学习UV贴图
  8. 动力巨头亮相上海车展:伊顿助力中国电动车市场
  9. C语言求素数案例讲解
  10. 加快 brew 安装软件的速度