看看你是属于哪类的程序员?你很可能会脸红

GoogleGeek 2003-03-28 12:50:56
May be the reason you are frustrated by MFC is that you are above-average in GUI programming? We have the following choices when it comes to GUI developing on windows:

1. Win32 API, for the absolute masters
2. WTL, for those masters who are also C++ nuts
3. MFC, the average C++ GUI developers
4. .NET, for those who already sold their souls to Bill Gates
5. VB, for all the rest

//---------------------------
However, I am still not convinced WTL has any significant advantage over MFC for the average (not dum) developers

I disagree here for one point: MFC quickly becomes a roadblock if you leave the paved superhighway. To implement features that are not "covered" by MFC, overriding behaviros that were not intended to be changed, I quickly start digging around MFC implementation, cursing it's stupid inflexible approach (yet too complex to be a real abstraction layer).

ATL much easier mixes with Win32. You can quickly "fall back to" raw Win32 coding, no strings attached.

(One thing that gets me up all trees available is the GDI object handling in MFC. It tries to isolate you from the topics at hand, yet it doesn't. So instead of looking up the Win32 documentation when I need to release what and when not, I *additionally* have to look up the MFC implementation what it's destructor etc. does)

//---------------------------
However, I am still not convinced WTL has any significant advantage over MFC for the average (not dum) developers. If only Microsoft can keep delivering better versions of MFC to us.

I tend to disagree. From what I have seen, WTL seems to be much more flexible and better designed than MFC. Often I need to use MFC on my work, and I hate it: it is soo rigid. On the other hand, .NET Windows forms are even worse, IMHO. In ideal world, Microsoft would deprecate MFC, leave .NET Windows Forms to VB programmers, and start supporting WTL. However, that is just not going to happen
----------------------
...全文
45 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
catchme 2003-03-29
  • 打赏
  • 举报
回复
因为就我只有一个星

哈哈
catchme 2003-03-29
  • 打赏
  • 举报
回复
根本不想看懂
hnyxhuangleili 2003-03-29
  • 打赏
  • 举报
回复
这样的内容真有点后怕。。。。。:(
GoogleGeek 2003-03-28
  • 打赏
  • 举报
回复
just comes from www.codeproject.com
coyer 2003-03-28
  • 打赏
  • 举报
回复
呵呵,怎么没有提到java?
搞java的是不是算把自己卖给了sun?

不过,这些问题呀,还真可以值得研究一回,反省下自己了。
曾经的猎狐 2003-03-28
  • 打赏
  • 举报
回复
英盲
GoogleGeek 2003-03-28
  • 打赏
  • 举报
回复
to 楼上
怎么会看不懂呢?
曾经的猎狐 2003-03-28
  • 打赏
  • 举报
回复
kao,一句也看不懂,嘿嘿

1,650

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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