Run Time Error 91
Posted on 2001-06-26
I have an application with 2 projects: an exe and an ActiveX DLL project.
The DLL contains some classes.
These 2 projects are in 2 different directories.
I grouped these 2 projects (in group1.vbg) and I developed an application that run very well.
But when I generate an exe file from the exe project and a dll file from the ActiveX project the things don?t work.
I have registered the dll with regsvr32 and I have referenced this dll in the exe project.
When I run the program I get Run Time Error 91 (Object variable or with block variable not set), when the program tries to instantiate a class from dll for the first time.
Why did I get this error? Is it something like I haven?t set a path to the other directory with dll files?
MSDN help tells that the error occurs when it isn?t a reference to BOT project (ActiveX DLL project). But I have the reference to BOT project.