Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protecting class file
Message
From
22/07/1998 06:30:54
 
 
To
21/07/1998 19:45:58
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00119947
Message ID:
00120071
Views:
20
>I want to make class file that can't be modified by other..
>is there anyway???
>
>or anyother file that are in the project..

You can compile the project into an app or EXE and make that available to other people; once compiled, it can't be modified or broken up into its component parts without using a tool like REFOX to extract the source code. You can also in the case of a class library remove the visible source code from the Method memo field (the class library is an adaptation of the .DBF file format); this will make the class usable but will make it unmodifiable without going back to the original or extracting source as above.

If you want to make the components of a project visible but in a read-only form, you can flag the files as Read-Only, blocking people from modifying them, but the Read-Only flag can be removed at the operating system level. A number of options exist to control access to the attributes of a file; under NT (or Win95 in a network with user-level sharing permissions enabled, controlled by an NT domain or Novell file server user list) you can make files (NT only) or directories (Win95/98/NT) available with different permissions on a per-user basis; only users with at least Change permissions for the file or directory can alter the read-only attribute of that file or directory, making this about as secure a mechanism as you'll encounter without compilation.

hth,

Ed
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