Re: [ADVANCED-DOTNET] Assembly Load

2007-02-05 Thread J. Merrill
The following article says that the rule "dllMain must not access the CLR" is still in force in Visual C++ 2005 -- so I don't know that you can do anything useful there. http://msdn2.microsoft.com/en-us/library/ms173266(vs.80).aspx Good luck At 05:01 AM 2/5/2007, Amrender Singh wrote (in p

Re: [ADVANCED-DOTNET] Assembly Load

2007-02-05 Thread Amrender Singh
am using \CLR:OldSyntax crl. > Date: Fri, 2 Feb 2007 15:19:44 -0500> From: [EMAIL PROTECTED]> Subject: Re: > [ADVANCED-DOTNET] Assembly Load> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> > > At 12:38 PM 2/2/2007, Amrender Singh wrote (in part)> >My assembly needed a

Re: [ADVANCED-DOTNET] Assembly Load

2007-02-02 Thread J. Merrill
At 12:38 PM 2/2/2007, Amrender Singh wrote (in part) >My assembly needed a notification internally when some other assembly load my >assembly. > >I have tried initializing in dllmain , but for some reason after migrating >from .net1.1 to .net 2 my dllMain function doesn't get called. Any suggesti

Re: [ADVANCED-DOTNET] Assembly Load

2007-02-02 Thread Amrender Singh
doesn't get called. Any suggestion welcome. Thanks anyway. > Date: Fri, 2 Feb 2007 18:17:29 +0100> From: [EMAIL PROTECTED]> Subject: Re: > [ADVANCED-DOTNET] Assembly Load> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> > > Hi Amrender,> > On 2/2/07, Amrender Si

Re: [ADVANCED-DOTNET] Assembly Load

2007-02-02 Thread Arne Janning
Hi Amrender, On 2/2/07, Amrender Singh <[EMAIL PROTECTED]> wrote: I need to perform few initialization steps on assembly load. How/which event/method can I use/override when my MC++ assembly is loaded in another C# app. Doesn't the AppDomain.AssemblyLoad-Event work for you? http://msdn2.micr

Re: [ADVANCED-DOTNET] Assembly Load

2007-02-02 Thread Efran Cobisi
Hi Amrender, I think you could place your initialization code inside the DllMain function of your assembly. Take a look at this MSDN page: http://msdn2.microsoft.com/en-us/library/ms173266(vs.80).aspx HTH, Efran Cobisi http://www.cobisi.com Amrender Singh wrote: I need to perform few initial

[ADVANCED-DOTNET] Assembly Load

2007-02-02 Thread Amrender Singh
I need to perform few initialization steps on assembly load. How/which event/method can I use/override when my MC++ assembly is loaded in another C# app. Thanks _ Get the new Windows Live Messenger! http://get.live.com/messenger/