MFC小程序加载skin++出错
我用MFC写了个小小的对话框程序 想加载skin++皮肤但是报错了!!!!怎么办
我是按照说明加入的
说明如下(skin++2.1)
【
1、将SkinPPWTL.lib skinppwtl.dll SkinPPWTL.h三个文件及相应皮肤拷贝至工程文件夹下
2、在StdAfx.h文件中加入#include "SkinPPWTL.h"
//..
#endif // _AFX_NO_AFXCMN_SUPPORT
#include "SkinPPWTL.h" //在这个地方加
//{{AFX_INSERT_LOCATION}}
//..
3、在BOOL CXXApp::InitInstance()函数中加入:
BOOL CWwApp::InitInstance()
{
skinppLoadSkin(_T("blue.ssk"));//blue.ssk为项目下的皮肤文件
//..
}
4、如果是SDI/MDI程序,则要重载ExitInstance
int CWwApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
skinppExitSkin();
return CWinApp::ExitInstance();
}
连接报错:
MFC01.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl skinppLoadSkin(char *,int)" (__imp_?skinppLoadSkin@@YAHPADH@Z)
Debug/MFC01.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...