TEST2.obj : error LNK2001: unresolved external symbol "public: static void _cde解决方法

TEST2.obj : error LNK2001: unresolved external symbol "public: static void __cde
BOOL CTEST2App::InitInstance()
{
{

CCommandLineInfo cmdInfo;

ParseCommandLine(cmdInfo);
CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);

}
AfxEnableControlContainer();

    //下面的内容省略

将红色部分注释掉编译不会出现下面的错误,加上之后就会出现下面的错误,什么原因呢?

Compiling...
TEST2.cpp
Linking...
TEST2.obj : error LNK2001: unresolved external symbol "public: static void __cdecl CSplashWnd::EnableSplashScreen(int)" (?EnableSplashScreen@CSplashWnd@@SAXH@Z)
Debug/TEST2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...
------解决方案--------------------
CSplashWnd所在的单元,必须添加到工程中。