VS2012使用XListCtrl

来源:互联网 发布:淘宝优惠卷的坑 编辑:程序博客网 时间:2024/06/15 03:47

XListCtrl,强大的ListCtrl!到目前为止,我所遇到的所有ListCtrl都用XListCtrl解决了。


XListCtrl能支持什么?

修改column的背景色、大小、线条、做成check……

修改item背景色、行背景色、做成edit、做成combox、做成check、做成进度条……

你还能想到什么?!




很漂亮,点击这里去下载


ok,codeproject里也有很多回帖,问怎么解决编译问题。事实上,我在vs2012下编译的确遇到了很多问题。以下做个总结,以减少大家遇到的麻烦。


1、xtrace.h(74) : error C2440: “=”: 无法从“const char *”转换为“LPTSTR”

用LPCTSTR替换LPTSTR,解决。应该有2处,一模一样的。这样替换后,不用关心字符集是unicode还是多字符集。


2、does not found "tmschema.h"

tmschema.h是windows SDK里的文件,但从vs2008开始,已经不用这个文件了,而是vsstyle.h。所以这样改:

#include <tmschema.h>

改为

#if _MSC_VER < 1700 // Before Visual Studio 2012#include <tmschema.h>#else#include <vsstyle.h>#endif


3、错误 19 error MSB3073: 命令“mkdir ..\bin 2> nul
copy .\Debug\XListCtrlDD.dll ..\bin 1> nul
copy .\Debug\XListCtrlDD.lib ..\bin 1> nul
:VCEnd”已退出,代码为 1。

怎么说呢?这个错误,无视吧。请找到XListCtrl_demo\XListCtrlLib\Debug\XListCtrlDDDA.dll,拷贝到XListCtrl_demo\Dialog\Debug,就行了。如果你用过cmd命令,就明白命令“mkdir ..\bin 2> nul"是干嘛的。如果后面又遇到这样的问题,你懂的。


4、CVTRES : fatal error CVT1100: 资源重复。类型: MANIFEST,名称: 1,语言: 0x0409

在资源视图中删除RT_MANIFEST分类下的资源。

ok,其实这个时候编译还是报错,一堆东西,无视之。打开debug文件夹,DialogDDDA.exe在哪里,在里,啦啦啦~


1 0
原创粉丝点击