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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:44:49+00:00 2026-05-11T02:44:49+00:00

One of the problems I often run into, is that I will include ‘

  • 0

One of the problems I often run into, is that I will include ‘Windows‘ in my uses clause, and then I will later add ‘JwaWinBase‘ for some specific calls.

However, many of the functions in the ‘Windows’ unit are the same as in JwaWinBase, and I start getting errors in my main unit, all over the place, until I fix all my calls by pre-pending the correct unit name, like this:

Old:

  • CreateProcessAsUser(…)

New:

  • Windows.CreateProcessAsUser(…)
  • JwaWinBase.CreateProcessAsUser(…)

What I want to know, is if there is a way to have the unit name automatically pre-pended to every call to a function in another unit? This way, before I added JwaWinBase to my uses clause, I could have the ‘Windows’ unit name pre-pended to any function calls. Then adding JwaWinBase wouldn’t give me any errors.

I’m currently using Delphi 2007.

  • 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. 2026-05-11T02:44:50+00:00Added an answer on May 11, 2026 at 2:44 am

    There isn’t.

    However, the function calls are handled in the reverse order they’re in the uses clause, so that if you have this:

    uses   Windows, JwaWinBase; 

    … it will call Jwa functions by default. However, if you reverse them:

    uses   JwaWinBase, Windows; 

    … it should call the Windows functions by default, and you can preface your Jwa functions as required.

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

Sidebar

Related Questions

I often run into the problem that I have one stream full of data
While writing code, I often run into the problem of addressing trivial dependancies. For
All too often I've run into a situation in which a view in my
i often run into a problem when variables/attributes have the wrong type. The Problem
I often run into the following problem. I work on some changes to a
I'm sure others have run into this problem too... I often watch videos in
One problem I have with open-source is not often the product or documentation, but
The problem: I often have to update two or more repositories: One for the
im doing some practice sql problems one of the questions is: Prepare a shipping
One of the problems I have come across having complex tasks on the browser

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.