I'm attempting to write a VB app that controls another program via automation. When I attempt to launch the program to be controlled I get the following error:

Error Number = -2147221163
Error Message = Automation error

The error occurs as soon as I execute the following line of code:

Set hApp = New Redi.Application

It appears that it may have something to do with the registry but I have no idea how to track it down. Any help or suggestions on debugging this problem will be appreciated.

Thanks,

Dave Wacker