Search Amazon:

Obtaining OLE Automation Error Text

This sample shows you how to get the associated error message text when you receive one of those pesky, cryptic OLE Automation errors. OLE Automation errors can occur for any number of reasons when working with ActiveX components, creating objects,... Knowing the reason the error was raised is a definite plus in solving the problem.

Extract the error message text for OLE Automation errors.
Download Source Code

The core of this program is the FormatMessage API to which I pass in the error number along with the FORMAT_MESSAGE_FROM_SYSTEM flag. In return, FormatMessage gives the text associated with the error code.

Instructions

Enter an OLE Automation error number in either hex or decimal and click the button.

Sign In
  User Id 
  Password 


Submit Your Own Code and Articles




About TheScarms
About TheScarms

Ask me your programming questions

I read every email and answer all I can.

User Feedback: Be the first to add a comment! Items to Show:     

     
You must log in to post feedback.
Comment:    
 

If you use this code, please mention "www.TheScarms.com"

Email this page


TheScarms AppSentinel lets you securely copy protect and create evaluation versions of your software

TheScarms(tm) AppSentinel lets you quickly and easily create evaluation versions of your software and stop unauthorized copying and unregistered use of your programs!

Get your free
trial copy today!


      The World's Number 1 Web Host

© Copyright 2008 TheScarms