OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Phil Reynolds (preynoldsRIDGEWAYSYSTEMS.COM)
Date: Thu Nov 29 2001 - 03:43:05 CST

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

    The normal behaviour is for the client to call CoInit... otherwise they
    wouldn't have called your in-proc object in the first place.

    The only times you need to do it in a DLL is when you are
    either:
    interfacing between a legacy app and COM code (do what you like, it isn't
    going to cope with all the horrors of the original code:)
    or:
    when your in-proc object needs a worker thread (you are responsible for
    ending the thread when the object(s) using it have been released)

    > -----Original Message-----
    > From: Tony Burns [mailto:ml_atlSYNERG-STUDIOS.COM]
    > Sent: 29 November 2001 01:30
    > To: DCOMDISCUSS.MICROSOFT.COM
    > Subject: Re: [DCOM] CoInitializeEx
    >
    >
    > Do I need to call CoInitializeEx from inside the DLL or the client?
    >

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