Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing DLLs in C++ Builder

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
Hallo.
I'm afraid this is something that I have absolutely no experience of, however...
I need to edit a DLL (originally written in VC++) that contains a load of functions for a hand-held scanner.
My problem is, I have never done anything like this before, so would really appreciate any advice I can get as to how to proceed - my client wants a fairly quick resolution.
Also - would I be better trying to edit the DLL in VC++?
I have a copy, but am a total M$-phobe & never really got to grips with it - I still can't figure where they get the "Visual" bit of Visual C++ from!
Any & all help, advice, & sage wisdom gratefully received,
Douglas JL.

Common sense is what tells you the world is flat.
 
You can't edit a DLL directly. A DLL is just a compiled object file that allows a program to run functions from it in real time. To re-create the DLL file, you'll need the source code for it.

What I say isn't completely true...you could back engineer it. With the import library and definition files, you could figure out where in the dll each function begins, then strip out the assembled data, reverse assemble it to get the assembly (which usually doesn't work well), then modify the assembly and attempt to recompile it. I don't recommend doing this unless you have a lot of time on your hands. See if you can get the c/c++ code.

I know what you mean, I guess it's visual because it runs in windows. *grin*

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top