AfxGetInstanceHandle()  得到的是the current instance of the application
AfxGetApp()  得到的是 A pointer to the single CWinApp object for the application是不是这两个返回其实是一样的 都是指向同一个对象的  只是一个是handle  一个是指针

解决方案 »

  1.   

    The pointer returned by this function can be used to access application information such as the main message-dispatch code or the topmost window.CWinApp* AFXAPI AfxGetApp( ); This function allows you to retrieve the instance handle of the current application.HINSTANCE AFXAPI AfxGetInstanceHandle( );
      

  2.   

    我就是看了msdn 有疑问  
    你再贴msdn上面的东西   唉 ~~~~
    回答我的问题
      

  3.   

    还有个问题就是我拉了个picture 控件 然后导入bmp图片
    程序可以显示这个图片   但是我在那些源程序中找不到这个控件的有关代码  
    是不是它没显示出来