Re: DeviceResolutionAware.h and wide string constants
- From: "Bill Stelzel" <bstelzel@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 15 Jul 2006 16:51:12 -0700
The security cookie is needed to enable the /GS compiler option to work. I
suspect you actually didn't use the default settings but instead choose to
create an empty project (or later deleted the stdafx.h header file that the
new project wizard creates).
The header file DeviceResolutionAware.h include the header file altcecrt.h
which has the following lines in it which cause you to link against
secheck.lib if necessary -- this takes care of the unresolved external you
see
#if defined(_M_ARM) && !defined(_M_ARM) && (_WIN32_WCE<0x500)
#pragme comment(lib, "secchk.lib")
#endif
"Sereg@" <serega@xxxxxxxxxx> wrote in message
news:eJ12Tf1pGHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
Could anybody explain such strange effect: (VisualStudio 2005, Smart
Device win32 project, default settings)
--------------------------------------------------------------------------------------------------------
#include <windows.h>
int WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR lpCmdLine, int
nCmdShow)
{
return 0;
}
--------------------------------------------------------------------------------------------------------
All is ok. No errors.
--------------------------------------------------------------------------------------------------------
#include <windows.h>
int WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR lpCmdLine, int
nCmdShow)
{
WCHAR test[] = L"test";
return 0;
}
--------------------------------------------------------------------------------------------------------
Causes 3 errors!
------ Build started: Project: testapp2003, Configuration: Debug Pocket PC
2003 (ARMV4) ------
Compiling...
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol __security_cookie
referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol
__security_check_cookie referenced in function WinMain
Pocket PC 2003 (ARMV4)\Debug/testapp2003.exe : fatal error LNK1120: 2
unresolved externals
Build log was saved at "file://c:\work\test\testapp2003\Pocket PC 2003
(ARMV4)\Debug\BuildLog.htm"
testapp2003 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
--------------------------------------------------------------------------------------------------------
But when we add #include <DeviceResolutionAware.h> - build successful
again.
I can't understand how GDI features header relays to such symbols. It's
very strange for me.
.
- References:
- DeviceResolutionAware.h and wide string constants
- From: Sereg@
- DeviceResolutionAware.h and wide string constants
- Prev by Date: Re: Info on windows mobile 2003
- Next by Date: Re: MSBuild for Pocket PC and SmartPhone
- Previous by thread: DeviceResolutionAware.h and wide string constants
- Next by thread: Info on windows mobile 2003
- Index(es):
Relevant Pages
|