Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding codes in .app file

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
Hi guys!

I have a client where i developed a web application for him that uses FoxWeb server. It's pure FoxPro 9 applicaiton with hybrid html.

what i want to do, is move my "core" codes from the scripts and i want to put them in a non-visible to the eye type format.

so, i created a class, i called it PortalClass, put it in a prg and all is working fine now still.

Now, i do NOT want my client to see my "codes" in the PortalClass.prg.

can I turn PortalClass.prg into a PortalClass.app?

Then, how can i call/init my classes inside the PortalClass.app from his scripts/prgs without exposing my codes?

i hope i made sense in this post.

Ali Koumaiha
TeknoPCS Inc.
Dearborn heights, MI 48127
 
Check NEWOBJECT() function in HELP.
If that function is not available (you are using OLDER version of VFP) Check SET CLASSLIB command.

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
Hi Ali,

What exactly do you mean by your "codes"? Do you mean source code? But then if you don't want the client to see the source code, why would you give hime a PRG?

That said, running an .APP from within VFP is straightforward. Just DO the file, just as if it was a PRG.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
It worked.

I just put the fxp file in there..

in his prg, i did:

set procedure to (my fxp) additive
oPortal = CreateObject("PortalClass")

voila!


Ali Koumaiha
TeknoPCS Inc.
Dearborn heights, MI 48127
 
i was going to suggest just distributing the fxp files but also want to mention about throwing the ENCRYPT flag to the COMPILE command. leaving the resultant fxp not only tokenized but encrypted as well.

Steve Bowman
Independent Technology, Inc.
CA, USA
 
Steveb7,

that's exactly what i did.

:)

Ali Koumaiha
TeknoPCS Inc.
Dearborn heights, MI 48127
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top