OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: J.M. GIRALDE (jmgirFAGORAUTOMATION.ES)
Date: Fri Jun 15 2001 - 08:23:09 CDT

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

    W95, VC++ v. 5.0

    Calling CoCreateInstance this way:
                    CoCreateInstance(clsid, NULL, CLSCTX_ALL |
    CLSCTX_REMOTE_SERVER,
                            IID_IUnknown, (void **)&lpUnknown)

    It returns E_INVALIDARG, but if I call it without CLSCTX_REMOTE_SERVER flag:

                    hResult = CoCreateInstance(clsid, NULL, CLSCTX_ALL &
    ~CLSCTX_REMOTE_SERVER,
                                    IID_IUnknown, (void **)&lpUnknown)

    It works properly. What is going on? It seems my system has not the right
    configuration. If you can give me any clue could be great.

    jmgir.

    ----------------------------------------------------------------
    Users Guide http://msdn.microsoft.com/workshop/essentials/mail.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