background preloader

Delphi Programming

Facebook Twitter

Bodycard 0084

Video Tutorials by Alister Christie (Codegearguru) Delphi Tutorial: Running an external application w ShellExecute. Launching an external program and waiting until it is terminated is quite another story...

Delphi Tutorial: Running an external application w ShellExecute

We can tell if a process has completed by monitoring its process handle. That process handle can be obtained by using one of two Win32 API-functions to start the external program: ShellExecuteEx or CreateProcess. The simplest method is: start the external application with ShellExecuteEx and then monitor the process handle with WaitForSingleObject. I wrapped it all up in a ready-to-go demo project (see picture above), which demonstrates the use of the functions discussed above. To make it easier to see what is happening, we made the window of the demo stay on top of all other windows. If the checkbox is checked, the demo will wait for the completion of the external program.

A click on the second button prints the file whose name is in the edit-box above it. You can download the executable of the demo as EXEWDEMO.ZIP. Delphi software at Download Typhoon, free software downloads, Development/Delphi. Index. Creating and Using DLLs from Delphi. A Dynamic Link library, or DLL, is a collection of routines (small programs) that can be called by applications and by other DLLs.

Creating and Using DLLs from Delphi

Like units, DLLs contain sharable code or resources, they provide the ability for multiple applications to share a single copy of a routine they have in common. The concept of DLLs is the core of the Windows architectural design, and for the most part Windows is simply a collection of DLLs. Naturally, using Delphi, we can write and use our own DLLs, and we can call functions in DLLs developed with other systems / by other developers (like Visual Basic, or C/C++). Creating a Dynamic Link Library The following few lines will demonstrate how to create a simple DLL using Delphi. For the beginning start Delphi and select File | New ... Library TestLibrary; uses SysUtils, Classes, Dialogs; procedure DllMessage; export; begin ShowMessage('Hello world from a Delphi DLL') ; end; exports DllMessage; begin end.

At the end of the source code we find an exports statement. Delphi programming articles and tutorials. DelphiDabbler.com Open source software, Delphi components, Tutorials & more. » Sitemap Navigation.

Delphi programming articles and tutorials

AggPas - About. How to use a command for a button to open a PDF file? - Delphi Pages Forums. Copy / move / delete whole directory? A Beginner's Guide to Delphi Programming. About the Course: This free online course is perfect for beginner developers as well as for those who want a broad overview of the art of programming with Borland Delphi.

A Beginner's Guide to Delphi Programming

Developers will learn how to design, develop and test application using Borland Delphi. The chapters will cover the fundamental elements of creating Windows applications using Delphi, including the Integrated Development Environment (IDE) and the Object Pascal language. Developers will get up to speed quickly through real world, practical examples. This course is aimed to those who are new to programming, come from some other development environment (like MS Visual Basic, or Java) or are new to Delphi. Prerequisites: Readers should have at least a working knowledge of the Windows operating system.

Chapters The chapters of this course are being created and updated dynamically on this site. About Delphi Programming - For Novice and Expert CodeGear Delphi Developers. Turbo Explorer Home Page. Felix Colibri- Lexi, or the Quest for the Mythical Editor. 1 - Introduction Who's Lexi ?

Felix Colibri- Lexi, or the Quest for the Mythical Editor

Lexi is the name of the sample "document editor" used by the Gang of Four, Gof for short, as the introductory example to design patterns. This book written in 1996 by Erich GAMMA, Richard HELM, Ralph JOHNSON, John VLISSIDES literaly started the whole pattern movement. After introducing the Design Pattern idea, the Gof spent about 40 pages presenting a case study which explains how to use 8 typical patterns in the course of designing the "LEXI document editor". Felix Colibri- Delphi Source Code, Technical Articles, Delphi Trainings, Delphi Consulting and Development. Video Capture and Processing component library for .NET, C++ and Delphi.

Efg's Delphi Port I/O. VCL Components - Components, Scripts, Source Code. Andy’s Blog and Tools. Delphi and Pascal Programming Tutorials Table of Contents- Tut. Free Delphi Programming, Freebyte. Marcocantu.com home. Delphi Tutorials. RAD Application Development Software. Codegearguru.com - Home. Export, import tools and components from Scalabium software. Delphi Central provider of Delphi programming tutorials. GExperts. Delphizine. Delphi Pascal source code, programming articles, tutorials and programs.

DelphiFeeds.com - All Delphi blogs in one place - Delphi community and news. DelphiFAQ: Software Engineering Know How. Project JEDI Portal. Dr.Bob's Delphi Clinic: Delphi Property and Component Editors. Delphi offers an Open Tools API, to allow programmers to extent the functionality of the Delphi IDE itself.

Dr.Bob's Delphi Clinic: Delphi Property and Component Editors

There are four kinds of Open Tools APIs: property editors, component editors, experts/wizards and version control systems. This paper will focus on Property and Component Editors, giving several examples of how to write our own Delphi Property and Component Editors. Property Editors Property editors are extensions of the Delphi IDE. That may sound very difficult or complex, but is in fact very easy. We can even construct a property editor without even knowing it - for enumerated types, for example.

Existing Property Editors Before we actually take a look what a property editor looks like from the inside, let's first examine what kinds of property editors already exist in Delphi. If we count correctly, then there are at least 21 custom property editors registered by the DSGNINTF unit. TPropertyEditor The Object Inspector will offer default editing for all kinds of properties. Dr.Bob's Delphi Programming Clinic. Source code for Delphi programming. Delphi Pages. Delphi Basics. Torry's Delphi Pages. Delphi Tutorials.