Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.17/5 (4 votes)
See more:
Hi friends,

I need to read the file contents from the dll file using java or C#. That dll content which i am going to include in my project but i dont know how read it. Any one can help me to know the file content of the dll file.

Any answers could be appreciated..

thanks in advance..

regars,

Sasi
Posted

I don't think you understand what are you asking about. The DLL is in an executable file format; this is not data you could "read" in any sensible way. OK, you can read it as a chunk of binary data and even parse the content, but it does not mean you can use it.

However, a DLL file may or may not contain some resources you could extract if that is what you are after.

Also, the native Windows DLL file is foreign to both .NET (speaking of C# projects) and Java. You can only use it in .NET via P/Invoke and in Java via JNI.

See:
http://en.wikipedia.org/wiki/PInvoke[^],
http://en.wikipedia.org/wiki/JNI[^].

—SA
 
Share this answer
 
v2
Why don't you try Reflections

MSDN Reflection Overview[^]
C# .Net Tutorial Reflection[^]
reflection-examples[^]
Finally on CP we have A .NET assembly viewer[^]

Hope it helps..
 
Share this answer
 
Comments
the headless nick 29-Aug-11 2:09am    
thanks:))
A lot depends on the type of dll this is. If it is .net then simply adding it to a solution should make the api visible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900