• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            What are the differences between MFC and Win32 Application

            MFC is basicly a library of OO wrapper classes that wrap the Win32 api, and provide objects for the basic window components (windows, buttons, checkboxes etc..). Essentially it is the win32 api objectified.

            Also MFC provides some classes that resemble classes found in the STL. As MFC was made before STL was fully standardised.

            My knowledge is incomplete. But that is the basic Idea.



             User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

            The difference between Win32 and MFC are pretty straightforward:

            The Windows API (Win32) uses a C interface to access windows functionality. It requires that you write all of your own code to manage windows and message handling. It is quite straightforward but you will need a good reference, like MSDN, and some good tutorials or samples to get started.

            In contrast, MFC, which stands for Microsoft Foundation Classes, are a collection of C++ classes which encapsulate the Win32 API. MFC has some wizards which make the initial creation of a program quick and easy, but I have to admit the learning curve of MFC can sometimes be frustrating as Microsoft seems to have done everything in a way that can at times seem counter-intuitive.

            Whenever I write an application I write it in MFC but I have been writing applications in MFC for a long time. If all you want is a message loop and a window handle for a game, use Win32. If you want to write a larger application like an editor, maybe MFC is the right tool.

            Ideally, I would suggest skipping both Win32 and MFC and writing tools in .NET. I do not have any personal experience in it but people I work with sure can get a lot done using it. It may well be worth investigation.

            Best of luck,

            - S

             User Rating: 1352   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

            Quote:
            Original post by Sphet

            Whenever I write an application I write it in MFC but I have been writing applications in MFC for a long time. If all you want is a message loop and a window handle for a game, use Win32. If you want to write a larger application like an editor, maybe MFC is the right tool.

            - S


            I am planning to write an interactive 3D environment does that mean using WIN32 application is a better tool for it?

            also is it possible to use openGL for oject creation and DirectXinput for the interactive control?
            please give me some suggestion



            millions of thanks

             User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

            Quote:
            Original post by muimui1911
            I am planning to write an interactive 3D environment does that mean using WIN32 application is a better tool for it?

            For a game Win32 is usually better.
            I think I have also heard that MFC doesn't work well in fullscreen.

            Quote:
            Original post by muimui1911
            also is it possible to use openGL for oject creation and DirectXinput for the interactive control?

            You can render with opengl and use directinput for input.

            ____________________________________________________________
            Programmers Resource Central

             User Rating: 1107   |  Rate This User  Send Private MessageView ProfileView GD Showcase Entries Report this Post to a Moderator | Link

            what about mouse movement like shooting games?

            how can i do that, please give me some direction

             User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

            You can use directinput for mouse movement. Or you can use GetCursorPos(POINT *p);

            ____________________________________________________________
            Programmers Resource Central

             User Rating: 1107   |  Rate This User  Send Private MessageView ProfileView GD Showcase Entries Report this Post to a Moderator | Link

            How do i use that? can you give me some example and much clearer direction

            millions of thanks

             User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

            msdn
            Though if you want a camera class look here and here.

            posted on 2010-06-22 11:43 lhking 閱讀(344) 評(píng)論(0)  編輯 收藏 引用


            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            導(dǎo)航

            <2010年6月>
            303112345
            6789101112
            13141516171819
            20212223242526
            27282930123
            45678910

            統(tǒng)計(jì)

            常用鏈接

            留言簿

            隨筆檔案

            搜索

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            久久精品无码专区免费| 久久精品麻豆日日躁夜夜躁| 91久久精品国产免费直播| 久久久99精品成人片中文字幕| 久久影院午夜理论片无码 | 亚洲国产精品一区二区久久| 久久99热国产这有精品| 一本久道久久综合狠狠躁AV| 97超级碰碰碰久久久久| 青青草原综合久久大伊人导航 | 9191精品国产免费久久| 国产精品久久久久久久app| 国产精品99久久久久久人| 久久久久久国产精品免费免费| 亚洲国产另类久久久精品小说| 成人精品一区二区久久 | 久久久久人妻一区精品 | 日韩va亚洲va欧美va久久| 久久99精品久久久久久hb无码| 欧洲性大片xxxxx久久久| 91精品国产91久久久久久青草 | 精品人妻伦九区久久AAA片69| 99久久www免费人成精品| 潮喷大喷水系列无码久久精品| 亚洲欧美另类日本久久国产真实乱对白 | 亚洲精品国产成人99久久| 嫩草伊人久久精品少妇AV| 久久人人爽人人爽人人爽| 亚洲欧美日韩久久精品| 日韩AV毛片精品久久久| 久久久网中文字幕| 久久精品国产亚洲Aⅴ香蕉| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 久久国产成人| 久久国产成人午夜AV影院| 国产精品久久久久久吹潮| 乱亲女H秽乱长久久久| 国产成人精品白浆久久69| 国产精品99久久99久久久| 久久无码人妻一区二区三区| 国产精品美女久久久久久2018|