locked
building a DLL with a reference to activeX EXE RRS feed

  • Question

  • User-748188285 posted

    I built my first DLL with Visual Studio 2008 in Basic.

    That works OK.

    I have added  an activex EXE  as a reference to the project.

    Which comes out to be    Interop.myOther.dll

    When I get toline

    objDLL = New myOther.myClass

    The DLL crashes with

    "Object reference not set to an instance of an object"


    I have tried several things.

    What do I need to do to get around this problem?


    TIA

    shall42



    Friday, April 27, 2012 2:39 PM

Answers

  • User1831057476 posted

    So, there is only one option remains. Need to figure out where exactly it gets removed from Application. I would say use some kind of logger to log at different events, whether there is any value for ActiveX Exe or Interop.MyOther.dll of application.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 30, 2012 5:09 PM

All replies

  • User1954304945 posted

    Hi, please try the following codes:

    Dim objDLL As Interop.myOther.myClass

    If the issue persists, please set breakpoints to your codes and check whether you can access “Interop.myOther.myClass” properly.

    Sunday, April 29, 2012 10:40 PM
  • User-748188285 posted

    I do not have that option to set as

    " Interop.myOther.myCLass"

    Monday, April 30, 2012 5:04 PM
  • User1831057476 posted

    So, there is only one option remains. Need to figure out where exactly it gets removed from Application. I would say use some kind of logger to log at different events, whether there is any value for ActiveX Exe or Interop.MyOther.dll of application.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 30, 2012 5:09 PM