Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is a 'warper program'?
Message
From
29/11/1999 12:14:38
 
 
To
29/11/1999 11:31:38
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00295884
Message ID:
00296411
Views:
23
Sigh....you guys have it all wrong.....

A "warper" program is what the Daystrom Institute was working on at Utopia Planetia on stardate 46785.4


>Hi David,
>
>>Let's hear *your* definition of a wrapper -- with examples, including one that deals with "existing code".
>
>Say you have a prg with two function in it. This would be a wrapper for that PRG:
>
>
define class MyWrapper as Custom
>name = MyWrapper
>
>procedure Init
>    set procedure to MyPrg.Prg
>endproc
>
>procedure Func1
>    return Funct1InMyPrg
>endproc
>
>procedure Func2
>    return Func2InMyPrg
>endproc
>enddefine
>
>There, that wraps a new object interface to existing code with out changing the exisitng code at all. The old code shouldn't be changed, then your not wrapping, your modifing, and most of the times it can't be, either, its not accesible, or it needs to backward compatible.
>
>Another exapmle would be a wrapper to an ActiveX (a subclass, or third object that controls it externally) , where you can't play with other code, and there are too many Gory Details to do everything over each time you need it.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform