G
Guest
Hello,
I can not set the LARGEADRESSAWARE linker setting using the macro suggested
by microsoft:
' add reference to Microsoft.VisualStudio.VCProjectEngine
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")
tool.LargeAddressAware = addressAwarenessType.addrAwareNoLarge
End Sub
End Module
I get "specified cast not valid" when trying to create the VCProject. I
guess it mean I can not create a c# project as a c++ project? Anyone know how
to modify the macro for c#? Or any oter suggestions how to set
LARGEADRESSAWARE inside visual studio?
Greatefull for answers
Karl Daggfeldt
I can not set the LARGEADRESSAWARE linker setting using the macro suggested
by microsoft:
' add reference to Microsoft.VisualStudio.VCProjectEngine
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")
tool.LargeAddressAware = addressAwarenessType.addrAwareNoLarge
End Sub
End Module
I get "specified cast not valid" when trying to create the VCProject. I
guess it mean I can not create a c# project as a c++ project? Anyone know how
to modify the macro for c#? Or any oter suggestions how to set
LARGEADRESSAWARE inside visual studio?
Greatefull for answers
Karl Daggfeldt