荣耀彩票代理

  • 热门专题

再不进行自救的MFC就要OUT了

作者:wy  发布日期:2019-01-13 08:36:00
  •   同样都是一起诞生的编制语言,为何MFC沦落到如此的地步,它总是被用来与其他的编程语言进行比较,但就在这种赤裸裸的比较之下它的缺点简直暴露无遗不可直视。小编我在网络上看到很多分析贴觉得实在是面面俱到无可挑剔。

      首先声明,MFC本身缺陷重重,嗯,不要说MFC了,C++的框架或者类库,那个不是缺陷重重,充满争议,众口难调,即便是官方标准库stl,而且还是模板的,也是诸多抱怨,比如allocator,比如string,iostream,比如algorithm里面的find,find_if,copy,copy_if等非正交的算法函数,又比如……,好吧剩下来的问题就和反射有关了,反正stl极力回避动态类型信息,又没有first class的函数类型和垃圾回收,即便是大力搞,也出不来什么大奇迹,基本上用起来也就是这个德行了。只是想说,mfc的各种不足,是有其自身的无奈,也很让人同情,真的,特别是,面对着这个几十岁的c++框架老人,很有些物伤同类。

    荣耀彩票代理  HUIGUMFCDANSHENGDENEIGESHIDAI,C++HAOXIANGHAIMEIYOUtemplate,JISHIYOU,YEBUXIANGRUJINZHUANGBEIDEGEZHONGLINGRENFAZHIDEQIPAGONGNENG。KEYISHUODESHI,DANGSHIDEc++,JIUSHIBI c with class QIANGYIXIE,YOUDUOTAI,DUILE,HAIYOUDUOJICHENG,XINGYUNDESHI,MFCJIANCHILEDANJICHENG,YOUYIWUYIDIHUIBILEHENDUOC++DUOJICHENGSHEJISHANGDEHENDUOBENZHIFUZAXINGWENTI。YUCITONGSHI,JINGTAIQIANGLEIXINGMIANXIANGDUIXIANGDEYUYAN,SIHUYEJIUSHIC++ZHICIYIJIALE,JIBENSHANG,MFCBANYANZHEXIANXINGZHEDEJIAOSE。DANSHI,HOUMIANDEdelphiWEIHEJIUNEIMECHENGGONGNI,NEISHIYINWEIobject pascalJIDUIXIANGLEIXINGJIALEHENDUOYUANXINXISHUJU,ERQIE,HAIZHUANMENWEIguiKUANGJIAKAIFATIANJIAGEZHONGYUYANKUOZHAN。YOULEZHEIXIEWAIGUAZHIHOU,ZUOCHULAIDEKUANGJIA,QINGKUANGZIRANJIUHENHAODUO,FANSHEDUIYUJINGTAILEIXINGYUYANguiKUANGJIADEKAIFA,JUEDUISHIBUKEHUOQUEZHIWU。NIKANKAN,XIANZAIDEMIANXIANGDUIXIANGYUYAN,CHULEc++ZHEIGELAOWANGU,NEIGEBUSHIDABADABADEFANSHEYUANSHUJU,JIBIANSHIc++,YEZUOLETUOXIE,GAOLEYIGEJIJIANBANDEtype_info,JIANDAOBUNENGYONGDECANCIPIN,ZHENSHIBUZHISUOWEI。HAOLE,LAOXIUJUEDINGYANGUIZHENGCHUAN,ZHANGHUADUANSHUO。

    荣耀彩票代理  MFCDESHEJIMUBIAOJIUSHIYONGC++LIMIANDEYIGEZIJIFENGZHUANGwindows ApiHANSHU,YIJIANHUAwindowsYINGYONGCHENGXUKAIFADEGONGZUOLIANG。CIWAI,MFCYEBUKENENGGAOXIAOXIFASONGZHEIZHONGYUJINGTAIQIANGLEIXINGYUYANGEGEBURUDEPANGMENZUODAO,DANGRAN,MFCZHENYAOQIANGYINGYIXIAOXIFASONGDEMOXINGLAIFENGZHUANGwin32DEapi,YEWEICHANGBUKE,ZHISHIGANJUEHENTAINEIGE,BURULINGQILUZAO,ZHIJIEYONGDONGTAIYUYANLAIZUOKUANGJIA,HAOXIANGobject cNEIYANG。ERZUIZHONG,MFCYEQUESHIWANCHENGRENWULE,JIUZHISHIZHEIGEKUANGJIAYONGQILAI,MEISHALINGQI,BENZHONG,SHUSHOUFUJIAO,MAFAN,GEZHONGBUFANGBIAN。GENGNANNENGKEGUIDESHI,MFCTONGGUONEIQIANLEI,HAIBACOM,ActiveXZHEIZHONGDAGUAIWUZHENGHEJINLAI,ZHISHIFUCHUYIDIANDIANDAIJIA,ZIXIZHUIJIU,YEJIUSHIYIDIANDIANWEIHEGANERYI,XIAOGUORUCIXIANZHU,YEQUESHIRANGRENZANTANBUYI。JUNBUJIANYONGMFCKAIFADECHENGGONGDESHANGYERUANJIANBUZHIJIDUO,ZHEIKEJIANMFCDECHENGGONGYOUDUODA。BINGQIE,JIBIANSHIMFCRUSIZHIDAIBAN,YEMEIYOUZUZHIGAORENZAIQISHANGGEZHONGDADONG,PEITAOCHANPINYOUbcg control bar(vs2008DEBUDINGHOU,JIUKAISHIJICHENGZAIMFCLIMIANLE,QIDAIMALANDEQINGZHUNANSHU),xtremeDENGDISANFANGKUKEYIZUOCHULAIHENXUANXIAOGUODEJIEMIAN。BUXIANGjava,SHUONIBUXINGJIUZHENDEBUXING,CONGGENYUANSHANGJIUDUJUELEZHONGZHONGQIJIYINQIAO,CONGYIKAISHIJIUBURANGNIZUOWENZHANG

    mfc

    荣耀彩票代理  MFCZAINEIGENIANDAIDUCHUANGDEJIDAGUANJIANJISHU:YUNXINGSHILEIXING、DONGTAICHUANGJIAN、XULIEHUA、XIAOXIYINGSHEDENG,YESUANSHINAODONGDAKAIDEFEIFANCHANWU,SHIZHIJINSHIJINRI,HAIBUSHIZAIGEZHONGKUANGJIASHEJISHANGFAGUANGFARE。ZHEIXIEGUANJIANJISHU,JIBENSHANGZHIKAOXUHANSHUHEHONG,ERQIEZHEIGESHIHOUDEHONG,HAIMEIYOUYONGDAOboost preprocessorNEIYANGDEWEITULINGWANBEITEXING,NENGZUOCHENGZHEIYANG,SHIZAIBURONGYI,DEQUENANNENGKEGUI,GAODEBIZHEXIEDAOZHEILIDOUYOUXIAOXIAODEGANDONG。XIANGSHIc++ZHEIZHONGBANCANlanguage,MEIYOUYUANSHENGDEHANSHULEIXING,MEIYOUFENGFUDONGTAILEIXINGXINXI,MEIYOULAJIHUISHOU。RANHOUHAIMEIYOUWEITULINGWANBEIDEYUCHULI,MEIYOUZHENTULINGWANBEIDEtemplate,BAWANGYINGSHANGGONGZUOguiKUANGJIA,YOUYAOXIANGSHOUJINGTAIQIANGLEIXINGDEHAOCHU,YILUTUIYAN,DINGDUOJIUZHINENGZUOCHENGMFCZHEIGEYANGZI,BUNENGGENGHAODELE。qtSHIYINWEIJIALEDONGTAILEIXINGXINXI,SUOYIQINGKUANGYOUSUOGAISHAN,DANSHI,YEBUJIANDEJIUDUOLIHAILE。RUGUOYOUBIZHEYONGmfcDEDANGSHIDEc++NEIDIANPOMIANXIANGDUIXIANGTEXINGLAIZUOguiKUANGJIA,DUOBANHUIZOUSHANGXIAOXIFASONGDEXIELU,FOUZE,JIANZHINANYIXIASHOUZUOCHULAIMFCZHEIYANGDEZHUYU,YINWEISHIZAITAIEXINTAIWUQULE。

    荣耀彩票代理  SUIZHESHIJIEDEJINBUSHIJIANDETUIYI,WORENWEITAOTAIYIXIEBUHAODEDONGXISHIZHIDEZANSHANGDE,MAOZEDONGCENGJINGSHUOGUO“LUOHOUJIUYAOAIDA”ZHEIJUMINGYANJIANZHISHIZHONGGUODEJINGSHENSHILIANG,HENDUOLAOYIBEIDERENZONGSHIBAZHEIJUHUAGUAZAIERBIAN,JIULIANWOMENZHEIYIBEIYEXIQUTONGYANGDEJINGYAN。

延伸阅读:

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规