Link to home
Start Free TrialLog in
Avatar of loveuajay
loveuajay

asked on

edit dll in visual studio 2008

How to edit and change code in dll file using vs 2008.


and how use it in vs2008.
Avatar of Luis Pérez
Luis Pérez
Flag of Spain image

Your question is so unspecific. Where did you get that DLL? Do you have the source code? Is it a .Net compiled assembly or a C++ native DLL?

Please give us more details if you want help from us...

Merry Xmas!
Avatar of loveuajay
loveuajay

ASKER

how find which dll is
Definitely this is not going well...
There are three type of dll's com dll, .net dll, win32 which type of dll you are referring here.

You must check the PE Header of these files. All DLL and executables, Win32 and .NET, have a PE header.

An In-Depth Look into the Win32 Portable Executable File Format

The .NET File Format

Portable Executable

and let us know which is the dll type then we can suggest how to open it.
editing a dll is not possible without it's source code, you need to recompile the dll with it's source code using visual studio.
this is link of my dll file

http://speedy.sh/gvgQd/LicenseUtility.dll
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To your question, "How to edit and change code in dll file using vs 2008.", as stated by naman_goel earlier in this thread unless you have the source code for the ell you wish to modify you will not be able to modify it.

To your question, "and how use it in vs2008", now once you have the source code and modified it, you need to follow the correct steps in using it in your .Net program. For example if it is com, C++ or .Net dll all have different step.

Most important question, Do you have the source code?
your dll is .net dll, please see the output from coflags

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>corflags C:\Users\Viaan\D
esktop\[Megafileupload]LicenseUtility.dll
Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  4.0.30319.17929

Copyright (c) Microsoft Corporation.  All rights reserved.

Version   : v2.0.50727
CLR Header: 2.5
PE        : PE32
CorFlags  : 0x3
ILONLY    : 1
32BITREQ  : 1
32BITPREF : 0
Signed    : 0

so again you need source code to edit the dll, you can check the source code by using some de-compiler tool line .net reflector.

http://www.red-gate.com/products/dotnet-development/reflector/
thanks