I created an ActiveX DLL. I am currently testing this DLL and ran into the following problem.

I created a text.exe that instantiates the DLL.
When testing I can only get the DLL to work correctly when I have it opened and started on my desktop. When I just run the test.exe that I created.

Can anyone explain why my code would work as needed when the DLL is started and running and why it does not work when it isn't.