One of the problems that I often encounter is that I will include Windows ' in my uses clause, and then later add ' JwaWinBase ' for some specific calls.
However, many of the functions in the "Windows" module are the same as in JwaWinBase, and I start to get errors in my main module all over the place until I fix all my calls, after waiting for the correct unit name, for example:
Old:
- CreateProcessAsUser (...)
New:
- Windows.CreateProcessAsUser (...)
- JwaWinBase.CreateProcessAsUser (...)
What I want to know is there a way to automatically assign a device name to each function call in another block? Thus, before I add JwaWinBase to my suggestion, I could have a single name named "Windows" for any function calls. Then adding JwaWinBase will not give me any errors.
I am currently using Delphi 2007.
source
share