Share via


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 field in the Advanced Compiler Settings dialog box. This dialog box is available from the Compile page of the Project Designer.

To specify a base address for a DLL

  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 field. 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

Other Resources

Managing Compilation Properties