OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Hemadri Anand (vhemadriYAHOO.COM)
Date: Wed Oct 03 2001 - 01:52:54 CDT

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

    try implementing the objectcontrol interface, and in the activate event try
    using this excerpt of code
    <code>
    private sub objectcontrol_activate()
    Set ctxObject = GetObjectContext()
    end sub
    </code>

    ----- Original Message -----
    From: "Preethi Hegde" <preethihegde1YAHOO.COM>
    To: <DCOMDISCUSS.MICROSOFT.COM>
    Sent: Wednesday, October 03, 2001 12:02 PM
    Subject: Error 91: Object Variable or With Block variable not Found

    > 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

    _________________________________________________________
    Do You Yahoo!?
    Get your free yahoo.com address at http://mail.yahoo.com

    ----------------------------------------------------------------
    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