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 7915965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:38:02+00:00 2026-06-03T14:38:02+00:00

i am working on component for delphi 7 and delphi 2006 , the component

  • 0

i am working on component for delphi 7 and delphi 2006, the component uses SynTaskDialog.pas from synopse, i have successfully used the SynTaskDialog.pas in delphi 7 component, but when i try to use it in delphi 2006 to create a component package. i get an error

enter image description here

i have found a solution for the same on synopse.info/forum


Quote:

I’ve found two workarounds: Either

  1. replace the pointer arrays with string arrays like
  TD_ICONS_IDENT: array[TTaskDialogIcon] of string =(
    '', SMsgDlgWarning, SMsgDlgConfirm, SMsgDlgError, SMsgDlgInformation,
    '', SMsgDlgInformation);

and remove some LoadResString calls or

2.replace the pointer arrays with functions like

  GetIconIdent(TTaskDialogIcon): Pointer

but even after that i cannot compile the package for the component. and these errors come

 [Pascal Error] E2201 Need imported data reference ($G) to access 'SMsgDlgOK' from unit 'SynTaskDialog'
 [Pascal Error] E2201 Need imported data reference ($G) to access 'SMsgDlgYes' from unit 'SynTaskDialog'
 [Pascal Error] E2201 Need imported data reference ($G) to access 'SMsgDlgNo' from unit 'SynTaskDialog'
 [Pascal Error] E2201 Need imported data reference ($G) to access 'SMsgDlgCancel' from unit 'SynTaskDialog'
 [Pascal Error] E2201 Need imported data reference ($G) to access 'SMsgDlgRetry' from unit 'SynTaskDialog'
 [Pascal Error] E2201 Need imported data reference ($G) to access 'SCloseButton' from unit 'SynTaskDialog'
  • 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-03T14:38:04+00:00Added an answer on June 3, 2026 at 2:38 pm

    Why didn’t you ask the question of the project forum?

    A solution may enhance the official code of this Open Source unit.

    OK – it may help me gain some SO points. 😉

    AFAIK this “E2001” issue has already been identified – see this post and should have been fixed in the latest trunk. This is what sounds to work with Delphi 7, but not with Delphi 2006.

    Here is a potential workaround of this compiler bug:

    Define such a function:

    function IconMessage(Icon: TTaskDialogIcon): string;
    begin
      case Icon of
        tiWarning:   result := SMsgDlgWarning;
        tiQuestion:  result := SMsgDlgConfirm;
        tiError:     result := SMsgDlgError;
        tiInformation, tiShield: result := SMsgDlgInformation;
        else result := '';
      end;
    end;
    

    To be used as such:

    if Inst='' then
      Inst := IconMessage(aDialogIcon);
    

    This is now committed in the project trunk.

    Thanks for using our Open Source component!

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

Sidebar

Related Questions

I am outputting RTF from a word processor component. This is working well, but
I am working on a component in Delphi 7 and Delphi 2006 , where
The project I'm working on uses a 3rd party component called ABCpdf to generate
I'm working on a component installer (only for Delphi XE2) and I would like
I have recently been working with a COM+ component that processes an input XML
I'm upgrading my application from Delphi 2007 to Delphi XE. I have my personal
I have ZipForge for Delphi XE2 & Delphi XE2. I try to test any
I am working on a project using Delphi 7 and Delphi 2006 , i
Has anyone successfully used WebKit in Delphi? WebKit is an open source web browser
I'm working with a COM component which exposes a lot of Variant properties, but

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.