If a server SSL certificate is issues by unknown or invalid certificate authority WinInet HttpSendRequest API or MFC CInternetFile::SendRequest will fail with error 12045(ERROR_INTERNET_INVALID_CA).
To resolve this problem, click here.
Wednesday, May 19, 2010
ERROR_INTERNET_INVALID_CA
Tuesday, April 6, 2010
Visual Studio 2010 Bug
When debugging a MFC application that build with release mode, visual studio
break point crashed.
I don't know it's just small bug or intended.
To turn on break point , Turn off optimization option on project setting.
(Optimization ->Disable, Whole Program Optimization -> No)
Saturday, November 21, 2009
How to check UAC On/Off
UAC enable information is stored in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
subkey.
In this sub key values, EnableLUA key value present windows enabled UAC or not.
So we can make a simple code that checking a current windows UAC status.
BOOL IsUacOn()
{
DWORD res = ERROR_SUCCESS;
DWORD dwType = REG_DWORD;
DWORD UacOnOff = 0;
DWORD sz = sizeof(DWORD);
res = SHGetValue(HKEY_LOCAL_MACHINE,
_T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"),
_T("EnableLUA"), &dwType, &UacOnOff, &sz);
if(res == ERROR_SUCCESS)
{
if(UacOnOff == 1)
return TRUE;
else
return FALSE;
}
else
return FALSE;
}
Wednesday, October 28, 2009
Visual Studio 2010 Beta 2 :
Visual Studio 2010 Beta 2 has been released for tests.
There are many powerfull and usefull tools added like a C++0x, MFC Feature Pack, more
convinent WER(Windows Error Reporting) SDKs and Test Suite.
Especially, Finally, Class wizzard return.
Its short key changed to Ctrl+Shift+X.(It's quite complex..)
Following image is newly added class wizzard dialog on Visual Studio 2010 Beta 2.
It's more easy and pretty than VC 6's.
More about Visual Studio 2010 , visit following pages.
http://blogs.msdn.com/vcblog/
http://channel9.msdn.com/posts/Charles/Pat-Brenner-Visual-Studio-2010-MFC-and-Windows-7/
Monday, August 17, 2009
WDK 7.0.0 Released
WDK(Windows Driver Kit) 7.0.0 released 6, Aug, 2009.
This version is latest windows driver development kit for windows platform
including Windows7 and Windows Server 2008.
You can download from here.
Friday, August 7, 2009
Richedit Control Bug(?)
I've found a quite bothering bug about rich edit control.
1. Create Visual C++ Dialog Based project.
2. Set Character set to "Multi Byte Support" on project property.
3. Open resouce file(.rc) with "view code"
4. We can see following code that rich edit control generated Ansi window class.
CONTROL
"",IDC_RICHEDIT21,"RichEdit20A",ES_AUTOHSCROLL WS_BORDER
WS_TABSTOP,57,60,135,111
5. Then , change "Character set" property to "Unicode character set" on project poperty page.
6. Now, we expected rich edit control's class changed unicode class, "RichEdit20W"...
But It's NOT...
We have to change it RichEdit control's class name to "RichEdit20W" manually on .rc source
code.
CONTROL "",IDC_RICHEDIT21,"RichEdit20W",ES_AUTOHSCROLL WS_BORDER
WS_TABSTOP,57,60,135,111
Thursday, July 16, 2009
64Bit Windows Support NUMA System Architecutre
Windows Vista, 7 and server 2008 supports a NUMA(Non-Uniform Memory Access) system
architecutre.
Microsoft introduces an NUMA systems on channel 9.
And added new APIs for NUMA system architecture.