Off the top of my head

//c++
HANDLE h = LoadLibrary(strDllName);
void *p = GetProcAddress(h, "DllGetClassObject");
if (p == NULL)
{//managed}
else
{//un managed}
UnloadLibrary(h);

> -----Original Message-----
> From: Andrew Cherry [mailto:[EMAIL PROTECTED]
> Sent: 04 December 2003 00:31
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] How to identify a COM DLL as being
> managed...
>
> I'm trying to plan a separate mechanism for extending an
> existing COM add-in architecture so that at run time a
> separate code branch can be taken if a desired COM object is
> managed rather than unmanaged.
>
>
>
> I know that mscoree.dll is listed for managed dlls, but is
> there any other way to determine if a requested DLL is
> managed rather than unmanaged?
>
>
>
> Thanks,
>
> Andrew
>
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> Some .NET courses you may be interested in:
>
> Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
> http://www.develop.com/courses/gaspdotnetls
>
> Guerrilla .NET, 8 Dec 2003, in Los Angeles
> http://www.develop.com/courses/gdotnet
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

Guerrilla .NET, 8 Dec 2003, in Los Angeles
http://www.develop.com/courses/gdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to