comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: embedding resources in runtime application
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: embedding resources in runtime application [message #49650] Wed, 09 August 2006 09:32 Go to next message
JeremyFaden is currently offline  JeremyFaden
Messages: 8
Registered: March 2005
Junior Member
Thanks, Ben, that's helpful. I was thinking about this earlier, too.
Rarely do you get an executable file by itsself, so it seems reasonable
that I'd have to install the resources separate from the .sav file as
well.

Jeremy


Ben Panter wrote:
> JeremyFaden@gmail.com wrote:
>> Is it possible to embed resources (arbitrary data) into an IDL runtime
>> application? We're in the process of adapting an existing application
>> to run on the IDL virtual machine, and we make use of ascii files to
>> store tables configuration information for third-party plug-in modules.
>> I realize we could go through and convert these into IDL routines, but
>> this is a large code base and we'd like to minimize changes for us and
>> third parties. Also I notice in the IDLDE projects, there is a "Data"
>> folder which might fit my intent, but I can find no reference to how
>> this is used.
>>
>> Thanks in advance.
>> Jeremy Faden
>>
>
> Hi Jeremy,
>
> I'm a VM novice myself, I'm not sure if I have the wrong end of the
> stick but I use it to read in (and write) ASCII, fits and sav files with
> no problems - just as long as you distribute the ASCII with the program
> and the path is unchanged you should have no problems. You might want to
> think about putting a subdirectory called 'DATA' under the one that the
> VM .sav file sits in, and referring to it with relative paths?
>
> cheers,
>
> Ben
>
> --
> Ben Panter, Garching, Germany.
> Email false, http://www.benpanter.co.uk
> or you could try ben at ^^^^^^^^^^^^^^^
Re: embedding resources in runtime application [message #49652 is a reply to message #49650] Wed, 09 August 2006 08:16 Go to previous messageGo to next message
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
JeremyFaden@gmail.com wrote:
> Is it possible to embed resources (arbitrary data) into an IDL runtime
> application? We're in the process of adapting an existing application
> to run on the IDL virtual machine, and we make use of ascii files to
> store tables configuration information for third-party plug-in modules.
> I realize we could go through and convert these into IDL routines, but
> this is a large code base and we'd like to minimize changes for us and
> third parties. Also I notice in the IDLDE projects, there is a "Data"
> folder which might fit my intent, but I can find no reference to how
> this is used.
>
> Thanks in advance.
> Jeremy Faden
>

Hi Jeremy,

I'm a VM novice myself, I'm not sure if I have the wrong end of the
stick but I use it to read in (and write) ASCII, fits and sav files with
no problems - just as long as you distribute the ASCII with the program
and the path is unchanged you should have no problems. You might want to
think about putting a subdirectory called 'DATA' under the one that the
VM .sav file sits in, and referring to it with relative paths?

cheers,

Ben

--
Ben Panter, Garching, Germany.
Email false, http://www.benpanter.co.uk
or you could try ben at ^^^^^^^^^^^^^^^
Re: embedding resources in runtime application [message #49711 is a reply to message #49650] Thu, 10 August 2006 18:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JeremyFaden@gmail.com writes:

> Thanks, Ben, that's helpful. I was thinking about this earlier, too.
> Rarely do you get an executable file by itsself, so it seems reasonable
> that I'd have to install the resources separate from the .sav file as
> well.

ProgramRootDir from the Coyote Library was written specifically
to make this kind of operation easier.

http://www.dfanning.com/programs/programrootdir.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading and writing with assoc
Next Topic: relative path from one absolute path to another?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:34:31 PDT 2025

Total time taken to generate the page: 0.32063 seconds