AccessMyLibrary provides FREE access to over 30 million articles from top publications available through your library.

Rites of passage: Clipper's Extend System. (tutorial)

Data Based Advisor

| August 01, 1991 | Ashbaugh, Ken | COPYRIGHT 1991 Advisor Publications, Inc. This material is published under license from the publisher through the Gale Group, Farmington Hills, Michigan.  All inquiries regarding rights should be directed to the Gale Group. (Hide copyright information)Copyright

Clipper 5.0's Extend System lets you add C and assembly functions to your applications. it works by providing a common method of passing parameters between different programming environments.

To get the full power from Clipper, you should understand how its Extend System operates.

The Extend system is a group of functions and macros that provide you with a method of passing information to external functions-written in Microsoft C or assembler-for processing, or to provide complementary methods for returning the information to Clipper programs. These routines provide a common method of passing parameters between dissimilar programming environments.

Extend System elements include runtime data structures, interface functions, service functions, header files and definitions, and, most importantly, the Extend Protocol. To give you an overview of the entire Extend System, I'll cover each of them briefly below.

Think of the method Extend uses as a collection of post office boxes, set in a wall with Clipper on one side and C (or assembler) on the other. Clipper data, or a pointer to the data, is stored in particular boxes, based on type, on the Clipper side of the wall-but control is passed to the C or assembler function. By using the functions supplied with Extend, external C functions can get to the data, process it, and return it to a mailbox for Clipper. Depending on the function, it can be the same mailbox or a different one. Once this is done, the C function returns control to Clipper.

The set of routines for passing parameters to C functions are usually referred to as the -par functions. Since Clipper and C data types aren't directly interchangeable, these functions provide both conversion and "transportation." Here's the correlation between data types:

 
Clipper        c             Extend 
Data type      Data type     function 
character      char*         _parc() 
                             _parcien() 
date           char          _pards() 
logical        int           _pari() 
numeric        int           _parni() 
               long          _parni() 
               double        _parnd() 
Related articles from newspapers, magazines, journals, and more
Extend Clipper with mouse support, part I. (Hardcore Clipper) (Tutorial)
Magazine article from: Data Based Advisor Spence, Rick October 1, 1992 700+ words
...functions will be callable from Clipper, they must conform to Clipper's extend system API (application programming...which I'll briefly cover. The extend system It's no secret that you can write Clipper callable routines in assembler...
CA-Clipper: newly extended with RDDs. (Computer Associates International Inc.'s...
Magazine article from: Data Based Advisor Mueller, John May 1, 1993 700+ words
...you to resort to using the extend system in the past. For example...access these features within Clipper. Any ANSI.SYS command...New APIs Speaking of the extend system, this new version of Clipper contains some additional...
Flagship makes Clipper to UNIX smooth sailing. (Multisoft Datentechnik GmbH's...
Magazine article from: Data Based Advisor Liczbanski, Michael June 1, 1994 700+ words
...Flagship also supports the Clipper Summer '87 compatible Extend System used by external (mostly C...language routines written to Clipper's Extend System, or by inserting in-line C code into Clipper programs using the #Cinline...
CA-Clipper: Version 5.01. (from Computer Associates International Inc.)...
Magazine article from: InfoWorld Duncan, Judy September 28, 1992 700+ words
...drawing point for many CA-Clipper fans. Although it shows its xBase heritage, CA-Clipper is a more structured language...language comes with. The Extend system allows modules written...integrated into a CA-Clipper application. Score...
Check out Clipper libraries. (Tom Rettig's Library, Integrated Development...
Magazine article from: Data Based Advisor Tollefson, Jack June 1, 1989 700+ words
...a quick perusal through the Clipper manual won't reveal any functions...you could write routines with Clipper to do these tasks, but the...your application through the Extend System built into Clipper, and provide parameter passing...
Clipper and the other C - Borland C++. (Clipper Tip column) (Tutorial)
Magazine article from: Data Based Advisor Humphreys, Ben November 1, 1991 700+ words
Clipper's Extend system allows programmers to write routines in C and call them from Clipper code. This not only provides the added...about 10 times faster in C than in Clipper. Nantucket recommends using Microsoft...
Something eXtra for Clipper developers. (3P Software's Something xTra is a...
Magazine article from: Data Based Advisor Mueller, John October 1, 1993 700+ words
...routines you replace the default Clipper GETSYS with the GETSYS.PGR...to assembly or C language or Clipper's Extend system for little things like taking...to build entire programs using Clipper that once required C or assembler...
Using Clipper, 3rd edition.
Magazine article from: Data Based Advisor Ramsay, Bill October 1, 1992 700+ words
...of the advanced features of Clipper, which means readers have...beginner, try the Illustrated Clipper 5.0 and both of Ed Tiley...programming. If you're using the Extend system to interface with Clipper, The Clipper Interface Handbook...
A new kind of library. (Nantucket Corp's Clipper 5.1)
Magazine article from: Data Based Advisor Bersin, Jeffrey June 1, 1991 700+ words
...to print a line to text on the screen, the FUNCky syntax in Clipper would be: stdoutline ("Hello, world!") The Clipper surface library would handle Clipper's Extend System parameter-passing protocol and convert it into a direct C call...
Extend support for classes in Clipper. (Loesgen Software Inc's StarClass)...
Magazine article from: Data Based Advisor Mueller, John November 1, 1994 700+ words
...Source code provided Few Clipper add-ons provide the source...Most products provide the Clipper hook code, but leave the...all library source code--Clipper, C, and assembler. It also...because they use standard extend system syntax. On the other hand...
For more facts and information, see all results
©2009 Gale, a part of Cengage Learning. All rights reserved.
About us | FAQs | Contact us | Privacy policy | Terms and conditions
Other Gale sites: Encyclopedia.com | HighBeam Research | Acquire Content | Books & Authors | Goliath | MovieRetriever | Smart QandA