• <legend id='Hx9Bk'><style id='Hx9Bk'><dir id='Hx9Bk'><q id='Hx9Bk'></q></dir></style></legend>
    <i id='Hx9Bk'><tr id='Hx9Bk'><dt id='Hx9Bk'><q id='Hx9Bk'><span id='Hx9Bk'><b id='Hx9Bk'><form id='Hx9Bk'><ins id='Hx9Bk'></ins><ul id='Hx9Bk'></ul><sub id='Hx9Bk'></sub></form><legend id='Hx9Bk'></legend><bdo id='Hx9Bk'><pre id='Hx9Bk'><center id='Hx9Bk'></center></pre></bdo></b><th id='Hx9Bk'></th></span></q></dt></tr></i><div id='Hx9Bk'><tfoot id='Hx9Bk'></tfoot><dl id='Hx9Bk'><fieldset id='Hx9Bk'></fieldset></dl></div>

      <tfoot id='Hx9Bk'></tfoot>

      <small id='Hx9Bk'></small><noframes id='Hx9Bk'>

          <bdo id='Hx9Bk'></bdo><ul id='Hx9Bk'></ul>
      1. “APIENTRY _tWinMain"和“WINAPI WinMain"不同之处

        时间:2023-08-01

        <legend id='kMJES'><style id='kMJES'><dir id='kMJES'><q id='kMJES'></q></dir></style></legend>

          <bdo id='kMJES'></bdo><ul id='kMJES'></ul>
        • <tfoot id='kMJES'></tfoot>
            <tbody id='kMJES'></tbody>

            • <small id='kMJES'></small><noframes id='kMJES'>

            • <i id='kMJES'><tr id='kMJES'><dt id='kMJES'><q id='kMJES'><span id='kMJES'><b id='kMJES'><form id='kMJES'><ins id='kMJES'></ins><ul id='kMJES'></ul><sub id='kMJES'></sub></form><legend id='kMJES'></legend><bdo id='kMJES'><pre id='kMJES'><center id='kMJES'></center></pre></bdo></b><th id='kMJES'></th></span></q></dt></tr></i><div id='kMJES'><tfoot id='kMJES'></tfoot><dl id='kMJES'><fieldset id='kMJES'></fieldset></dl></div>

                  本文介绍了“APIENTRY _tWinMain"和“WINAPI WinMain"不同之处的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  这两个函数有什么区别?:

                  What are the difference from these 2 function?:

                  int APIENTRY _tWinMain(HINSTANCE hInstance,
                                       HINSTANCE hPrevInstance,
                                       LPTSTR    lpCmdLine,
                                       int       nCmdShow)
                  
                  int WINAPI WinMain(HINSTANCE hInstance,
                                       HINSTANCE hPrevInstance,
                                       LPTSTR    lpCmdLine,
                                       int       nCmdShow)
                  

                  推荐答案

                  _tWinMain 只是 tchar.h 中相应版本的 #define 快捷方式WinMain.

                  _tWinMain is just a #define shortcut in tchar.h to the appropriate version of WinMain.

                  如果定义了_UNICODE,则_tWinMain 扩展为wWinMain.否则,_tWinMainWinMain 相同.

                  If _UNICODE is defined, then _tWinMain expands to wWinMain. Otherwise, _tWinMain is the same as WinMain.

                  相关的宏看起来是这样的(其实还有很多其他的代码穿插):

                  The relevant macro looks something like this (there's actually a lot of other code interspersed):

                  #ifdef  _UNICODE
                  #define _tWinMain  wWinMain
                  #else
                  #define _tWinMain  WinMain
                  #endif
                  

                  这篇关于“APIENTRY _tWinMain"和“WINAPI WinMain"不同之处的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:有没有一种干净的方法来防止 windows.h 创建一个接 下一篇:如何调用带有参数的外部程序?

                  相关文章

                  最新文章

                    <bdo id='6tLmj'></bdo><ul id='6tLmj'></ul>

                    <small id='6tLmj'></small><noframes id='6tLmj'>

                    <legend id='6tLmj'><style id='6tLmj'><dir id='6tLmj'><q id='6tLmj'></q></dir></style></legend>
                    1. <tfoot id='6tLmj'></tfoot>

                    2. <i id='6tLmj'><tr id='6tLmj'><dt id='6tLmj'><q id='6tLmj'><span id='6tLmj'><b id='6tLmj'><form id='6tLmj'><ins id='6tLmj'></ins><ul id='6tLmj'></ul><sub id='6tLmj'></sub></form><legend id='6tLmj'></legend><bdo id='6tLmj'><pre id='6tLmj'><center id='6tLmj'></center></pre></bdo></b><th id='6tLmj'></th></span></q></dt></tr></i><div id='6tLmj'><tfoot id='6tLmj'></tfoot><dl id='6tLmj'><fieldset id='6tLmj'></fieldset></dl></div>