Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2974 > unrolled thread
| Started by | james@multiexpress.com |
|---|---|
| First post | 2012-02-17 10:23 -0800 |
| Last post | 2012-02-21 10:53 +1100 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Portable resource paths and compiler output paths? james@multiexpress.com - 2012-02-17 10:23 -0800
Re: Portable resource paths and compiler output paths? "richard.townsendrose" <richard.townsendrose@gmail.com> - 2012-02-18 02:28 -0800
Re: Portable resource paths and compiler output paths? james@multiexpress.com - 2012-02-20 09:09 -0800
Re: Portable resource paths and compiler output paths? Massimo Bighelli <info@arcasistemi.it> - 2012-02-20 23:19 +0100
Re: Portable resource paths and compiler output paths? "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-02-21 10:53 +1100
| From | james@multiexpress.com |
|---|---|
| Date | 2012-02-17 10:23 -0800 |
| Subject | Portable resource paths and compiler output paths? |
| Message-ID | <17471fa0-b442-42b0-aa04-5f1ac3d20d19@qt10g2000pbb.googlegroups.com> |
Hi all, I've been trying to make my VO projects more portable and less hardcoded to the station they're on, in case they have to be restored from a backup in future and I can't remember where everything is supposed to go. As such I've been trying to move the main resources folder into the same folder as the projects, and somehow have the path of this folder dynamic, so instead of C:\Resources it's a variable. I've been trying to use environment variables to do this e.g. %resources%\file.bmp but I've not had any luck. They work perfectly using the command prompt but VO doesn't know what to do with them it seems and just throws file not found errors. I also want to have the compiler output EXEs to a dynamic folder as well, but VO point blank refuses to have an environment variable like %compiler-output% in the Output EXE path field. Anyone have any suggestions on how this can be achieved? Thanks, James
[toc] | [next] | [standalone]
| From | "richard.townsendrose" <richard.townsendrose@gmail.com> |
|---|---|
| Date | 2012-02-18 02:28 -0800 |
| Message-ID | <59dc7549-d270-4c6f-825b-8fdcaf97e61d@do4g2000vbb.googlegroups.com> |
| In reply to | #2974 |
James the resources are held in the aef anyway so when you import from a new place it asks where you want to put the resource ... richard
[toc] | [prev] | [next] | [standalone]
| From | james@multiexpress.com |
|---|---|
| Date | 2012-02-20 09:09 -0800 |
| Message-ID | <64f084c7-d7b2-4db0-abad-8d337c6c330b@b9g2000pbo.googlegroups.com> |
| In reply to | #2976 |
On Feb 18, 2:28 am, "richard.townsendrose" <richard.townsendr...@gmail.com> wrote: > James > > the resources are held in the aef anyway > > so when you import from a new place it asks where you want to put the > resource ... > > richard In the sourcecode I have many lines such as this: resource MAAP Bitmap C:\Resources\MAAP.bmp All I want is for these to not be hard coded any more to C:\Resources but rather a variable of some sort. In previous imports I have never been prompted on a location to place these resources and I don't believe they are stored in the AEF, however I do appreciate your answer. Would really like to get this resolved if possible!
[toc] | [prev] | [next] | [standalone]
| From | Massimo Bighelli <info@arcasistemi.it> |
|---|---|
| Date | 2012-02-20 23:19 +0100 |
| Message-ID | <jhugtl$45c$1@speranza.aioe.org> |
| In reply to | #2991 |
James, when I move my project from desktop to notebook, since I have different directory config for VO, I have to search an replace all the: c:\VO28\ImgBmp\ to d:\VO28\ImgBmp\ two seconds and it's ok. As Richard said, resources are embedded Massimo Il 20/02/2012 18:09, james@multiexpress.com ha scritto: > On Feb 18, 2:28 am, "richard.townsendrose" > <richard.townsendr...@gmail.com> wrote: >> James >> >> the resources are held in the aef anyway >> >> so when you import from a new place it asks where you want to put the >> resource ... >> >> richard > > In the sourcecode I have many lines such as this: > resource MAAP Bitmap C:\Resources\MAAP.bmp > > All I want is for these to not be hard coded any more to C:\Resources > but rather a variable of some sort. In previous imports I have never > been prompted on a location to place these resources and I don't > believe they are stored in the AEF, however I do appreciate your > answer. > > Would really like to get this resolved if possible!
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2012-02-21 10:53 +1100 |
| Message-ID | <b%A0r.3435$%E2.1956@viwinnwfe01.internal.bigpond.com> |
| In reply to | #2991 |
James
> In the sourcecode I have many lines such as this:
> resource MAAP Bitmap C:\Resources\MAAP.bmp
> All I want is for these to not be hard coded any more to C:\Resources
> but rather a variable of some sort.
> In previous imports I have never been prompted on a location to place
> these resources and
Neither have I (if the directory didn't exist then the files were never
created), usually if the compiler couldn't find the resource (or it was
corrupted) is when I'd get a lot of error messages.
What I did then was create the directories required and re-import the AEF
(using a different repo) so the actual files were created (Phil had a habit
of picking odd places for his resources (IIRC about 5 different
directories)).
> I don't believe they are stored in the AEF
They are - ALL binaries (windows, icons, pix, etc...) are in the AEF.
> Would really like to get this resolved if possible!
I believe the only program that uses an internal path variable here is the
Image Editor and IIRC it defaults to
%CAVO_WHATEVERVERSION_INSTALL_DIRECTORY%\ImData
Don't remember if it actually writes that into the CLASS when it creates it
though<g>
Don't know if that's where VO27/8 defaults to but VO25/6 did IIRC (I played
around with this 8-10 years ago)
Have you tried
DEFINE ImagePath := 'C:\RESOURCES\'
Then do a find/replace on all your resources, all you need do then is adjust
the define and re-compile, making sure that the files are in the right hole
(you'll also need to update the CLASS whenever you edit the resource).
CYA
Steve
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web