For your first question:
1) Start Visual Studio 2005 (or any of the Express versions)
2) Open your project, or create a new project
3) Go to the "Project" menu and select "Add Reference.."
4) Click on the "Browse" tab of the "Add Reference" dialog
5) Browse to the "AdvImgLib.dll" file under the "VB6 DLL" sub-folder
6) Click "OK" to add the file to your project
7) You'd declare a new variable like this:
Dim objAIL As New AdvImgLib.cAdvancedImagery
8) Make sure to distribute the "AdvImgLib.dll" and "FreeImage3.dll"
file with your application. You can put them in your
application's /BIN/ sub-directory, or put them in the WINDOWS/SYSTEM
folder. Make sure to register the AdvImgLib.dll file using
REGSVR32.EXE since it is a COM library.
==========
Do answer your second question, the "FreeImage3.dll" file is located
in the "_FreeImage Library" sub-directory. The "FreeImage2.dll" file
is no longer distributed with the "Advanced Imagery Library" because
as of the last release, it is no longer supported (it's very old and
out-dated).
Hope that helps,
- Kevin
> Hi Kevin
>
> Thanks for your help.
> When I try to refer to the AdvImgLib.dll, the Visual studio says
> this isn't a valid assembly or COM object. I tried the same with
> the other .dll in the subfolder "Compatibility".Visual Studio
> doesn't even list the .dll under the COM tag when I put the files
> in the system32 folder.
>
> And my last question: where do I get the Freeimg2.dll?
>
> best regards
>