title: Testing Active X DLL - runtime error 91 object variable or With block variable not set
body: <p>I created a skeleton Active X DLL with its Instancing property set to MultiUse and only one function which does nothing but pop up a message box saying that it has been called.</p>
  
  <p>Then I created a test program and added the DLL to its References.</p>
  
  <p>I added code to declare a variable of the DLL's Classmodule, to create a new object and to call the function.</p>
  
  <p>In all cases I used Intellisense code completion, so VB6 certainly about the DLL and it's class &amp; method.</p>
  
  <p>However, when I run the tester it reports runtime "error 91 object variable or With block variable not set" when trying to create the New object.</p>
  
  <p>This is new territory for me, so hopefully it is something obvious.</p>
  
  <hr>
  
  <p>Update:  I added a message box in a DLL fn() to say that it had been called, then went to a real life web site that uses Active X to call into the DLL and saw the message box - but I still get the error in a VB tester application(!?)</p>