Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 23915, PInvoke Live Template for D2006

by Deepak Shenoy Email: shenoy@agnisoft.com


Use the PInvoke Live Template for Delphi 2006 to automatically get PInvoke Definitions for common Win32 functions.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 10.0  to 10.0 231 downloads
Copyright: No significant restrictions


Size: 13,998 bytes
Updated on Sat, 28 Jan 2006 08:47:09 GMT
Originally uploaded on Sat, 28 Jan 2006 08:48:05 GMT
SHA1 Hash: 9C4512FBE980B2095B912B9005B1DC71DB03D8A4
MD5 Hash: BF5457699156462667B2D22743CE21FB

    Explore the files in this upload

Description
Notes:
Use the PInvoke Live Template for Delphi 2006 to automatically get PInvoke Definitions for common Win32 functions.

1) compile/install the package in the IDE.
2) Copy the .xml files over to your ObjRepos folder in the Delphi install (appropriate sub folder) or to the User Folder (by default: c:\Documents and Settings\[USERNAME]\Local Settings\Application Data\Borland\BDS\4.0\code_templates)

In the IDE, in a .pas file:

type pinvd and hit [TAB]

You can type in the name of a function (eg. SendMessage etc.) and the appropriate declaration will be downloaded from www.pinvoke.net and pasted in your file in object pascal.

In a CSharp file:

type pinvc and hit [TAB]

Same concept applies, except code pasted is in C#.

Stock Quotes:
A bonus script.

Type squote and hit [TAB]

You can enter a Yahoo Stock Symbol and a delayed stock quote will be pasted into the IDE.

Like this, if you had entered BORL for the stock symbol:

BORL:6.95

An article and source code is available at:

http://shenoyatwork.blogspot.com/2006/01/pinvoke-live-template.html.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03