OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Preethi Hegde (preethihegde1YAHOO.COM)
Date: Wed Oct 03 2001 - 01:32:06 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi,
    I have 2 DDLs which are registered on MTS(Win NT machine).
    One DLL calls the other.
    I am trying to debug the DLLs using a standard VB6 exe program.
    But everytime when the "GetObjectContext()" is called its returning null.

    My code in the parent DLL goes like this.

    Dim ctxObject As ObjectContext
    Set ctxObject = GetObjectContext()
    'call the other DLL using the CreateInstance of the parent DLL
    Set connObj = ctxObject.CreateInstance("prjMTSTest.clsConnection")

    My VB client is on the same machine which contains MTS.
    VB client instantiates the DLL and tries to call the method.
    But i am getting the error, "Error 91: Object Variable or With Block
    variable not Found "

    why is GetObjectContext returning NULL??

    Waiting for your feedback,
    Preethi

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM