ThumbnailXpress ActiveX COM FAQ

Contact Support



Q1What DLL’s do I need to distribute with my application?
Q2How do I distribute my application in VB, Delphi, C++ etc.?
Q3How do I filter for multiple file types to load in ThumbnailXpress without having to include every file type?

Q1: What DLL’s do I need to distribute with my application?
PegasusImaging.ActiveX.ThumbnailXpress1.dll

Please Note: You must register the PegasusImaging.ActiveX.ThumbnailXpress1.dll either via your installation program or manually via the regsvr32.exe utility.

Q2: How do I distribute my application in VB, Delphi, C++ etc.?
Please note: You need runtime unlock codes in order to distribute applications. These are received when runtimes are purchased. If you have not received them you should Contact Sales.

A) Unlock Run-Time Licenses when using ThumbnailXpress at design time in VB:

1) Add the UnlockRuntime method as the first call in your application before using any other functionality in the control. For example:

ThumbnailXpress1.UnlockRuntime 1234,1234,1234,1234

2) Open the form that contains the ThumbnailXpress control.

3) Save the form and then build the EXE.

B) Unlock Run-Time Licenses when using the ThumbnailXpress control as a COM Object in VB:

1) Add a reference to the ThumbnailXpress control via Project|References.

2) Declare the UnlockControl function as follows:

Private Declare Sub TN_Unlock Lib "PegasusImaging.ActiveX.ThumbnailXpress1.dll" Alias "UnlockControl" (ByVal pw1 As Long, ByVal pw2 As Long, ByVal pw3 As Long, ByVal pw4 As Long)

3) Dim a ThumbnailXpress1 control object: Dim ThumbnailXpress1 as PegasusImagingActiveXThumbnailXpress1.ThumbnailXpress

4) Call the unlock method with your unlock codes: ControlUnlock 1234, 1234, 1234, 1234

5) Create the ThumbnailXpress1 Object: Set ThumbnailXpress1 = New PegasusImagingActiveXThumbnailXpress1.ThumbnailXpress

6) Add the UnlockRuntime and SetIXLicenseCodes methods as the first calls in your application before using any other functionality. For example:

ThumbnailXpress1.UnlockRuntime 1234,1234,1234,1234
ThumbnailXpress1.SetIXLicenseCodes 1234, 1234, 1234, 1234

C) Unlock Run-Time Licenses when using the ThumbnailXpress control at design time in Delphi:

1) Add the UnlockRuntime method as the first call in your application before using any other functionality in the control. For example:

ThumbnailXpress1.UnlockRuntime 1234,1234,1234,1234

2) Open the form that contains the ThumbnailXpress control.

3) Save the form and then build the EXE.

D) Unlock Run-Time Licenses when using the ThumbnailXpress COM Object in VC++:

1) The TN1_open.cpp is included with ThumbnailXpress to handle licensing for the COM Object. You can find TN1_open.cpp in the ThumbnailXpress VC++\Include directory.

2) In the TN_Open () function, locate the call to UnlockControl. Replace the four parameters in that call with the four registration codes you obtained when you registered ThumbnailXpress.

3) Add the UnlockRuntime and the SetIXLicenseCodes methods as the first calls in your application before using any other functionality. For example:

ThumbnailXpress1.UnlockRuntime(1234,1234,1234,1234);
ThumbnailXpress1.SetIXLicenseCodes(1234, 1234, 1234, 1234);

E) Web Client application

If you are using the control within HTML you must obtain a web license string. This web license string is received from our sales department when the web license is purchased. The web license string is passed as the parameter to the UnlockWeb method. Please refer to http://www.pegasusimaging.com/weblicfaq.htm for more information on using the control within a web environment.

Q3: How do I filter for multiple file types to load in ThumbnailXpress without having to include every file type?
Specify two or more file types in the FilenamePattern property or the SetFilterFilenamePattern method by using the following pattern syntax:

*(<extension 1>)|(<extension 2>)...

The above allows any file name with the listed extensions to be considered as part of the filter. Please refer to the specific code examples listed below where filtertest is the name of the filter.

ThumbnailXpress.SetFilterFilenamePattern filtertest, "*(.bmp)|(.jpg)"


Sitemap | © 2008 Pegasus Imaging Corporation. All Rights Reserved. | Privacy Statement.