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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:06:37+00:00 2026-06-16T18:06:37+00:00

I have inherited a program that has a number of issues with it. The

  • 0

I have inherited a program that has a number of issues with it. The latest one is a Too Many Actual Parameters warning:

  if MessageDlgPos('IS THIS CORRECT? ' , mtConfirmation,
  **[mbyes, mbno], 0, 400, 450, mbno) = mrno then begin**
    edtPstvEmplyNmbr.SetFocus;
    xitFlg:= True;

The bold portion is where the error highlights.

Note: the program WORKS, just not on my machine. It was developed using the same version of Delphi (7), but in a clx (kylix) environment. I think I (may) have resolved all the incompatibility issues between clx and vcl (my current environment), but it may be that I’m missing a component that is generating this error. I will do my best to clarify any questions, but please remember I’ve only been developing Delphi for a matter of months.

  • 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-16T18:06:38+00:00Added an answer on June 16, 2026 at 6:06 pm

    Delphi’s VCL and Kylix’s CLX are not fully compatible. In particular, some like-named functions take different numbers of parameters, as you’ve learned first-hand.

    Modern versions of Delphi support the version of MessageDlgPos that you’re trying to call, but it’s apparent that Delphi 7 does not. What probably happened was that CLX introduced the seven-argument overload when the VCL version only had six arguments, and then a later Delphi version ported the CLX version back to the VCL. Keep in mind that Delphi 7 is over a decade old.

    To see which versions of the function are available to use, look in Dialogs.pas.

    If you have the six-argument version, you might be able to simply remove the last parameter, and then just deal with the fact that the default button might not be what you want to be. Another alternative is to call MessageBox, which will let you specify the default button at the expense of being able to specify the window position.

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

Sidebar

Related Questions

I have a program written in foxpro (~shudder~) that I've inherited. The issue is,
In a java program, I have a requirement of temporarily storing many records- one
I've inherited a large Visual Basic project that has a number of frames (obviously,
I inherited a .bnd file that has the import !javax. , and my program
I have written a program that has a class with a constructor and destructor
I have a text editor like program which is a QMainWindow inherited class. There,
i have a question. There is application class in my program. It is inherited
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have a text editing program that hands out cursors to other parts of
I'm working on an inherited system which has some design issues which OO Buzzwords

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.