以前是学mfc的现在要返朴归真,学sdk,请教哪里有这方面的原码和教程啊

北漂17载 2004-05-04 09:06:20
如题
...全文
44 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
feeboby 2004-05-04
  • 打赏
  • 举报
回复
dev-c++的例子还不错
cngdzhang 2004-05-04
  • 打赏
  • 举报
回复
推荐经典书<<Windows核心编程>>
非常经典...............
classrect 2004-05-04
  • 打赏
  • 举报
回复
候捷老师的<windows程式设计>,我那里有电子版的,你留下邮箱吧,我发给你
dunai2003 2004-05-04
  • 打赏
  • 举报
回复
如果MFC真得很强,SDK应当是很容易的,不过习惯了MS的AppWizard的人,再去手工写Win32 C,恐怕不是那么舒服的,有句话怎么说来的:"由简入奢易,由奢入简难"。但从原理上是一样的:消息机制。没有SDK的基础学MFC不太容易学好,这一点好像Charles Petzold也是这么看的:
MFC is particularly problematic. While it simplifies some jobs immensely (such as OLE), I often find myself wrestling with other features (such as the Document/View architecture) to get them to work as I want. MFC has not been the Windows programming panacea that many hoped for, and few people would characterize it as a model of good object-oriented design. MFC programmers benefit greatly from understanding what's going on in class definitions they use, and find themselves frequently consulting MFC source code. Understanding that source code is one of the benefits of learning the Windows API.
(特别是MFC问题多多。尽管在MFC中一些工作可以简化,如OLE,但为了使程序正常工作不得不费尽心思弄懂诸如想文档/视等其他的特征。MFC并非如一些人所希望的那样,是编程的万能药,而且几乎没有人把它当作是设计良好的OO模型。MFC程序员如果要理解了所使用类的内部机制,就得要经常参考MFC的原码,而能理解这些原码正是学习Windows API的好处之一)。
CP的意思是说,要真正理解MFC,首先得理解Win32 API。

freefalcon 2004-05-04
  • 打赏
  • 举报
回复
不用mfc而用sdk,无非就是扒掉mfc的封装外衣,直接用赤裸裸的api进行编程
所以你熟悉了一下api函数就行了,当然也要对一些mfc隐藏了的内幕有所了解
有哪些书我不太清楚,好像《windows系统编程》不错
其他资料网上也有吧,搜一搜
bm1408 2004-05-04
  • 打赏
  • 举报
回复
强人!
SDK不会,竟然MFC学的那样强!
北漂17载 2004-05-04
  • 打赏
  • 举报
回复
哪里了,mfc很滥的了,所以要sdk么
北漂17载 2004-05-04
  • 打赏
  • 举报
回复
OPENFILENAME m_openfile;
m_openfile.nFilterIndex=m_iFilterIndex;
m_openfile.lpstrFile=m_szFileName;
BOOL m_bReturn=GetOpenFileName(&m_openfile);
其中:TCHAR m_szFileName[1024];
TCHAR m_szCustomFilter[256];
如果是在函数里声明则不能显示对话框,声明为全局则可以了,局部时错误信息为:CDERR_INITIALIZATION The common dialog box function failed during initialization. This error often occurs when sufficient memory is not available 什么道理呢?是在堆上分的内存吧,太大了?
wbh0360 2004-05-04
  • 打赏
  • 举报
回复
<<深入浅出MFC>>
<<WINOOWS程序设计>>
新自由呼吸 2004-05-04
  • 打赏
  • 举报
回复
NND,windows都敲错,真是菜到家了:(~~~~~~~~~~~
新自由呼吸 2004-05-04
  • 打赏
  • 举报
回复
深入浅出MFC,WINOOWS程序设计
Wolf0403 2004-05-04
  • 打赏
  • 举报
回复
分析 MFC 源码算拉。

64,682

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧