Re: How to tell if a compiled DLL was created with .NET

From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 05/12/04


Date: Thu, 13 May 2004 00:36:35 +0200


>If a DLL is created with .NET, how can you find out if it is created with .NET

If you mean from C++, see "Interoperability", "Is there any way to
find out if a given DLL is managed or unmanaged without trying to load
it?" at

http://msdn.microsoft.com/library/en-us/vcmex/html/vcconmanagedextensionsforcfrequentlyaskedquestions.asp

>and whether it has a strong name, etc.

Mscoree.dll exports a bunch of functions for working with strong
names. See StrongName.h in the .NET Framework SDK include directory.

Mattias

-- 
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Relevant Pages

  • RE: 193 Is not a valid application. ERROR_BAD_EXE_FORMAT
    ... DLL and what the OS can load. ... Another cause is missing exports from other ... > I have no idea why I get this error or what it means since the .exe is ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Exporting function from an .exe to be used by loaded .dll
    ... CE will only load and resolve exports from a module with the IMAGE_FILE_DLL ... This design won't work under CE. ... > exports one function and the dll uses it. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: running a service/driver/application upon startup
    ... debug version of the image is too large to load onto the device. ... I ran dumpbin/exports on the finger dll and saw the required function names: ... > theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.cpp)