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

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="">

<object id="BIDISP" width=100% height=100%

<object id="BITIFF" width=0 height=0
codebase ="./"></object>

4. For example the Black Ice 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.