Reputation: 2591
The Microsoft Developer Network MSDN is full of useful documented functions that are a necessity to learn about and to stay updated with for a windows app developer.
For example the shellexecute function in here is well documented (translated below by Embarcadero Technologies).
function ShellExecute; external shell32 name 'ShellExecuteW';
However the language used to explain these functions is c/c++ (not complaining or any thing).
To find where is the equivalent to these functions (if it exist or not is another question) can be hard.
For example I'm looking for the equivalent of this function:
DWORD CreateIpNetEntry(
_In_ PMIB_IPNETROW pArpEntry
);
Now it would be pointless to always come and ask here where I can find the equivalent each time I get stuck. So my question is:
Is there a way to know if there is an equivalent/translation to the c++ functions at MSDN in delphi and where to find them(the unit)?
Upvotes: 3
Views: 288
Reputation: 7912
This is described in Finding Units topic:
Editing Delphi code in the Code Editor, you can use the Find Unit refactoring dialog box to locate and add units to your code. The Find Unit dialog appears when you select an identifier in the Code Editor and select the Refactor > Find Unit menu command. The operation attempts to find the appropriate unit containing the definition of the selected identifier, and then adds the selected unit to the uses clause. You can select multiple units to add to the uses clause. To find and add a unit to the uses clause:
- In the Code Editor, click an identifier whose unit you want to add to the uses clause.
- Choose the Refactor > Find Unit menu command. The Find Unit dialog box displays a selection list of applicable Delphi units.
- Select the unit that you want to add to the uses clause in the current scope. You can select as many units as you want.
- Choose where to insert the reference, either in the interface section or in the implementation section.
- Click OK. The uses clause is updated with the selected units.
Or you can grep the Delphi source folder if you have Delphi with source code.
Upvotes: 4
Reputation: 613013
You can find whether or not a particular API function has been translated by simply searching the Delphi source folder for it.
Any search in files tool will serve the necessary purpose, including the built-in Find in Files.
Upvotes: 4