松鼠的博客

导航

MFC CALLBACK

void   CALLBACK   LoadPicture1(   PCSTR   szFile   )  
  {  
  }  
   
  void   CALLBACK   LoadPicture2(   PCSTR   szFile   )  
  {  
  }  
   
  #typedef   (void*)(PCSTR)   FuncPtr;  
  FuncPtr   func;  
   
  void   comeon(   FuncPtr   f   )  
  {  
          f(   "test.bmp"   )  
  }  
   
  void   start()  
  {  
          func   =   LoadPicture2;  
          comeon(   func   );  
  }  

posted on 2008-07-06 23:51  Xproer-松鼠  阅读(449)  评论(0)    收藏  举报