Re: edit protection



Thanks
I have two quaries:
I created GUI that has one main GUI and related some other
..fig files (like file1.fig, file2.fig …). All the figure
files have the corresponding .m files (like maingui.m,
file1.m file2.m …). So to create the exe file I use the
command as

mcc –m maingui.m file1.m file2.m …

and it will create maingui.exe and we can work with .exe
file. But at the same time all .m files and .fig files will
be stored in the auto generated folder in the directory:
matlabdirectory\maingui_mcr\maingui.
where the .m files contains the codes. Is there any
possibility to retrieve the original codes from those .m files?

Secondly, I created .p files can be created from .m files.
But I don’t know how to run the .p files. Can you clarify?
Thanks

Walter Roberson <roberson@xxxxxxxxxxxx> wrote in message
<39Krk.208794$gc5.5307@pd7urf2no>...
dip wrote:

I want my programs(GUI) cannot be edited by other users.
the editing of the programs should be fully under my
control. How it can be done?

What you did already, compiling to a .exe, achieves that aim.
You are allowed to distribute the .exe to anyone, even if they
do not have matlab. However, in order to run your .exe
they will
have to install some matlab libraries that are about 150
megabytes
(independent of how complex your GUI was.)

If you are distributing code to people who already have Matlab
installed, then you can use the pcode command to convert your
.m files into .p files that people effectively cannot edit.
Note: if you used GUIDE to create your GUI then GUIDE
would have
created a .fig file describing the details of your GUI,
possibly
including some parts of the code itself. That .fig file is
really
a matlab .mat file under a different name, and you cannot
use pcode()
on a .fig file. Thus, if you want to prevent the user from
getting
at the details of your GUI then you either need to use the
compiler
or you need to pcode code that was *not* built with GUIDE.

--
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end

.



Relevant Pages

  • Re: CFrameWnd::LoadFrame cause insufficient memory error
    ... LocalSystem account did not have the privileges necessary to open the file, ... If you are launching a GUI app, you need to rethink why you are doing it at all. ... >But the service calls an .exe with a command line parameter, ... >>>the account that can access to the protected directory. ...
    (microsoft.public.vc.mfc)
  • Seeking advice on testing GUI exe
    ... GUI Matlab applications. ... Matlab GUI exe. ... The batch file starts a ...
    (comp.soft-sys.matlab)
  • Creating Scheduled Task
    ... I created a scheduled task to run an exe from a network share,that has a ... Then I change my profile and login as another user. ... The task is carried out on schedule and the exe is loaded and can be seen in ... But the problem is that the GUI is not displayed. ...
    (microsoft.public.security)
  • how I have an exe matlab program?
    ... How I can transform a mfile or (gui) program to (exe) program? ...
    (comp.soft-sys.matlab)
  • please help to me!!!!!!
    ... How I can transform a mfile or (gui) program to (exe) program? ...
    (comp.soft-sys.matlab)