This sample provides an MFC (and C++!) conversion of the SDK's TLIST
sample. The sample has a couple of flaws:
First, it's not a very good C++ design. It would be good to put some
smarts into the CTaskListEntry class so that there were less global
functions. Instead, I pretty much stole the SDK sample's COMMON.C
function wholesale. I didn't even give CTaskListEntry a real constructor.
Second, the code is a miserable mismatch beteween the half-baked coding
styles used in the SDK samples (eg, goofy indenting, flowerbox comments,
inconsistent Hungarian usage) and MFC coding conventions (as written by my
own bad self and the AppWizard).
The sample has some benefits:
First, it works around a couple of bugs in the SDK smaple.
Second, rebuilding with MFC turned STRICT on, and that noticed a few bad
typecast which the sample did indiscriminantly. They weren't a big deal,
but they are fixed in this version.
The conversion uses a CTypedPtrArray to hold the list. This is a vast
improvement over the fixed-length array that the original TLIST sample
used.
This sample was provided by me, Mike Blaszczak (mikeblas@nwlink.com). It's
not intended for redistribution outside of my own website, and there's no
warranty about the fitness or quality of the sample for any purpose
whatsoever. The sample is not supported by Microsoft.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
mfctlist.zip (18个子文件)
StdAfx.h 928B
MFCTListDlg.h 1KB
MFCTList.dsp 4KB
res
MFCTList.rc2 400B
MFCTList.ico 1KB
common.cpp 18KB
common.h 2KB
MFCTList.rc 5KB
MFCTListDlg.cpp 8KB
Debug
MFCTList.res 3KB
MFCTList.exe 34KB
resource.h 778B
MFCTList.cpp 2KB
MFCTList.dsw 539B
MFCTList.txt 1KB
MFCTList.h 1KB
StdAfx.cpp 206B
MFCTList.clw 1KB
共 18 条
- 1
资源评论
普通网友
- 粉丝: 882
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功