473,396 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

With COM DLLs you can loadlibrary and then find the entry point for DLLRegisterServer to find out if it's self-registering. If a DLL is created with .NET, how can you find out if it is created with .NET and whether it has a strong name, etc.
Nov 22 '05 #1
2 1941
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...dquestions.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.
Nov 22 '05 #2
I would suggest to take a look at PE format for .Net assemblies - by
analyzing header you can find out all these things without resorting to
reflection.

HTH
Alex

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:ul*************@TK2MSFTNGP11.phx.gbl...
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...dquestions.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.

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bron Davies | last post by:
With COM DLLs you can loadlibrary and then find the entry point for DLLRegisterServer to find out if it's self-registering. If a DLL is created with .NET, how can you find out if it is created with...
6
by: Marty | last post by:
Is there a property or method to tell you if you are running in the IDE or as a compiled exe? Thanks.
2
by: John Grandy | last post by:
Is it advisable to compile a Regex for a massively scalable ASP.NET web-application ? How exactly does this work ? Do you create a separate class library and expose the Regex.Replace() as a...
0
by: Pavils Jurjans | last post by:
Hello, I'd like to know, if there is some possiblity to see some interim code that the aspx page is "precompiled"-to, where I could see something like class test_aspx : System.Web.UI.Page {...
12
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes...
5
by: Milsnips | last post by:
hi there, i created a program and compiled it as a setup file, installed it on a computer, and within the application, it access 2 webservices on a my remote web server.. a few weeks ago the...
6
by: Rene | last post by:
Is there a way to tell if an assembly was compiled on Debug or Release mode? I tried viewing the file usin Ildasm but did't notice any special comment line or something that would tell me if it was...
5
by: Christie | last post by:
I have created a compiled HTML helpfile that I want to use in my VB.Net application. What code do I need to link this compiled file to the help button in my application?? I have created my...
7
by: UJ | last post by:
Is there a way to tell when something was compiled? (I'm trying to find a way to keep track of what 'version' the web site is and can't find anything that only changes when it's recompiled.) TIA...
1
by: dorandoran | last post by:
I created an MSI package and it works great. However, the source code aren't compiled. They show up row in the test web server. This is No No in our environment. Are there any steps that I am missing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.