Brian,
How about this:
object loZipper;
try
{
}
~~Bonnie
>
You must have only one declaration of:
>>>>XceedZipLib.XceedZipClass loZipper
>>
>>
>>The best way is to declare it at most local scope level - at the same level with statements, which use it.
>>
>
>Ok, so what is the "best" (or proper way) to test for the presence of any COM library/class/component if:
>1. You can't trap for errors when it is instantiated due to scope change in try-catch.
>2. It's not good practice (nor desirable) to declare the desired object twice.
>
>Does one have to resort to checking the registry? It just sounds like a lot of work for something that I would think should be rather simple.
>
>
>- Brian