HS- [Mon, 20 Dec 2004 15:32:52 +0100]:
I have to turn on /Zc:wchar_t, /Zc:forScope,
/GR for each and every project I create.)
No reason to, if you can wiz a wizard. I don't think
this "HS" is you (you wouldn't have written the above
if it were). In other words, you change the defaults
to your defaults, such as
CLtool.TreatWChar_tAsBuiltInType = 1; // 0=false, 1=true (/Zc:wchar_t)
CLtool.ForceConformanceInForLoopScope = 1; // 0=false, 1=true (/Zc:forScope)
/\/\/\/\/\/\
\/\/\/\/\/\/
HS [Mon, 16 Jun 2003 09:22:02 +0200]:
way to change the default project settings for new projects?
Make a swank wiz script that does what you want. For example,
vc7/vcwizards/357/scripts/1033/default.js
(apparently not enough for the guy since he came back for more)
/\/\/\/\/\/\
Date: Tue Jun 17 03:39:46 2003
From: (e-mail address removed) ()
Newsgroups: microsoft.public.dotnet.languages.vc
Subject: Re: VC++ .NET 2003 Macros broken?
Organization: [40th Floor]
HS [Tue, 17 Jun 2003 09:40:39 +0200]:
O. M. This is the tedious part. The rest of the wiz you can
do without boring yourself. It may not look like much but I
was cursing all the way through it. That much I remember.
Truncated at column 79 (default.js).
/* me 1-Mar-2002 */
var bCopyOnly = false;
function OnFinish(selProj, selObj) {
try {
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
var bEmptyProject = wizard.FindSymbol("EMPTY_PROJECT");
selProj = CreateProject(strProjectName, strProjectPath);
AddCommonConfig(selProj, strProjectName);
AddSpecificConfig(selProj, strProjectName, bEmptyProject);
/* this isn't in 2003
SetFilters(selProj);
*/
SetupFilters(selProj);
/*
*if (!bEmptyProject) {
* var InfFile = CreateInfFile();
* AddFilesToProject(selProj, strProjectName, InfFile);
* SetCommonPchSettings(selProj);
* InfFile.Delete();
* selProj.Object.Save();
*}
*/
}
catch(e) {
if (e.description.length != 0)
SetErrorInfo(e);
return e.number
}
}
function AddSpecificConfig(proj, strProjectName, bEmptyProject) {
/* debug ----------------------------------------------- */
var config = proj.Object.Configurations("Debug|Win32");
// DBG General :::::::::::::::::::::::::::::::::::::::::::
config.OutputDirectory = "debug";
config.IntermediateDirectory = "debug";
// use setup defaults: config.DeleteExtensionsOnClean = ...
// DBG Project Defaults ::::::::::::::::::::::::::::::::::
config.ConfigurationType = 1; // 0=unk, 1=exe, 2=dll, 4=lib, 10=generic
config.BuildBrowserInformation = 0; // 0=false, 1=true
config.useOfMfc = 0; // 0=win32, 1=static, 2=dynamic
config.useOfAtl = 0; // 0=not set, 1=static, 2=dynamic
config.ATLMinimizesCRunTimeLibraryUsage = 0; // 0=false, 1=true (useOfAtl must
config.CharacterSet = charSetMBCS; // 0=not set, 1=unicode, 2=mbcs
config.ManagedExtensions = 0; // 0=false, 1=true
config.WholeProgramOptimization =0; // 0=false, 1=true (use this instead of CL
// DBG Action Defaults ::::::::::::::::::::::::::::::::::
// command, cmd args, working dir, attach, symbol path, all are fine
// DBG Debuggers Defaults :::::::::::::::::::::::::::::::
// debugger type, sql debugging, all are fine
// DBG Remote Settings Defaults :::::::::::::::::::::::::
// connection, remote machine, remote command, http url, all are fine
// DBG C++ COMPILER ::::::::::::::::::::::::::::::::::::::
var CLtool = config.Tools("VCCLCompilerTool");
// DBG C++ GENERAL :::::::::::::::::::::::::::::::::::::::
CLtool.AdditionalIncludeDirectories = "/prj/my_inc;";
//CLtool.AdditionalUsingDirectories
CLtool.DebugInformationFormat = 4; // 0=none, 1=oldstyle, 2=line#s, 3=
CLtool.CompileAsManaged = 0; // 0=no, 2=managedAssembly
CLtool.SuppressStartupBanner = 1; // 0=no, 1=yes
CLtool.WarningLevel = 3; // 0 to 4
CLtool.Detect64BitPortabilityProblems = 1; // 0=false, 1=true
CLtool.WarnAsError = 0; // 0=false, 1=true
// DBG C++ OPTIMIZATION ::::::::::::::::::::::::::::::::::
CLtool.Optimization = 0; // 0=disabled, 1=minspace, 2=maxspe
CLtool.GlobalOptimizations = 0; // 0=false, 1=true (/Og)
CLtool.InlineFunctionExpansion = 0; // 0=disable, 1=inline only, 2=any
CLtool.EnableIntrinsicFunctions = 0; // 0=false, 1=true (/Oi)
CLtool.ImproveFloatingPointConsistency =0; // 0=default consistancy, 1=yes (/O
CLtool.FavorSizeOrSpeed = 0; // 0=neither, 1=speed, 2=size (/Ot
CLtool.OmitFramePointers = 0; // 0=false, 1=true (/Oy)
CLtool.EnableFiberSafeOptimizations = 0; // 0=false, 1=true (/GT)
CLtool.OptimizeForProcessor = 2; // 0=blend, 1=P5, 2=PPro+ (/G5 /G6)
CLtool.OptimizeForWindowsApplication = 0; // 0=false, 1=true (/GA) -- do NOT
// DBG C++ PRE-PROCESSOR :::::::::::::::::::::::::::::::::
CLtool.PreprocessorDefinitions = "WIN32;_DEBUG;_MBCS";
CLtool.IgnoreStandardIncludePath = 0; // 0=false, 1=true (/X)
CLtool.GeneratePreprocessedFile = 0; // 0=no, 1=yes, 2=no linenumbers (/
CLtool.KeepComments = 0; // 0=false, 1=true (/C)
// DBG C++ CODE GENERATION :::::::::::::::::::::::::::::::
CLtool.StringPooling = 0; // 0=false, 1=true (/GF)
CLtool.MinimalRebuild = 1; // 0=false, 1=true (/Gm)
CLtool.ExceptionHandling = 0; // 0=false, 1=true (/EHsc)
CLtool.SmallerTypeCheck = 0; // 0=false, 1=true (/RTCc)
CLtool.BasicRuntimeChecks = 3; // 0=check none, 1=check stack fram
CLtool.RuntimeLibrary = 3; // 0=MT, 1=MTd, 2=MTD (DLL), 3=MTDd
CLtool.StructMemberAlignment = 0; // 0=not set(default?), 1=1, 2=2, 3
CLtool.BufferSecurityCheck = 0; // 0=false, 1=true (/GS)
CLtool.EnableFunctionLevelLinking = 1; // 0=false, 1=true (/Gy)
// DBG C++ LANGUAGE ::::::::::::::::::::::::::::::::::::::
CLtool.DisableLanguageExtensions = 0; // 0=false, 1=true (/Za)
CLtool.DefaultCharIsUnsigned = 1; // 0=false, 1=true (/J)
CLtool.TreatWChar_tAsBuiltInType = 1; // 0=false, 1=true (/Zc:wchar_t)
CLtool.ForceConformanceInForLoopScope = 1; // 0=false, 1=true (/Zc:forScope)
CLtool.RuntimeTypeInfo = 0; // 0=false, 1=true (/GR)
// DBG C++ PRECOMPILED HEADERS :::::::::::::::::::::::::::
CLtool.UsePrecompiledHeader = 2; // 0=none, 1=create using specific,
CLtool.PrecompiledHeaderThrough = "windows.h"
// --- CLtool.PrecompiledHeaderFile =
// DBG C++ OUTPUT FILES ::::::::::::::::::::::::::::::::::
CLtool.ExpandAttributedSource = 0; // 0=false, 1=true (/Fx)
CLtool.AssemblerOutput = 0; // 0=no listing, 1=asm(/FA), 2=asm+
// --- CLtool.AssemblerListingLocation=... // (/FAname)
// --- CLtool.ObjectFile = ... // (/Foname)
// --- CLtool.ProgramDataBaseFileName =... // (/Fdname)
// DBG C++ BROWSE INFO :::::::::::::::::::::::::::::::::::
CLtool.BrowseInformation = 0; // 0=none, 1=all info, 2=no local s
// --- CLtool.BrowseInformationFile = ... // (Frname FRname)
// DBG C++ ADVANCED ::::::::::::::::::::::::::::::::::::::
CLtool.CallingConvention = 2; // 0=cdecl(/Gd), 1=fastcall(/Gr), 2
CLtool.CompileAs = 0; // 0=default, 1=C (/TC), 2=CPP (/TP
// --- CLtool.DisableSpecificWarnings =... // string of warning numbers to dis
// --- CLtool.ForcedIncludeFiles =... // string of include files to force
// --- CLtool.ForcedUsingFiles =... // string of using files to force (
CLtool.ShowIncludes = 0; // 0=false, 1=true (/showIncludes)
// --- CLtool.UndefinePreprocessorDefinitions=... // string of defs to undefin
CLtool.UndefineAllPreprocessorDefinitions = 0; // 0=false, 1=true (/u)
// DBG C++ COMMAND LINE ::::::::::::::::::::::::::::::::::
// --- CLtool.AdditionalOptions = "/testoption";
// --- CLtool.WholeProgramOptimization =...// use config.WholeProgramOptimizat
// --- CLtool.CompileOnly = ... // 0=false, 1=true (/c)
// DBG LINKER ::::::::::::::::::::::::::::::::::::::::::::
var LinkTool = config.Tools("VCLinkerTool");
LinkTool.ProgramDatabaseFile = "$(outdir)/" + strProjectName + ".pdb";
LinkTool.GenerateDebugInformation = true;
LinkTool.LinkIncremental = linkIncrementalYes;
/*LinkTool.SubSystem = subSystemConsole;*/
// DBG LINKER GENERAL ::::::::::::::::::::::::::::::::::::
LinkTool.OutputFile = "$(outdir)/" + strProjectName + ".exe";
LinkTool.ShowProgress = 0; // 0=not set, 1=all, 2=libs only
LinkTool.Version = "1.0"; // version string
LinkTool.LinkIncremental = 0; // 0=default, 1=no, 2=yes
LinkTool.SuppressStartupBanner = 1; // 0=false, 1=true
LinkTool.IgnoreImportLibrary = 0; // 0=false, 1=true
LinkTool.RegisterOutput = 0; // 0=false, 1=true
LinkTool.AdditionalLibraryDirectories = "/prj/my_lib;";
// DBG LINKER INPUT ::::::::::::::::::::::::::::::::::::::
//--- LinkTool.AdditionalDependencies = ...// string to more items to add, suc
LinkTool.IgnoreAllDefaultLibraries = 0; // 0=false, 1=true
// --- LinkTool.IgnoreDefaultLibraryNames = ... // string of names to ignore
// --- LinkTool.ModuleDefinitionFile = ... // sting to path of DLL .def
// --- LinkTool.AddModuleNamesToAssembly = ... //
// --- LinkTool.LinkToManagedResourceFile = ... //
// --- LinkTool.ForceSymbolReferences = ...// force this symbol
// --- LinkTool.DelayLoadDLLs = ... // list of DLLs to delay-load
// DBG LINKER DEBUG ::::::::::::::::::::::::::::::::::::::
LinkTool.GenerateDebugInformation = 1; // 0=false, 1=true
// --- LinkTool.ProgramDatabaseFile = ... // PDB name
// --- LinkTool.StripPrivateSymbols = ... // PDB name for PDB sans private sy
LinkTool.GenerateMapFile = 1; // 0=false, 1=true
// --- LinkTool.MapFileName = ... // mapname if other than default
LinkTool.MapExports = 1; // mapfile to have exports (0=not t
LinkTool.MapLines = 1; // mapfile to have line#s (0=not to
// DBG LINKER SYSTEM :::::::::::::::::::::::::::::::::::::
LinkTool.SubSystem = 2; // 0=not set, 1=console, 2=windows
// --- LinkTool.HeapReserveSize
// --- LinkTool.HeapCommitSize
// --- LinkTool.StackReserveSize
// --- LinkTool.StackCommitSize
LinkTool.LargeAddressAware = 1; // 0=default, 1=not awware of large
LinkTool.TerminalServerAware = 1; // 0=default, 1=no is not TS aware,
LinkTool.SwapRunFromCD = 0; // 0=no, 1=yes
LinkTool.SwapRunFromNet = 0; // 0=no, 1=yes
// DBG LINKER OPTIMIZATIONS ::::::::::::::::::::::::::::::
LinkTool.OptimizeReferences = 0; // 0=default, 1=/opt:noref (keeps u
LinkTool.EnableCOMDATFolding = 0; // 0=default, 1=nofold (/opt:noicf)
LinkTool.OptimizeForWindows98 = 1; // 0=default, 1=no, 2=yes
// --- LinkTool.FunctionOrder = ... // pathname of text file having ord
// DBG LINKER MIDL COMMANDS ::::::::::::::::::::::::::::::
// --- LinkTool.MidlCommandFile
// --- LinkTool.IgnoreEmbeddedIDL
// --- LinkTool.MergedIDLBaseFileName
// --- LinkTool.TypeLibraryFile
// --- LinkTool.TypeLibraryResourceID
// DBG LINKER ADVANCED :::::::::::::::::::::::::::::::::::
// --- LinkTool.EntryPointSymbol
LinkTool.ResourceOnlyDLL = 0; // 0=false, 1=true
LinkTool.SetChecksum = 1; // 0=false, 1=true
// --- LinkTool.BaseAddress = ... // string of addresss, such as "0x4
// --- LinkTool.TurnOffAssemblyGeneration // CLR/.NET stuff
LinkTool.SupportUnloadOfDelayLoadedDLL =0; // 0=false, 1=true
// --- LinkTool.ImportLibrary = ... // string of import library name to
// --- LinkTool.MergeSections = ... // strings of section names to merg
LinkTool.TargetMachine = 1; // 0=not set, 1=x86
// DBG LINKER COMMAND LINE :::::::::::::::::::::::::::::::
//LinkTool.AdditionalOptions = ...
// --- LinkTool.LinkDLL = ... use config.ConfigurationType =2
// --- LinkTool.LinkTimeCodeGeneration = ... use config.WholeProgramOptimizat
/* release ----------------------------------------------- */
/* release ----------------------------------------------- */
/* release ----------------------------------------------- */
/* release ----------------------------------------------- */
config = proj.Object.Configurations.Item("Release|Win32");
// REL General :::::::::::::::::::::::::::::::::::::::::::
config.OutputDirectory = "release";
config.IntermediateDirectory = "release";
// use setup defaults: config.DeleteExtensionsOnClean = ...
// REL Project Defaults ::::::::::::::::::::::::::::::::::
config.ConfigurationType = 1; // 0=unk, 1=exe, 2=dll, 4=lib, 10=generic
config.BuildBrowserInformation = 0; // 0=false, 1=true
config.useOfMfc = 0; // 0=win32, 1=static, 2=dynamic
config.useOfAtl = 0; // 0=not set, 1=static, 2=dynamic
config.ATLMinimizesCRunTimeLibraryUsage = 0; // 0=false, 1=true (useOfAtl must
config.CharacterSet = charSetMBCS; // 0=not set, 1=unicode, 2=mbcs
config.ManagedExtensions = 0; // 0=false, 1=true
config.WholeProgramOptimization =0; // 0=false, 1=true (use this instead of CL
// REL Action Defaults ::::::::::::::::::::::::::::::::::
// command, cmd args, working dir, attach, symbol path, all are fine
// REL Debuggers Defaults :::::::::::::::::::::::::::::::
// debugger type, sql debugging, all are fine
// REL Remote Settings Defaults :::::::::::::::::::::::::
// connection, remote machine, remote command, http url, all are fine
// REL C++ COMPILER ::::::::::::::::::::::::::::::::::::::
var CLtool = config.Tools("VCCLCompilerTool");
// REL C++ GENERAL :::::::::::::::::::::::::::::::::::::::
CLtool.AdditionalIncludeDirectories = "/prj/my_inc;";
//CLtool.AdditionalUsingDirectories
CLtool.DebugInformationFormat = 0; // 0=none, 1=oldstyle, 2=line#s, 3=
CLtool.CompileAsManaged = 0; // 0=no, 2=managedAssembly
CLtool.SuppressStartupBanner = 1; // 0=no, 1=yes
CLtool.WarningLevel = 3; // 0 to 4
CLtool.Detect64BitPortabilityProblems = 1; // 0=false, 1=true
CLtool.WarnAsError = 0; // 0=false, 1=true
// REL C++ OPTIMIZATION ::::::::::::::::::::::::::::::::::
CLtool.Optimization = 3; // 0=disabled, 1=minspace, 2=maxspe
CLtool.GlobalOptimizations = 1; // 0=false, 1=true (/Og)
CLtool.InlineFunctionExpansion = 1; // 0=disable, 1=inline only, 2=any
CLtool.EnableIntrinsicFunctions = 1; // 0=false, 1=true (/Oi)
CLtool.ImproveFloatingPointConsistency =0; // 0=default consistancy, 1=yes (/O
CLtool.FavorSizeOrSpeed = 1; // 0=neither, 1=speed, 2=size (/Ot
CLtool.OmitFramePointers = 1; // 0=false, 1=true (/Oy)
CLtool.EnableFiberSafeOptimizations = 0; // 0=false, 1=true (/GT)
CLtool.OptimizeForProcessor = 2; // 0=blend, 1=P5, 2=PPro+ (/G5 /G6)
CLtool.OptimizeForWindowsApplication = 0; // 0=false, 1=true (/GA) -- do NOT
// REL C++ PRE-PROCESSOR :::::::::::::::::::::::::::::::::
CLtool.PreprocessorDefinitions = "WIN32;NDEBUG;_MBCS";
CLtool.IgnoreStandardIncludePath = 0; // 0=false, 1=true (/X)
CLtool.GeneratePreprocessedFile = 0; // 0=no, 1=yes, 2=no linenumbers (/
CLtool.KeepComments = 0; // 0=false, 1=true (/C)
// REL C++ CODE GENERATION :::::::::::::::::::::::::::::::
CLtool.StringPooling = 1; // 0=false, 1=true (/GF)
CLtool.MinimalRebuild = 0; // 0=false, 1=true (/Gm)
CLtool.ExceptionHandling = 0; // 0=false, 1=true (/EHsc)
CLtool.SmallerTypeCheck = 0; // 0=false, 1=true (/RTCc)
CLtool.BasicRuntimeChecks = 0; // 0=check none, 1=check stack fram
CLtool.RuntimeLibrary = 2; // 0=MT, 1=MTd, 2=MTD (DLL), 3=MTDd
CLtool.StructMemberAlignment = 0; // 0=not set(default?), 1=1, 2=2, 3
CLtool.BufferSecurityCheck = 0; // 0=false, 1=true (/GS)
CLtool.EnableFunctionLevelLinking = 1; // 0=false, 1=true (/Gy)
// REL C++ LANGUAGE ::::::::::::::::::::::::::::::::::::::
CLtool.DisableLanguageExtensions = 0; // 0=false, 1=true (/Za)
CLtool.DefaultCharIsUnsigned = 1; // 0=false, 1=true (/J)
CLtool.TreatWChar_tAsBuiltInType = 1; // 0=false, 1=true (/Zc:wchar_t)
CLtool.ForceConformanceInForLoopScope = 1; // 0=false, 1=true (/Zc:forScope)
CLtool.RuntimeTypeInfo = 0; // 0=false, 1=true (/GR)
// REL C++ PRECOMPILED HEADERS :::::::::::::::::::::::::::
CLtool.UsePrecompiledHeader = 2; // 0=none, 1=create using specific,
CLtool.PrecompiledHeaderThrough = "windows.h"
// --- CLtool.PrecompiledHeaderFile =
// REL C++ OUTPUT FILES ::::::::::::::::::::::::::::::::::
CLtool.ExpandAttributedSource = 0; // 0=false, 1=true (/Fx)
CLtool.AssemblerOutput = 0; // 0=no listing, 1=asm(/FA), 2=asm+
// --- CLtool.AssemblerListingLocation=... // (/FAname)
// --- CLtool.ObjectFile = ... // (/Foname)
// --- CLtool.ProgramDataBaseFileName =... // (/Fdname)
// REL C++ BROWSE INFO :::::::::::::::::::::::::::::::::::
CLtool.BrowseInformation = 0; // 0=none, 1=all info, 2=no local s
// --- CLtool.BrowseInformationFile = ... // (Frname FRname)
// REL C++ ADVANCED ::::::::::::::::::::::::::::::::::::::
CLtool.CallingConvention = 2; // 0=cdecl(/Gd), 1=fastcall(/Gr), 2
CLtool.CompileAs = 0; // 0=default, 1=C (/TC), 2=CPP (/TP
// --- CLtool.DisableSpecificWarnings =... // string of warning numbers to dis
// --- CLtool.ForcedIncludeFiles =... // string of include files to force
// --- CLtool.ForcedUsingFiles =... // string of using files to force (
CLtool.ShowIncludes = 0; // 0=false, 1=true (/showIncludes)
// --- CLtool.UndefinePreprocessorDefinitions=... // string of defs to undefin
CLtool.UndefineAllPreprocessorDefinitions = 0; // 0=false, 1=true (/u)
// REL C++ COMMAND LINE ::::::::::::::::::::::::::::::::::
// --- CLtool.AdditionalOptions = "/testoption";
// --- CLtool.WholeProgramOptimization =...// use config.WholeProgramOptimizat
// --- CLtool.CompileOnly = ... // 0=false, 1=true (/c)
// REL LINKER ::::::::::::::::::::::::::::::::::::::::::::
var LinkTool = config.Tools("VCLinkerTool");
// REL LINKER GENERAL ::::::::::::::::::::::::::::::::::::
LinkTool.OutputFile = "$(outdir)/" + strProjectName + ".exe";
LinkTool.ShowProgress = 0; // 0=not set, 1=all, 2=libs only
LinkTool.Version = "1.0"; // version string
LinkTool.LinkIncremental = 1; // 0=default, 1=no, 2=yes
LinkTool.SuppressStartupBanner = 1; // 0=false, 1=true
LinkTool.IgnoreImportLibrary = 0; // 0=false, 1=true
LinkTool.RegisterOutput = 0; // 0=false, 1=true
LinkTool.AdditionalLibraryDirectories = "/prj/my_lib;";
// REL LINKER INPUT ::::::::::::::::::::::::::::::::::::::
//--- LinkTool.AdditionalDependencies = ...// string to more items to add, suc
LinkTool.IgnoreAllDefaultLibraries = 0; // 0=false, 1=true
// --- LinkTool.IgnoreDefaultLibraryNames = ... // string of names to ignore
// --- LinkTool.ModuleDefinitionFile = ... // sting to path of DLL .def
// --- LinkTool.AddModuleNamesToAssembly = ... //
// --- LinkTool.LinkToManagedResourceFile = ... //
// --- LinkTool.ForceSymbolReferences = ...// force this symbol
// --- LinkTool.DelayLoadDLLs = ... // list of DLLs to delay-load
// REL LINKER DEBUG ::::::::::::::::::::::::::::::::::::::
LinkTool.GenerateDebugInformation = 0; // 0=false, 1=true
// --- LinkTool.ProgramDatabaseFile = ... // PDB name
// --- LinkTool.StripPrivateSymbols = ... // PDB name for PDB sans private sy
LinkTool.GenerateMapFile = 1; // 0=false, 1=true
// --- LinkTool.MapFileName = ... // mapname if other than default
LinkTool.MapExports = 1; // mapfile to have exports (0=not t
LinkTool.MapLines = 1; // mapfile to have line#s (0=not to
// REL LINKER SYSTEM :::::::::::::::::::::::::::::::::::::
LinkTool.SubSystem = 2; // 0=not set, 1=console, 2=windows
// --- LinkTool.HeapReserveSize
// --- LinkTool.HeapCommitSize
// --- LinkTool.StackReserveSize
// --- LinkTool.StackCommitSize
LinkTool.LargeAddressAware = 1; // 0=default, 1=not awware of large
LinkTool.TerminalServerAware = 1; // 0=default, 1=no is not TS aware,
LinkTool.SwapRunFromCD = 0; // 0=no, 1=yes
LinkTool.SwapRunFromNet = 0; // 0=no, 1=yes
// REL LINKER OPTIMIZATIONS ::::::::::::::::::::::::::::::
LinkTool.OptimizeReferences = 0; // 0=default, 1=/opt:noref (keeps u
LinkTool.EnableCOMDATFolding = 0; // 0=default, 1=nofold (/opt:noicf)
LinkTool.OptimizeForWindows98 = 1; // 0=default, 1=no, 2=yes
// --- LinkTool.FunctionOrder = ... // pathname of text file having ord
// REL LINKER MIDL COMMANDS ::::::::::::::::::::::::::::::
// --- LinkTool.MidlCommandFile
// --- LinkTool.IgnoreEmbeddedIDL
// --- LinkTool.MergedIDLBaseFileName
// --- LinkTool.TypeLibraryFile
// --- LinkTool.TypeLibraryResourceID
// REL LINKER ADVANCED :::::::::::::::::::::::::::::::::::
// --- LinkTool.EntryPointSymbol
LinkTool.ResourceOnlyDLL = 0; // 0=false, 1=true
LinkTool.SetChecksum = 1; // 0=false, 1=true
// --- LinkTool.BaseAddress = ... // string of addresss, such as "0x4
// --- LinkTool.TurnOffAssemblyGeneration // CLR/.NET stuff
LinkTool.SupportUnloadOfDelayLoadedDLL =0; // 0=false, 1=true
// --- LinkTool.ImportLibrary = ... // string of import library name to
// --- LinkTool.MergeSections = ... // strings of section names to merg
LinkTool.TargetMachine = 1; // 0=not set, 1=x86
// REL LINKER COMMAND LINE :::::::::::::::::::::::::::::::
//LinkTool.AdditionalOptions = ...
// --- LinkTool.LinkDLL = ... use config.ConfigurationType =2
// --- LinkTool.LinkTimeCodeGeneration = ... use config.WholeProgramOptimizat
}
function SetFileProperties(projfile, strName) {
return false;
}
function DoOpenFile(strTarget) {
return false;
}
/*
function GetTargetName(strName, strProjectName, strResourcePath) {
var strTarget = strName;
if (strName == "readme.txt")
strTarget = "ReadMe.txt";
if (strName == "resource.h")
strTarget = "Resource.h";
if (strName == "small.ico") {
strTarget = "small.ico";
bCopyOnly = true;
}
if (strName.substr(0, 4) == "root") {
var strlen = strName.length;
if (strName == "root.ico")
bCopyOnly = true;
strTarget = strProjectName + strName.substr(4, strlen - 4);
}
return strTarget;
}
*/
Works fine for me but I've only used this one a few projects in 2003.
New configurations (I never use "Release" and "Debug") are still a bitch
-- the props panel sti!! closes on me all too often. I'd rather walk
a tightrope.
/\/\/\/\/\/\
\/\/\/\/\/\/
So it was, way back then.