PDA

View Full Version : Suggestion or example



NewsArchive
02-08-2006, 11:59 AM
Friedrich,

Was just discussing something in IRC and many Clarion built applications are
built stand-alone as opposed to local. In such instances, any required DLLs
are needed by the application (whether the developer made them or part of
the RTL).

This information is in every <appname>.shp text file. Is there a scripting
example or function that can read this text file and place the required DLLs
in a destination area? There is also an embed so you can place your own
comments in there, so other resources may be mentioned in addition to DLL
and LIB files.

--
Russ Eggen
www.radfusion.com

NewsArchive
02-08-2006, 11:59 AM
Russ,

I already have an (internal) function to support Clarion ship lists, but I
have never completed that function.

For example, the following ship list:

___ Executable Program: ar.EXE

___ HNDZLIBX.DLL - The Clarion Handy Tools 32-Bit Compression Library is
- dynamically loaded when your application calls any CHT
- compression methods in HNDSQUEEZ.INC/CLW. If no
- compression methods are called you do not need to ship
- this library, otherwise, the HNDZLIBX.DLL must be
- shipped even with programs compiled in LOCAL mode.

___ TPSFIX.EXE

___ AUTONET.EXE

The compiler has no idea where HNDZLIBX.DLL is located. The ship list
does not include a fully qualified pathname. So where to look for
HNDZLIBX.DLL? \3rdparty or \Bin folder, etc.

Do you have any suggestion on how to solve this problem?

Thanks,
Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
02-08-2006, 11:59 AM
Good points. Can you read the RED file? Also, a suggestion to SV to place
the full patch and file name would be an improvement.

Another suggestion is in the setup options for SB5. Entries for
distributable runtimes and resources. Default would be C:\Clarion6\bin and
C:\Clarion6\lib. Might add some conditional entries to search for in case
the defaults (or the user's overrides) fail to find the required DLL (as in
the case of 3rd party DLLs, like C3PA compliant tools).

--
Russ Eggen
www.radfusion.com

NewsArchive
02-08-2006, 11:59 AM
Yes, a "default search folder" option should be possible. I'll investigate
it further.

Friedrich

NewsArchive
02-08-2006, 11:59 AM
Whatever you do, just keep it off by default.

With multiple DLL's and multiple projects being distributed at different
levels, I control the DLL's myself by just placing them into a distribution
folder. I have a Project Distribution program which I run before any
compile which moves the correct objects to the corresponding application
distribution folder. I'd rather have full control over it - Plus, I found
that the Ship List is never complete anyway - I think it doesn't include the
HTML Help DLL for example.

-Robert

NewsArchive
02-08-2006, 12:00 PM
Okay, thank you Robert.

Friedrich

NewsArchive
02-08-2006, 12:00 PM
The problem is I've found SHP to be incomplete at least 75% of the time.

The Clarion project info is put there and I believe 3rd party developers can
ad items to the shiplist, but there always seems to be a dependency that is
missed..

paul macfarlane

NewsArchive
02-08-2006, 12:00 PM
Interesting... Thanks Paul.

Friedrich

NewsArchive
02-09-2006, 01:09 AM
The ship list includes only DLLs the current app sees. It won't see a DLL
required in a prior DLL for example.

This is why I used the embed to list *all* DLLs needed, whether or not
everything is there. Which is how I won't let an incomplete ship list even
slow me down. The DLLs I need (including the 3rd party tools I use) always
list their relevant DLLs, so you will understand my skepticism about 75%
incomplete.

--
Russ Eggen
www.radfusion.com

NewsArchive
02-09-2006, 01:09 AM
Interesting idea, but it does take work on your part...
I think someone (maybe Handy) has a template called 'Add to Shiplist'.....

The Watch function in SB seems to catch most all as long as you put an app
through it's paces.....

Testing is really the only guarantee...

NewsArchive
02-09-2006, 01:09 AM
Legacy and ABC have a global embed point called "Inside the shipping list".
You can put anything you want in there, which will appear in the SHP file.
For grins, I once pasted Dr. Suess' "Green Eggs and Ham". Clean compile
<vbg>.

--
Russ Eggen
www.radfusion.com

NewsArchive
02-09-2006, 01:10 AM
<G>

paul macfarlane

NewsArchive
02-09-2006, 10:17 AM
Thanks - I will add it to iQ-XML.

-Robert