Search
Sheng Jiang

Tags
.NET Framework ActiveX ActiveX Data Objects Application programming interface ASP.Net C# C++/CLI Call stack CSDN Exception handling File Transfer Protocol Google Chrome Hardware Integer (computer science) Internet Explorer Internet Explorer 6 Internet Explorer 7 Internet Explorer 8 Internet Information Services Microcontroller Microsoft Microsoft Foundation Class Library Microsoft Most Valuable Professional Microsoft Visual Studio Microsoft Windows Office Live Regmon Security Programming Service pack Trident (layout engine) User agent Visual C++ Visual Studio Web browser WebBrowser Control Web Service Where is the forum for windows 8 Developer Preview Windows Forms Windows SDK Windows Server 2003 Windows Shell Windows Update Windows Vista Windows XPBlogroll
Author Archives: Sheng Jiang 蒋晟
When you get a System.BadImageFormatException. maybe you indeed have a bad system image.
I am getting a StackOverflowException with two functions repeating on the call stack, one is the constructor of System.BadImageFormatException, another is System.Environment.GetResourceStringLocal. Since the call that throws the stack overflow is to a web service proxy defined in the same project as the application, … Continue reading
Posted in Microsoft, Visual Studio
Tagged .NET Framework, Call stack, Exception handling
Leave a comment
How to: Migrating a CLR console Visual C++ project to Windows Forms
Note: Windows Forms programming in new development is discouraged by Microsoft at this point as Microsoft wants to make full use of hardware accelerated drawing instead of using the CPU-intensive GDI. But maintaining old Windows Forms code in Visual C++ 2012 is … Continue reading
Posted in C++/CLI, enmsdn, Microsoft, Visual C++, Visual Studio
Tagged C++/CLI, Console application, Visual C++, Windows Form
Leave a comment
Add the correct interface first in Adding an MFC Class from an ActiveX Control wizard.
In good old times aka VC6, if you want to use an ActiveX in MFC, the Components and Controls Gallery would generate all the properties and methods of an ActiveX and pull dependent types and create wrapper classes for them as … Continue reading
Posted in enmsdn, MFC, Microsoft, Microsoft Foundation Class Library, Visual C++, Visual Studio
Tagged ActiveX, COM, Visual C++, Windows Media Player
Leave a comment
Howto: reset IE security zone settings programmatically
Internet Explorer 7 introduced the IInternetZoneManagerEx2 interface, which has a FixUnsecureSettings method to reset all security zone settings. Like all other IInternetZoneManager* interfaces, you can query this interface from the internet zone manager object: IInternetZoneManagerEx2* pzoneManager=NULL; HRESULT hr=CoCreateInstance(CLSID_InternetZoneManager ,NULL,CLSCTX_INPROC_SERVER,IID_IInternetZoneManagerEx2,(LPVOID*)&pzoneManager); if(hr==S_OK && pzoneManager!=NULL) { … Continue reading
What’s new in MFC/ATL 11 Beta
Note this post is on Visual Studio 11 Beta, you can download it from http://www.microsoft.com/visualstudio/11/en-us/downloads Since Sinofsky posted about no desktop apps on Windows on ARM (WOA), it looks like MFC and ATL are going to support metro-style apps, although … Continue reading
Posted in Visual C++
Tagged ActiveX Document, MFC, Microsoft Visual Studio, Visual C++
Leave a comment
Choosing formats when putting data on clipboard
The topic is from a forum discussion at http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/94bb2db4-3ca2-4cd8-9f7c-6dd9aab6fd18 Generally an application should provide data in as many formats as possible so more applications can recognize the data. For example, IE stores text data in CF_UNICODETEXT, CF_TEXT and CF_HTML formats. Because … Continue reading
Where is the forum for Internet Explorer?
People get confused by various Microsoft IE forum sites so here is the steps to find the forum closer to IE related questions if the task in question is using IE http://answers.microsoft.com/en-us/ie/forum manage IE on someone else’s machine, or IE … Continue reading
Windows Update KB2538242 or KB2538243 offered repeatedly
Recently there is an outburst of posts related to the KB2538242 update being offered repeatedly on MSDN’s Visual C++ forums, TechNet’s various Windows security forums and the Windows Update forum on Microsoft Answers forums. Questions about KB2538243 appear as well, … Continue reading
Posted in Microsoft, Visual C++
Tagged Microsoft Answers, Patch (computing), Visual C++, Windows Update
3 Comments
