Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Rebase compiled DLLs

Total Hit ( 3353)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


Many VB developers know that they should specify a DLL Base Address value - in the Compile tab of the Project Properties dialog box - that is different from the base address of any other DLL or OCX used in the project.

When you are working with a compiled DLL or OCX for which you don't have the source code, you can change its base address using the EDITBIN utility that comes with Visual Studio (Find it in the VC98\BIN directory under the main Visual Studio directory). For example, here's how you can rebase a compiled DLL at address 12000000 hex:


EDITBIN /REBASE:BASE=0x12000000 myfile.dll

The EDITBIN utility lets you perform some other neat tricks with executable files. This is the complete list of the options it supports (use EDITBIN /? to recall this list when you need it):

   /BIND[:PATH=path]
   /HEAP:reserve[,commit]
   /LARGEADDRESSAWARE[:NO]
   /NOLOGO
   /REBASE[:[BASE=address][,BASEFILE][,DOWN]]
   /RELEASE
   /SECTION:name[=newname][,[[!]{cdeikomprsuw}][a{1248ptsx}]]
   /STACK:reserve[,commit]
   /SUBSYSTEM:{NATIVE|WINDOWS|CONSOLE|WINDOWSCE|POSIX}[,#[.##]]
   /SWAPRUN:{[!]CD|[!]NET}
   /VERSION:#[.#]
   /WS:[!]AGGRESSIVE

You can find additional information about this utility on MSDN.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.