skinmagic 运行的时候出现 debug assertion failed解决办法

skinmagic 运行的时候出现 debug assertion failed
BOOL   CFfffffApp::InitInstance()
{
//===   add   by   mythma======
VERIFY(1==InitSkinMagicLib(AfxGetInstanceHandle(),NULL,   NULL,   NULL));       ///////这行出错   !!!
VERIFY(1==   LoadSkinFile( "corona.smf "));
//=============end=============
AfxEnableControlContainer();


//   Standard   initialization
//   If   you   are   not   using   these   features   and   wish   to   reduce   the   size
//     of   your   final   executable,   you   should   remove   from   the   following
//     the   specific   initialization   routines   you   do   not   need.

#ifdef   _AFXDLL
Enable3dControls(); //   Call   this   when   using   MFC   in   a   shared   DLL
#else
Enable3dControlsStatic(); //   Call   this   when   linking   to   MFC   statically
#endif

CFfffffDlg   dlg;
m_pMainWnd   =   &dlg;
        //===========add   by   mythma=======
VERIFY(   1   ==   SetWindowSkin(   m_pMainWnd-> m_hWnd   ,   "MainFrame "   ));
        VERIFY(   1   ==   SetDialogSkin(   "Dialog "   )   );
//=============end===
int   nResponse   =   dlg.DoModal();
if   (nResponse   ==   IDOK)
{
//   TODO:   Place   code   here   to   handle   when   the   dialog   is
//     dismissed   with   OK
}
else   if   (nResponse   ==   IDCANCEL)
{
//   TODO:   Place   code   here   to   handle   when   the   dialog   is
//     dismissed   with   Cancel
}

//   Since   the   dialog   has   been   closed,   return   FALSE   so   that   we   exit   the
//     application,   rather   than   start   the   application 's   message   pump.
return   FALSE;
}

------解决方案--------------------
我也出现过类似问题,刚刚解决,你用 静态连接库试试,我就是用静态连接库的