• <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 閱讀(343) 評論(0)  編輯 收藏 引用

            導航

            <2025年6月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            293012345

            統(tǒng)計

            常用鏈接

            留言簿

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            亚洲精品乱码久久久久久蜜桃| 久久狠狠爱亚洲综合影院| 亚洲αv久久久噜噜噜噜噜| 人妻精品久久久久中文字幕一冢本| 久久受www免费人成_看片中文| 亚洲AV无码久久精品色欲| 久久国产一区二区| 久久午夜夜伦鲁鲁片免费无码影视 | 日本强好片久久久久久AAA| 久久国产精品无码一区二区三区 | 久久综合成人网| 浪潮AV色综合久久天堂| 久久se精品一区精品二区国产 | 久久精品免费一区二区| 国产精品久久久久久久午夜片| 99久久香蕉国产线看观香| 国产精品99久久久久久宅男| 久久精品卫校国产小美女| 久久青青草原精品国产不卡| 久久99国产综合精品女同| 久久久久99这里有精品10 | 2020久久精品亚洲热综合一本| 99re这里只有精品热久久| 久久香综合精品久久伊人| 亚洲国产成人乱码精品女人久久久不卡| 久久发布国产伦子伦精品| 久久99精品久久久大学生| 久久噜噜久久久精品66| 99久久精品免费看国产| 精品久久久久久| 99久久er这里只有精品18| 色婷婷综合久久久久中文| 久久无码AV一区二区三区| 香蕉久久夜色精品国产2020| 国产精品免费看久久久香蕉| 亚洲国产精久久久久久久| 97久久香蕉国产线看观看| avtt天堂网久久精品| 久久91精品国产91久久户| 99精品久久久久久久婷婷| 久久亚洲精品视频|