Summary: When you compile a Microsoft Foundation Class (MFC) ActiveX control project with the Internet Explorer 5.5 header files, you may receive the following error message: error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ ]

Resolution: If you fix BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers error in time, your PC will run like brand new. In order to fix your errors and speed up PC, it is recommended that your download the 'BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers Repair Tool'. This is definitely your ideal tool to solve BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers problem in the shortest time.

Download the BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers repair tool

In order to repair BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers error, use the SmartPCFixer software program. This system optimizer software is already proven to locate, identify, and troubleshoot BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers errors. Your computer should run faster and smoother after using this software.


Manual Resolutions

There are two ways to work around this problem:
  • Modify the top of Olectl.h to hide the #pragma once directive as follows: #ifndef _OLECTL_H_ #define _OLECTL_H_ #if !defined(__MKTYPLIB__) && !defined(__midl) #if _MSC_VER > 1000 #pragma once #endif
  • Because you receive the error only when the directory that contains the Internet Explorer 5.5 headers is the first directory for the Internet Explorer headers, you can rearrange the include directory order. To do this, follow these steps:
  • On the Tools menu, click Options.
  • On the Directories tab, change the include directory order in the Microsoft Visual C++ Integrated Development Environment (IDE) so that another include directory that contains Olectl.h and the Internet Explorer 5 headers precedes the Internet Explorer 5.5 headers.

    NOTE: This prevents you from using any of the headers in Internet Explorer 5.5.
  • What Else Does SmartPCFixer Offer You?

    SmartPCFixer™ is not only able to troubleshoot BUG: Error MIDL2311 When You Compile an MFC ActiveX Control with Internet Explorer 5.5 Headers error, but also help identify and fix Windows' invalid registry entries. By running Scan & Cleaner as part of scheduled maintenance, it will keep your PC from freezing or frequent crashes . Using it will reduce the probability of you getting a "blue screen", program not responding or lock up.

    SmartPCFixer provides you with Registry Backup, System Backup, Favorites Backup and Folder Backup. In addition, the new built-in function of Restore Point enables you to create a system store point so you can recover your system to a previous state if you do not like the changes you have made. This ensures the safety of your system when you run the registry repair process.



    Related: Download Toolbar,Adobe Flash Player Windows,Update Adobe Flash,Get Flash Player,Microsoft Update It Tool
    Read More: ,Windows 98 Usb Memory Stick Drivers,adobe flash professional,msi installer error 1603,error code 35,tc exe