"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:QgGEh.2122$jx3.233@newssvr25.news.prodigy.net...
Looks like an error in the example
According to the docs
(http://msdn2.microsoft.com/en-us/library/ms724947.aspx)
it should be like this
SystemParametersInfo(SPI_SETFONTSMOOTHING,
TRUE,
0,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
SystemParametersInfo(SPI_SETFONTSMOOTHINGTYPE,
0,
FE_FONTSMOOTHINGCLEARTYPE,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
AliR.
That does not compile, I cut-and-pasted it verbatim.
--------------------Configuration: DFA - Win32
Release--------------------
Compiling...
dfa.cpp
O:\cpp\DFA\dfa.cpp(329) : error C2664: 'SystemParametersInfoA' : cannot
convert parameter 3 from 'const int' to 'void *'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
DFA.exe - 1 error(s), 0 warning(s)
"Peter Olcott" <NoSpam@SeeScreen.com> wrote in message
news:xqDEh.106920$0y4.30034@newsfe14.phx...
Executing the following code changes font smoothing to Standard rather
than
ClearType. This is running on Windows XP Pro and compiled with MSVC++
6.0. I tried it again with MSVC++ 2005, same result.
SystemParametersInfo(SPI_SETFONTSMOOTHING,
TRUE,
0,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
SystemParametersInfo(SPI_SETFONTSMOOTHINGTYPE,
FE_FONTSMOOTHINGCLEARTYPE,
0,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
Here is the source of the documentation:
http://msdn2.microsoft.com/en-us/ms533912.aspx