How to: Specify a Base Address for a DLL

In Class Library and Control Library projects, you can set the DLL base-address property by using the DLL base address box. This box is in the Advanced Compiler Settings dialog box (Visual Basic) or in the Advanced Build Settings dialog box (C#).

To specify a base address for a DLL (Visual Basic)

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Compile tab.

  3. Click the Advanced Compile Options button to open the Advanced Compiler Settings dialog box.

  4. The default DLL base address is displayed in the DLL base address box. Enter the hexadecimal number to use as a base address, and then click OK. You can change this value only in Class Library and Control Library projects.

To specify a base address for a DLL (C#)

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Build tab.

  3. Click the Advanced button to open the Advanced Build Settings dialog box.

  4. The default DLL base address is displayed in the DLL Base Address box. Enter the hexadecimal number to use as a base address, and then click OK. You can change this value only in Class Library and Control Library projects.

See Also

Reference

Advanced Compiler Settings Dialog Box (Visual Basic)

Advanced Build Settings Dialog Box (C#)

Other Resources

Managing Compilation Properties