This documentation is archived and is not being maintained.

FixedBaseAddress Property

Visual Studio .NET 2003

Sets or returns whether an image must be loaded at a fixed address. Exposes the functionality of the /FIXED linker option.

[Visual Basic .NET]
Public Property FixedBaseAddress() As linkFixedBaseAddress
[Visual Basic 6]
Property Get FixedBaseAddress() As linkFixedBaseAddress
Property Let FixedBaseAddress( _
   ByVal NewValue As linkFixedBaseAddress _
) 
[C++]
HRESULT __stdcall get_FixedBaseAddress(
   /* [out, retval] */ linkFixedBaseAddress* retVal
);
HRESULT __stdcall put_FixedBaseAddress(
   /* [in] */ linkFixedBaseAddress NewValue
);
[C#]
public linkFixedBaseAddress FixedBaseAddress {get; set;}
[JScript .NET]
public function get FixedBaseAddress() : linkFixedBaseAddress
public function set FixedBaseAddress(
   NewValue : linkFixedBaseAddress
)

Parameters

NewValue
A linkFixedBaseAddress value.

Return Value

Returns a linkFixedBaseAddress value.

Example

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCLinkerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCLinkerTool")
        MsgBox("Fixed base address: " & tool.FixedBaseAddress.ToString)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCLinkerTool Object

Show: