Black Ice Software
August Developer Newsletter
Volume 11, Issue 8 - August, 2007
The BLACK ICE NEWSLETTER is published by Black Ice Software, LLC. The contents of this newsletter in its entirety are Copyright © 2007 by Black Ice Software, LLC. 292 Route 101, Salzburg Square, Amherst, NH 03031, USA. Black Ice Software, LLC. does hereby give permission to reproduce material contained in this newsletter, provided credit is given to the source, and a copy of the publication that the material appears in is sent to Black Ice Software at the above address. Phone: (603) 673-1019 Fax: (603) 672-4112 sales@blackice.com www.blackice.com

How to Use Black Ice CAB Files

There have been a couple of questions about using CAB files. This article summarizes the answers about them.

If one wants to create an own website on the one’s server, and the html pages use some of the Black Ice controls, here are some things that could help during the development.

1. The .lpk, .cab, and .html or .htm files must be in the server.

2. These files must be in the same directory.

3. The references to .cab files could be relative or direct, but the reference to the .lpk file must be direct as in the following sample code snippet:


<object classid="clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
<param name="LPKPath" value="http://127.0.0.1/Image.lpk">
</object>

<object id="BIDISP" width=100% height=100%
classid="CLSID:19B50C95-6BB5-4DFD-B20C-5B9A61FA1C0D"
codebase="http://127.0.0.1/Image.cab"></object>

<object id="BITIFF" width=0 height=0
classid="CLSID:2324B5B7-D3EF-464C-BB35-06EFF8F11EB3"
codebase ="./Image.cab"></object>


4. For example the Black Ice Image.cab contains the BiThumbnail.dll and ocx. This control was developed with Visual Studio 2005, so it uses some of the .NET dlls. If the client browser tries to load this cab file it will require for these .NET dlls, so the .NET framework (or at least the vcredist_x86.exe) must be installed on the client’s machine.

More examples may be seen in the Internet Imaging samples which are included in the Document Imaging SDK and Image SDK.