OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Michle Fernando (tech_savyREDIFFMAIL.COM)
Date: Tue Aug 28 2001 - 10:27:08 CDT

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

    Hi,
     I am facing some problem to interprate ur replay, it will be helpful if u tell me in some more detail.

    >address of your target
    >machine? because your COSERVERINFO* parameter should be =

    >a pointer to the
    >machine on which the CLSID_test object that you passed =

    >in is to be created
    >on.

    In my code I am intializing the COSERVERINFO with the name of the server =
    and the username and password of a domain user.

    If I am wrong pls. correct me.

    Michle

    On Tue, 28 Aug 2001 Eric Strain wrote :
    >Hi Michle-
    >If I've interpreted your code correctly:
    >
    > > hRetVal = CoCreateInstanceEx(CLSID_test, NULL,
    >CLSCTX_ALL,
    > > &strServerInfo, 1, strMultiQI);
    >
    >you've passed in the CLSID of the object you want to
    >create _test
    >you've declared your IUnknown* to be NULL,
    >your class context is ALL,
    >does your &strServerInfo parameter dereference to the
    >address of your target
    >machine? because your COSERVERINFO* parameter should be
    >a pointer to the
    >machine on which the CLSID_test object that you passed
    >in is to be created
    >on.
    >your code also states that you want 1 MULTI_QI
    >structures created and your
    >final parameter should be a pointer to the returned
    >MULTI_QI structure. try
    >checking the dereferenced address of your
    >&strServerInfo parameter to ensure
    >that it points to the correct machine, and ensure that
    >your final parameter
    >strMultiQI is actually a pointer to the returned
    >structure for your
    >components instantiation. Good luck,

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