我用VC作了简单的界面,当我察看他自动生成的程序时,我看不到它的main()函数,因此就不知道VC内部到底是怎么执行的,请问各位大虾,这是怎么回事?谢谢

解决方案 »

  1.   

    如果是文档/视类型的,首先执行app的InitInstance() vc中没有main函数
      

  2.   

    先加载CMy***App,然后InitInstance
      

  3.   

    Windows应用程序的main函数是 WinMain();如果你采用MFC框架,它已被封装在CWinApp类中了。
      

  4.   

    使用vc++的debug程序。编译->开始调试->setup into 可发现_twinmain().这就是vc++程序的开始点。该函数在文件Appmodul.cpp中。路径:
    C:\program Files\Microsoft Visual Studio\Vc98\Mfc\Src\Appmodul.cpp
    请您试一试。
      

  5.   

    MFC程序中, main已经封装了。vc中有main函数,如果你写的是控制台程序,或Win32应用程序.
      

  6.   

    看看侯sir的《深入浅出MFC》吧
      

  7.   

    Windows应用程序的main函数是 WinMain();如果你采用MFC框架,它已被封装在CWinApp类中了。这个在潘爱民那本书上介绍的很详细!
      

  8.   

    谢谢各位,我在深入浅出MFC找到了答案!!
      

  9.   

    Gonig Home
    They were going to Fort Auderdale--three boys and girls--and when they board to the bus,they were carring sandwiches and wine inpaper bags,dreaming of golden beaches and sea tides as the gray,cold spring of New York vanished behind them.
      

  10.   

    它的入口是winmain(),它被封装起来了。MFC中有很好的解释。