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 ([email protected]). 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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
一个进程管理的源程序.zip (28个子文件)
vc
MFCTList.cpp 2KB
MFCTListDlg.cpp 17KB
res
icon2.ico 766B
MFCTList.ico 1KB
toolbar1.bmp 502B
Earth.ico 766B
MFCTList.rc2 400B
Bug2.ico 766B
wizard1.ico 1KB
ReadPrority.h 1KB
MFCTList.dsw 539B
common.h 2KB
Thread.cpp 3KB
ReadPrority.cpp 3KB
MFCTList.clw 3KB
MFCTList.txt 1KB
common.cpp 13KB
StdAfx.cpp 25B
resource.h 1KB
Thread.h 1KB
StdAfx.h 928B
MFCTList.001 4KB
MFCTList.plg 2KB
MFCTList.dsp 5KB
MFCTListDlg.h 2KB
MFCTList.h 1KB
MFCTList.rc 9KB
www.pudn.com.txt 218B
共 28 条
- 1
资源评论
周楷雯
- 粉丝: 80
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功