|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Manish Kumar Sinha (msinha_at_QUARK.CO.IN)
Date: Wed Jan 29 2003 - 04:39:49 CST
Hi All,
to check the behaviour of DllMain ( at the time of registeration and Loading
),
I've put a Message box, which will pop up each time DllMain is called.
Now what i observer is this
At the time of registeration( 2 calls to DllMain goes, as the Message Box
comes twice ).
Although i was expecting only one call to DllMain at the time of
registeration( due to the RegSvr32 call, which in turn
call DllRegisterServer method ),
but then why the other call was made to DllMain ????
At the time of loading dll( Again 2 call to DllMain goes )
As soon as i create an instance of my dll ( com dll ) using
CoCreateInstance,
the message box pops up twice.
Even if i put a check on Module Lock count ( by using getLockCount ), before
calling message box,
The message box comes twice while the very first call to dll goes ( at the
time of Instance creation ),
Can someone explain me this behaviour ??
regards
Manish
----------------------------------------------------------------
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-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]