Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile Code (Hide/Show)
Message
From
26/08/1999 09:19:05
 
 
To
25/08/1999 19:21:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257666
Message ID:
00257851
Views:
19
>I want to hide the code, so what I feel is How I can store FXP code into some file and when I required I can extract from it.
>
>I can create run time PRG and call it's function or compile and call that but It may consume some time in IO.
>

If you're willing to pay the cost to extract it at runtime, save the compiled .FXP in a memo field of a .DBF; you can copy it to a file on the user system as needed, and delete it when you're absolutely certain it's no longer needed (you'd best issue a CLEAR PROGRAM to avoid possible side-efects from code caching.

Since an FXP file can be encrypted IAC at compilation, what's the problem with just compiling the file encrypted and leaving it there? To compile MyProc.PRG, strip debug details and encrypt in, issue the command:

COMPILE MyProc.PRG NODEBUG ENCRYPTED

>
>
>
>>Hi Art,
>>
>>- You could either rename the file with a different extension to attempt to concel it
>>
>>- You could compile it into an EXE and call it the same way (set procedure to)
>>
>>Hope this helps~
>>
>>>Hi,
>>>
>>>There are two file, GetBal.FXP & Account.EXE.I want to call FXP file from EXE. I can use command like SET PROCEDURE TO GetBal.FXP ADDITIVE, and call whatever function defined in GetBal.FXP.
>>>
>>>Problem is I don't want to show this FXP file or it's code to user. Also I don't want to include this file into project.
>>>
>>>What are the best possible option for this.
>>>
>>>Thanks in Advance
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform