Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7763701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:43:30+00:00 2026-06-01T14:43:30+00:00

Just to explain more about the context, this is how to reproduce: Delphi 7

  • 0

Just to explain more about the context, this is how to reproduce:

  • Delphi 7 (but perhaps more recent versions as well)
  • Import Type Library “Microsoft VBScript Regular Expressions 5.5”

Write a program around this code:

var
  re:RegExp;
try
  re:=CoRegExp.Create;
  re.Pattern:='(';//is an invalid regex, but see below
  re.Test('');
except
  on e:Exception do
    Caption:=e.ClassName+' '+e.Message;
end;

This will throw an Exception EOleError OLE error 800A139C

It does so because SysErrorMessage returns an empty string on this code and the EOleSysError constructor defaults to the SOleError resource string to return something.

Is there a winapi alternative to SysErrorMessage to get a hold of a better error description? If I google around a bit, the code does stand for a ‘missing parentheses’ error, but if there is a way I could get a (localized) description from the system, I would prefer using it, over having to add an enumeration of error-description constants to my project.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:43:32+00:00Added an answer on June 1, 2026 at 2:43 pm

    That’s a COM error. To get a textual description call GetErrorInfo and then IErrorInfo.GetDescription. But don’t be surprised if you don’t get anything useful back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know how to explain this correctly but just some sample for you
My aim before writing this code was to just practice and learn more about
First of all: I understand, why this warning is existing, I just can't explain
Just came across this by Chris Coyier - http://css-tricks.com/examples/CSSTabs/ Can anyone explain me, how
I'm not sure exactly how to explain this, so I'll just start with an
I have asked aqbout timezones and date/time before but this is a more specific
Hello yeah I'm asking this question a second time, sorry about that but I
So this is going to be a bit difficult to explain, but I'll give
I'm not sure how to categorize this question, so let me just explain what
EDIT : Juan Mendez's solution fixed this particular problem, but does not explain the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.