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
Need for many companiesto implement M2M technologies and applications to...
Press release article from: M2 Presswire April 19, 2004 700+ words
...M2M technologies and applications to automate processes or extend system management and visibility beyond the boundaries of traditional...M2M technologies and applications to automate processes or extend system management and visibility beyond the boundaries of traditional...
Extend System Mechanic 8 with these powerful hidden features.
Magazine article from: Personal Computer World July 10, 2008 700+ words
Byline: Mike Williams Extend System Mechanic 8 with these powerful hidden features 1System Mechanic comes with many useful features that aren't enabled by default...
Northern Border Pipeline Company files optional certificate to expand/extend...
Press release article from: PR Newswire June 18, 1990 700+ words
NORTHERN BORDER PIPELINE COMPANY FILES OPTIONAL CERTIFICATE TO EXPAND/EXTEND SYSTEM OMAHA, June 18 /PRNewswire/ -- Northern Border Pipeline Company announced today that it has filed an optional certificate application...
Roofing inspections extend system life. (Pennsylvania State University)
Magazine article from: Buildings Mumford, Steve July 1, 1994 700+ words
BUILDINGS examines the approaches of two large-scope roofing managers. Penn State University For Bob Bloom, facility specialist at Penn State University's Facility Design and Support Services, University Park, PA, roof inspections begin on the ground. "Before I go on a building, I take a casual
Modules extend system range. (Products & Software).(Brief Article)
Magazine article from: Control Engineering January 1, 2002 700+ words
Cleveland, 0Three new modules and three mass termination kits for two-slot Model 2700 Multimeter/Data Acquisition system and five-slot Model 2750 Multimeter/Switch system extend the range of available plug-in cards. The modules include 1x32 differential multiplexer, 1x10 differential multiplexer
BGA termination modules extend system flexibility. (Connectors).
Magazine article from: EDN October 31, 2002 700+ words
These handy modules terminate or reroute signals on a BGA land pattern when an expensive BGA device is not required. ISI's BGA termination modules reduce costs by allowing the use of one standard motherboard for multiple product configurations. Each module is manufactured with BGA spheres on the
Pratt & Whitney Awarded Contract Modification to Extend System Development and...
Press release article from: PR Newswire August 29, 2005 700+ words
EAST HARTFORD, Conn., Aug. 29 /PRNewswire-FirstCall/ -- Pratt & Whitney has been awarded a contract modification to align the F135 engine System Development and Demonstration (SDD) program with the F-35 Joint Strike Fighter schedule plan. The modification extends the original SDD contract by 16
1,000 crimes caught on camera; Plan unveiled to extend system.
Newspaper article from: Birmingham Evening Mail (England) December 28, 2000 700+ words
Byline: MARTIN BANKS MORE than 1,000 shoplifters and muggers have been trapped by cameras in Birmingham during the last two years, it was revealed today. A total of 1,014 arrests have been made in the two-years to the end of the last month using the crime-busting network of CCTV cameras that scan
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