Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: VB5,VB6
Expertise: Intermediate
May 20, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Rebase compiled DLLs

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):

You can find additional information about this utility on MSDN.
Francesco Balena
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date