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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:40:08+00:00 2026-06-06T07:40:08+00:00

How do I get all the address locations for functions/procedures/methods that is overloaded? For

  • 0

How do I get all the address locations for functions/procedures/methods that is overloaded?

For example, Dialogs.MessageDlgPosHelp is overloaded having two different versions of it – one without a default button and one with. How would I obtain the address locations for the two functions?

  • 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-06T07:40:11+00:00Added an answer on June 6, 2026 at 7:40 am

    Based on this thread and what Thomas Mueller pointed there, you might define types with the same signatures as methods whose addresses you want to obtain (for each overload). If you then declare the variables of those types and assign method pointers to them you will make sure that compiler chooses the right overload to your known variable type and moreover that it won’t ignore them if they wouldn’t be used anywhere in the code (some overloads might not get linked in your binary).

    So based on his idea it might looks for the MessageDlgPosHelp function overloads like this:

    type
      TMessageDlgPosHelp1 = function(const Msg: string; DlgType: TMsgDlgType;
        Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer;
        const HelpFileName: string): Integer;
      TMessageDlgPosHelp2 = function(const Msg: string; DlgType: TMsgDlgType;
        Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer;
        const HelpFileName: string; DefaultButton: TMsgDlgBtn): Integer;
    
    procedure TForm1.Button1Click(Sender: TObject);
    var
      MessageDlgPosHelp1: TMessageDlgPosHelp1;
      MessageDlgPosHelp2: TMessageDlgPosHelp2;
    begin
      MessageDlgPosHelp1 := MessageDlgPosHelp;
      MessageDlgPosHelp2 := MessageDlgPosHelp;
      ShowMessage(Format('%p; %p', [@MessageDlgPosHelp1, @MessageDlgPosHelp2]));
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to query Employee to get all the address related to the employee, Employee.Add.all()
How do i get a list of all e-mail address for exchange public folders?
how do you get the list of all the computer names/ip address on your
Anybody know how to get all of these in a C# app that leads
I'm having a target that goes offsite on my mobile website (address of location
I want to get the List of nearest locations of by passing an address
Can get all triples with value null in specific field? All people with date_of_birth
To get all contacts I'm using ABAddressBookCopyArrayOfAllPeople method but, this method return all contacts
I need to get all the objects whose id matches a specific pattern .
I want to get all values of a set interface in one go as

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.