DebugQ - De:Bug:Q

Go Back   DebugQ - De:Bug:Q > DebugQ > WinCE/WinMobile
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Thread Tools Display Modes
  #1  
Unread 12-26-2008, 07:06 AM
Debugger Debugger is offline
Administrator
 
Join Date: Oct 2007
Posts: 937
Default error LNK2019: unresolved external symbol SHInitExtraControls

[Q] Switch SDK to PPC2003 in VS2005
1>FlashToolCe.obj : error LNK2019: unresolved external symbol SHInitExtraControls referenced in function "public: virtual int __cdecl CFlashToolCeApp::InitInstance(void)" (?InitInstance@CFlashToolCeApp@@UAAHXZ)
1>corelibc.lib(wwinmain.obj) : error LNK2019: unresolved external symbol wWinMain referenced in function wWinMainCRTStartup
1>Pocket PC 2003 (ARMV4)\Debug/FlashtoolCE42.exe : fatal error LNK1120: 2 unresolved externals

[A]
http://forums.microsoft.com/MSDN/Sho...91580&SiteID=1

Quote:
If you got a error message like:


1>XXX.obj : error LNK2019: unresolved external symbol SHInitExtraControls referenced in function "public: virtual int __cdecl CMyrXXApp::InitInstance(void)" (?InitInstance@CMyXXXApp@@UAAHXZ)
1>Pocket PC 2003 (ARMV4)\Release/XXX.exe : fatal error LNK1120: 1 unresolved externals


Simply find out where the code is, and comment that function out.

PS: Should be at

Code:
BOOL CMyXXXApp::InitInstance()
{
#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
    // SHInitExtraControls should be called once during your application's initialization to initialize any
    // of the Windows Mobile specific controls such as CAPEDIT and SIPPREF.
    SHInitExtraControls(); //Comment this out
#endif // WIN32_PLATFORM_PSPC || WIN32_PLATFORM_WFSP
.....


   

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT. The time now is 05:01 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
DebugQ - Debug Quote - De:Bug:Q