From: Nate Dudenhoeffer on 27 Jul 2010 07:53 What is the correct syntax to use for a BeginPackage statement for a package which is to be deployed in player pro? For a standard package I use BeginPackage["toplevel`", {"anotherpackage`","anotherpackage2`", "lanotherpackage3`"}], which requires that the packages all be somewhere on the $Path variable, and be saved as *.m. The problem I have is once they have been saved using Encode[], I am no longer able to load them with this syntax. Thanks, Nate
From: Albert Retey on 28 Jul 2010 02:54 Hi, > What is the correct syntax to use for a BeginPackage statement for a package > which is to be deployed in player pro? > > For a standard package I use BeginPackage["toplevel`", > {"anotherpackage`","anotherpackage2`", "lanotherpackage3`"}], > which requires that the packages all be somewhere on the $Path variable, and > be saved as *.m. The problem I have is once they have been saved using > Encode[], I am no longer able to load them with this syntax. I don't understand what your problem is, I use this syntax all the time and just have checked that it still works. Are you sure that everything else is alright: are all files at the right place and are all encoded? Note that $Path has a different value in Player Pro than in Mathematica, so you most probably will need to install the files in a different directory than for Mathematica... hth, albert
From: David Bailey on 31 Jul 2010 02:39 On 27/07/10 12:53, Nate Dudenhoeffer wrote: > What is the correct syntax to use for a BeginPackage statement for a package > which is to be deployed in player pro? > > For a standard package I use BeginPackage["toplevel`", > {"anotherpackage`","anotherpackage2`", "lanotherpackage3`"}], > which requires that the packages all be somewhere on the $Path variable, and > be saved as *.m. The problem I have is once they have been saved using > Encode[], I am no longer able to load them with this syntax. > > Thanks, > Nate > You use the standard package syntax, but you must encode the package with Encode for use with PlayerPro - otherwise it will just fail to load! David Bailey http://www.dbaileyconsultancy.co.uk
From: Nate Dudenhoeffer on 1 Aug 2010 04:56 Thanks for the suggestions. This is working fine now. I had erroneously saves the files as .mx after encoding, which needless to say didn't work. Nate On Sat, Jul 31, 2010 at 1:39 AM, David Bailey <dave(a)removedbailey.co.uk>wrote: > On 27/07/10 12:53, Nate Dudenhoeffer wrote: > > What is the correct syntax to use for a BeginPackage statement for a > package > > which is to be deployed in player pro? > > > > For a standard package I use BeginPackage["toplevel`", > > {"anotherpackage`","anotherpackage2`", "lanotherpackage3`"}], > > which requires that the packages all be somewhere on the $Path variable, > and > > be saved as *.m. The problem I have is once they have been saved using > > Encode[], I am no longer able to load them with this syntax. > > > > Thanks, > > Nate > > > You use the standard package syntax, but you must encode the package > with Encode for use with PlayerPro - otherwise it will just fail to load! > > David Bailey > > http://www.dbaileyconsultancy.co.uk > >
|
Pages: 1 Prev: Disable save in player pro Next: SetAttributes for entire package |