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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LIB.EXE / EDITBIN.EXE etc...

Status
Not open for further replies.

Milby7

Programmer
Dec 5, 2003
67
GB
Hi,

I'm trying to mess around with already built import libraries e.g. remove symbols etc. i can't even figure out how to get a list of the symbols that a library contains in the first place!

MSDN isn't all that helpfull & I've been looking on the Web, but had no luck, so if you know of any good tutorials then please let me know!!

Thanks!!
 
I've found out how to list object modules within the library & extract them (see below), but i need to remove a few functions that exist within the library, such as DllMain. I need my own DllMain in the dll that i'm creating (importing the library(s) into). Plus a couple of others.

@ the command line:

lib name.lib /list:result.txt

(gives you a list of object modules present in the library)

lib name.lib /extract:name.obj /out:result.obj

(extracts the specified object module from the library)

Does anyone know how i could edit the obj file? Or maybe i'm going about it all wrong!?!?

Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top