error : Element <DebugInformationFormat> has an invalid value of "None".

Oct 21, 2013 at 3:39 PM

When I compile VC6 project in Release mode (Debug mode compiles ok), I got
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\v60\Microsoft.Cpp.Win32.v60.targets(93,5): error : Element <DebugInformationFormat> has an invalid value of "None".
I don't know how to fix it. Please help.
Below is the targets file.
-----------------------------------------------------
<!--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Daffodil for Visual Studio <http://daffodil.codeplex.com>
- Native multi-targeting support for Visual Studio 6 in Visual Studio 2010
2.6 [2013-07-16]
Owen Wengerd, ManuSoft
http://www.manusoft.com
Credits
Some aspects of this project are based on information in this MSDN blog post:
http://blogs.msdn.com/b/vcblog/archive/2009/12/08/c-native-multi-targeting.aspx
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(VCTargetsPath)\Platforms\Win32\ImportBefore\*.v60.targets" Condition="Exists('$(VCTargetsPath)\Platforms\Win32\ImportBefore')" />
<UsingTask TaskName="VCMessage" AssemblyName="Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<PropertyGroup>
<UseGeneralSchema Condition="'$(UseDefaultPropertyPageSchemas)' != 'false' or '$(UseDefaultGeneralPropertyPageSchema)' != 'false'">true</UseGeneralSchema>
<GeneralSchemaFilename Condition="'$(ConfigurationType)' != 'Makefile'">general</GeneralSchemaFilename>
<GeneralSchemaFilename Condition="'$(ConfigurationType)' == 'Makefile'">general_makefile</GeneralSchemaFilename>
<ProjectRuleFilePath>$(VCTargetsPath)Platforms\$(Platform)\PlatformToolsets\$(PlatformToolset)\$(LangID)\context\$(GeneralSchemaFilename).xml</ProjectRuleFilePath>
<PropertySheetRuleFilePath>$(VCTargetsPath)Platforms\$(Platform)\PlatformToolsets\$(PlatformToolset)\$(LangID)\context\$(GeneralSchemaFilename)_ps.xml</PropertySheetRuleFilePath>
</PropertyGroup>
<ItemGroup Condition="'$(UseGeneralSchema)' == 'true'">
<PropertyPageSchema Condition="Exists('$(ProjectRuleFilePath)')" Include="$(ProjectRuleFilePath)">
<Context>Project</Context>
</PropertyPageSchema>
<PropertyPageSchema Condition="Exists('$(PropertySheetRuleFilePath)')" Include="$(PropertySheetRuleFilePath)">
<Context>PropertySheet</Context>
</PropertyPageSchema>
</ItemGroup>
<!-- These tasks replace the built in tool tasks so the build process can be customized:
- Response file must be output in ANSI encoding instead of Unicode
- Build tool switches whose default value has since changed must be corrected
-->
<UsingTask TaskName="CLA" AssemblyFile="Daffodil.CPPTasks.Win32.v60.dll" />
<UsingTask TaskName="LinkA" AssemblyFile="Daffodil.CPPTasks.Win32.v60.dll" />
<UsingTask TaskName="LIBA" AssemblyFile="Daffodil.CPPTasks.Win32.v60.dll" />
<UsingTask TaskName="BSCMakeA" AssemblyFile="Daffodil.CPPTasks.Win32.v60.dll" />

<Target Name="CoreResGen" DependsOnTargets="$(CoreResGenDependsOn)" />

<!-- *******************************************************************************************
PlatformToolsetPrepareForBuild target
******************************************************************************************* -->
<PropertyGroup>
<PlatformPrepareForBuildDependsOn>PlatformToolsetPrepareForBuild;$(PlatformPrepareForBuildDependsOn)</PlatformPrepareForBuildDependsOn>
</PropertyGroup>
<Target Name="PlatformToolsetPrepareForBuild" DependsOnTargets="_DetermineManagedStateFromCL;$(PlatformToolsetPrepareForBuildDependsOn)">
<!-- If the project is a managed assembly, issue a warning -->
<Message Condition="'$(ManagedAssembly)' == 'true' and
'$(DesignTimeBuild)'!='true'"
Text="warning: Specified platform toolset ($(PlatformToolset)) does not support managed code. ManagedAssembly property will be ignored."/>
</Target>

<!-- *******************************************************************************************
CLCompile
******************************************************************************************* -->
<Target Name="ClCompile"
Condition="'@(ClCompile)' != ''"
DependsOnTargets="SelectClCompile">
<ItemGroup>
<ClCompile>
<PrecompiledHeaderOutputFile Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile Condition="'%(ClCompile.PrecompiledHeader)' != 'NotUsing' and '$(RunCodeAnalysisOnce)'=='true' and '%(ClCompile.PrecompiledHeader)' != ''">%(ClCompile.PrecompiledHeaderOutputFile).codeanalysis</PrecompiledHeaderOutputFile>
<PrecompiledHeaderFile Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderFile>
<AssemblerListingLocation Condition="'%(ClCompile.AssemblerOutput)' == 'NoListing' or '%(ClCompile.AssemblerOutput)' == ''"></AssemblerListingLocation>
<CompileAs Condition="'%(ClCompile.CompileAs)' == 'Default' and '%(ClCompile.Extension)' == '.c'">CompileAsC</CompileAs>
<CompileAs Condition="'%(ClCompile.CompileAs)' == 'Default' and '%(ClCompile.Extension)' != '.c'">CompileAsCpp</CompileAs>
<MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
<ProgramDataBaseFileName Condition="'%(ClCompile.DebugInformationFormat)' == '' or '%(ClCompile.DebugInformationFormat)' == 'None' or '%(ClCompile.DebugInformationFormat)' == 'OldStyle'"></ProgramDataBaseFileName>
</ClCompile>
</ItemGroup>
<PropertyGroup>
<CLToolArchitecture Condition="'$(CLToolArchitecture)' == ''">$(DefaultToolArchitecture)</CLToolArchitecture>
</PropertyGroup>
<Delete Condition="'%(ClCompile.ProgramDataBaseFileName)' != '' and !Exists(%(ClCompile.ProgramDataBaseFileName))"
Files="%(ClCompile.PrecompiledHeaderOutputFile)" />
<!-- Precompiled headers - need to build them first -->
<CLA Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"
BuildingInIDE ="$(BuildingInsideVisualStudio)"
Sources ="@(ClCompile)"
AdditionalIncludeDirectories ="%(ClCompile.AdditionalIncludeDirectories)"
AdditionalOptions ="%(ClCompile.AdditionalOptions)"
AssemblerListingLocation ="%(ClCompile.AssemblerListingLocation)"
AssemblerOutput ="%(ClCompile.AssemblerOutput)"
AssumeNoAliasing ="%(ClCompile.AssumeNoAliasing)"
AssumeXFunctionAliasing ="%(ClCompile.AssumeXFunctionAliasing)"
BrowseInformation ="%(ClCompile.BrowseInformation)"
BrowseInformationFile ="%(ClCompile.BrowseInformationFile)"
CallingConvention ="%(ClCompile.CallingConvention)"
CompileAs ="%(ClCompile.CompileAs)"
DebugInformationFormat ="%(ClCompile.DebugInformationFormat)"
DisableLanguageExtensions ="%(ClCompile.DisableLanguageExtensions)"
EnableFiberSafeOptimizations ="%(ClCompile.EnableFiberSafeOptimizations)"
ExceptionHandling ="%(ClCompile.ExceptionHandling)"
ExcludedInputPaths ="$(ExcludePath)"
FavorSizeOrSpeed ="%(ClCompile.FavorSizeOrSpeed)"
FloatConsistency ="%(ClCompile.FloatConsistency)"
ForcedIncludeFiles ="%(ClCompile.ForcedIncludeFiles)"
FunctionLevelLinking ="%(ClCompile.FunctionLevelLinking)"
IgnoreStandardIncludePath ="%(ClCompile.IgnoreStandardIncludePath)"
IncrementalCompilation ="%(ClCompile.IncrementalCompilation)"
InlineFunctionExpansion ="%(ClCompile.InlineFunctionExpansion)"
IntrinsicFunctions ="%(ClCompile.IntrinsicFunctions)"
MinimalRebuild ="%(ClCompile.MinimalRebuild)"
ObjectFileName ="%(ClCompile.ObjectFileName)"
OmitDefaultLibName ="%(ClCompile.OmitDefaultLibName)"
OmitFramePointers ="%(ClCompile.OmitFramePointers)"
Optimization ="%(ClCompile.Optimization)"
PrecompiledHeader ="%(ClCompile.PrecompiledHeader)"
PrecompiledHeaderFile ="%(ClCompile.PrecompiledHeaderFile)"
PrecompiledHeaderOutputFile ="%(ClCompile.PrecompiledHeaderOutputFile)"
PreprocessKeepComments ="%(ClCompile.PreprocessKeepComments)"
PreprocessorDefinitions ="%(ClCompile.PreprocessorDefinitions)"
PreprocessSuppressLineNumbers ="%(ClCompile.PreprocessSuppressLineNumbers)"
PreprocessToFile ="%(ClCompile.PreprocessToFile)"
ProgramDataBaseFileName ="%(ClCompile.ProgramDataBaseFileName)"
RuntimeLibrary ="%(ClCompile.RuntimeLibrary)"
RuntimeTypeInfo ="%(ClCompile.RuntimeTypeInfo)"
StringPooling ="%(ClCompile.StringPooling)"
StructMemberAlignment ="%(ClCompile.StructMemberAlignment)"
SuppressStartupBanner ="%(ClCompile.SuppressStartupBanner)"
TargetProcessor ="%(ClCompile.TargetProcessor)"
TreatWarningAsError ="%(ClCompile.TreatWarningAsError)"
UndefineAllPreprocessorDefinitions ="%(ClCompile.UndefineAllPreprocessorDefinitions)"
UndefinePreprocessorDefinitions ="%(ClCompile.UndefinePreprocessorDefinitions)"
WarningLevel ="%(ClCompile.WarningLevel)"
TrackerLogDirectory ="%(ClCompile.TrackerLogDirectory)"
TLogReadFiles ="@(CLTLogReadFiles)"
TLogWriteFiles ="@(CLTLogWriteFiles)"
ToolExe ="$(CLToolExe)"
ToolPath ="$(CLToolPath)"
TrackFileAccess ="$(TrackFileAccess)"
MinimalRebuildFromTracking ="%(ClCompile.MinimalRebuildFromTracking)"
ToolArchitecture ="$(CLToolArchitecture)"
TrackerFrameworkPath ="$(CLTrackerFrameworkPath)"
TrackerSdkPath ="$(CLTrackerSdkPath)"
AcceptableNonZeroExitCodes ="%(ClCompile.AcceptableNonZeroExitCodes)"
YieldDuringToolExecution ="$(ClYieldDuringToolExecution)"
>
</CLA>
<!-- Rest of the sources -->
<CLA Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"
BuildingInIDE ="$(BuildingInsideVisualStudio)"
Sources ="@(ClCompile)"
AdditionalIncludeDirectories ="%(ClCompile.AdditionalIncludeDirectories)"
AdditionalOptions ="%(ClCompile.AdditionalOptions)"
AssemblerListingLocation ="%(ClCompile.AssemblerListingLocation)"
AssemblerOutput ="%(ClCompile.AssemblerOutput)"
AssumeNoAliasing ="%(ClCompile.AssumeNoAliasing)"
AssumeXFunctionAliasing ="%(ClCompile.AssumeXFunctionAliasing)"
BrowseInformation ="%(ClCompile.BrowseInformation)"
BrowseInformationFile ="%(ClCompile.BrowseInformationFile)"
CallingConvention ="%(ClCompile.CallingConvention)"
CompileAs ="%(ClCompile.CompileAs)"
DebugInformationFormat ="%(ClCompile.DebugInformationFormat)"
DisableLanguageExtensions ="%(ClCompile.DisableLanguageExtensions)"
EnableFiberSafeOptimizations ="%(ClCompile.EnableFiberSafeOptimizations)"
ExceptionHandling ="%(ClCompile.ExceptionHandling)"
ExcludedInputPaths ="$(ExcludePath)"
FavorSizeOrSpeed ="%(ClCompile.FavorSizeOrSpeed)"
FloatConsistency ="%(ClCompile.FloatConsistency)"
ForcedIncludeFiles ="%(ClCompile.ForcedIncludeFiles)"
FunctionLevelLinking ="%(ClCompile.FunctionLevelLinking)"
IgnoreStandardIncludePath ="%(ClCompile.IgnoreStandardIncludePath)"
InlineFunctionExpansion ="%(ClCompile.InlineFunctionExpansion)"
IntrinsicFunctions ="%(ClCompile.IntrinsicFunctions)"
MinimalRebuild ="%(ClCompile.MinimalRebuild)"
ObjectFileName ="%(ClCompile.ObjectFileName)"
OmitDefaultLibName ="%(ClCompile.OmitDefaultLibName)"
OmitFramePointers ="%(ClCompile.OmitFramePointers)"
Optimization ="%(ClCompile.Optimization)"
PrecompiledHeader ="%(ClCompile.PrecompiledHeader)"
PrecompiledHeaderFile ="%(ClCompile.PrecompiledHeaderFile)"
PrecompiledHeaderOutputFile ="%(ClCompile.PrecompiledHeaderOutputFile)"
PreprocessKeepComments ="%(ClCompile.PreprocessKeepComments)"
PreprocessorDefinitions ="%(ClCompile.PreprocessorDefinitions)"
PreprocessSuppressLineNumbers ="%(ClCompile.PreprocessSuppressLineNumbers)"
PreprocessToFile ="%(ClCompile.PreprocessToFile)"
ProgramDataBaseFileName ="%(ClCompile.ProgramDataBaseFileName)"
RuntimeLibrary ="%(ClCompile.RuntimeLibrary)"
RuntimeTypeInfo ="%(ClCompile.RuntimeTypeInfo)"
StringPooling ="%(ClCompile.StringPooling)"
StructMemberAlignment ="%(ClCompile.StructMemberAlignment)"
SuppressStartupBanner ="%(ClCompile.SuppressStartupBanner)"
TargetProcessor ="%(ClCompile.TargetProcessor)"
TreatWarningAsError ="%(ClCompile.TreatWarningAsError)"
UndefineAllPreprocessorDefinitions ="%(ClCompile.UndefineAllPreprocessorDefinitions)"
UndefinePreprocessorDefinitions ="%(ClCompile.UndefinePreprocessorDefinitions)"
WarningLevel ="%(ClCompile.WarningLevel)"
TrackerLogDirectory ="%(ClCompile.TrackerLogDirectory)"
TLogReadFiles ="@(CLTLogReadFiles)"
TLogWriteFiles ="@(CLTLogWriteFiles)"
ToolExe ="$(CLToolExe)"
ToolPath ="$(CLToolPath)"
TrackFileAccess ="$(TrackFileAccess)"
MinimalRebuildFromTracking ="%(ClCompile.MinimalRebuildFromTracking)"
ToolArchitecture ="$(CLToolArchitecture)"
TrackerFrameworkPath ="$(CLTrackerFrameworkPath)"
TrackerSdkPath ="$(CLTrackerSdkPath)"
AcceptableNonZeroExitCodes ="%(ClCompile.AcceptableNonZeroExitCodes)"
YieldDuringToolExecution ="$(ClYieldDuringToolExecution)"
>
</CLA>
</Target>
<!-- *******************************************************************************************
Link
******************************************************************************************* -->
<Target Name="Link"
Condition="'@(Link)' != ''">
<PropertyGroup>
<Link_MinimalRebuildFromTracking Condition="'@(Link->AnyHaveMetadataValue('MinimalRebuildFromTracking', 'false'))' == 'true'">false</Link_MinimalRebuildFromTracking>
<Link_MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or '$(ForceRebuild)' == 'true'" >false</Link_MinimalRebuildFromTracking>
<Link_MinimalRebuildFromTracking Condition="'$(Link_MinimalRebuildFromTracking)' == ''">true</Link_MinimalRebuildFromTracking>
<LinkToolArchitecture Condition="'$(LinkToolArchitecture)' == ''">$(DefaultToolArchitecture)</LinkToolArchitecture>
<LinkYieldDuringToolExecution Condition="'$(LinkYieldDuringToolExecution)' == '' and '%(Link.LinkTimeCodeGeneration)' == 'UseLinkTimeCodeGeneration'">true</LinkYieldDuringToolExecution>
</PropertyGroup>
<LinkA
BuildingInIDE ="$(BuildingInsideVisualStudio)"
Sources ="@(Link)"
AdditionalDependencies ="%(Link.AdditionalDependencies)"
AdditionalLibraryDirectories ="%(Link.AdditionalLibraryDirectories)"
AdditionalManifestDependencies ="%(Link.AdditionalManifestDependencies)"
AdditionalOptions ="%(Link.AdditionalOptions)"
BaseAddress ="%(Link.BaseAddress)"
DebugInformationFormat ="%(Link.DebugInformationFormat)"
DelayLoadDLLs ="%(Link.DelayLoadDLLs)"
Driver ="%(Link.Driver)"
EnableCOMDATFolding ="%(Link.EnableCOMDATFolding)"
EntryPointSymbol ="%(Link.EntryPointSymbol)"
FixedBaseAddress ="%(Link.FixedBaseAddress)"
ForceFileOutput ="%(Link.ForceFileOutput)"
ForceSymbolReferences ="%(Link.ForceSymbolReferences)"
FunctionOrder ="%(Link.FunctionOrder)"
GenerateDebugInformation ="%(Link.GenerateDebugInformation)"
GenerateMapFile ="%(Link.GenerateMapFile)"
HeapCommitSize ="%(Link.HeapCommitSize)"
HeapReserveSize ="%(Link.HeapReserveSize)"
IgnoreAllDefaultLibraries ="%(Link.IgnoreAllDefaultLibraries)"
IgnoreEmbeddedIDL ="%(Link.IgnoreEmbeddedIDL)"
IgnoreSpecificDefaultLibraries ="%(Link.IgnoreSpecificDefaultLibraries)"
ImportLibrary ="%(Link.ImportLibrary)"
LargeAddressAware ="%(Link.LargeAddressAware)"
LinkDLL ="%(Link.LinkDLL)"
LinkIncremental ="$(LinkIncremental)"
MapExports ="%(Link.MapExports)"
MapFileName ="%(Link.MapFileName)"
MergedIDLBaseFileName ="%(Link.MergedIDLBaseFileName)"
MergeSections ="%(Link.MergeSections)"
MidlCommandFile ="%(Link.MidlCommandFile)"
MinimumRequiredVersion ="%(Link.MinimumRequiredVersion)"
ModuleDefinitionFile ="%(Link.ModuleDefinitionFile)"
MSDOSStubFileName ="%(Link.MSDOSStubFileName)"
OptimizeReferences ="%(Link.OptimizeReferences)"
OptimizeWin98 ="%(Link.OptimizeWin98)"
OutputFile ="%(Link.OutputFile)"
Profile ="%(Link.Profile)"
ProgramDatabaseFile ="%(Link.ProgramDatabaseFile)"
NoEntryPoint ="%(Link.NoEntryPoint)"
SectionAlignment ="%(Link.SectionAlignment)"
SetChecksum ="%(Link.SetChecksum)"
ShowProgress ="%(Link.ShowProgress)"
SpecifySectionAttributes ="%(Link.SpecifySectionAttributes)"
StackCommitSize ="%(Link.StackCommitSize)"
StackReserveSize ="%(Link.StackReserveSize)"
StripPrivateSymbols ="%(Link.StripPrivateSymbols)"
SubSystem ="%(Link.SubSystem)"
SupportUnloadOfDelayLoadedDLL ="%(Link.SupportUnloadOfDelayLoadedDLL)"
SupportNobindOfDelayLoadedDLL ="%(Link.SupportNobindOfDelayLoadedDLL)"
SuppressStartupBanner ="%(Link.SuppressStartupBanner)"
SwapRunFromCD ="%(Link.SwapRunFromCD)"
SwapRunFromNET ="%(Link.SwapRunFromNET)"
TargetMachine ="%(Link.TargetMachine)"
Version ="%(Link.Version)"
TrackerLogDirectory ="%(Link.TrackerLogDirectory)"
TLogReadFiles ="@(LinkTLogReadFiles)"
TLogWriteFiles ="@(LinkTLogWriteFiles)"
ToolExe ="$(LinkToolExe)"
ToolPath ="$(LinkToolPath)"
TrackFileAccess ="$(TrackFileAccess)"
MinimalRebuildFromTracking ="$(Link_MinimalRebuildFromTracking)"
ToolArchitecture ="$(LinkToolArchitecture)"
TrackerFrameworkPath ="$(LinkTrackerFrameworkPath)"
TrackerSdkPath ="$(LinkTrackerSdkPath)"
AcceptableNonZeroExitCodes ="%(Link.AcceptableNonZeroExitCodes)"
YieldDuringToolExecution ="$(LinkYieldDuringToolExecution)"
>
<Output TaskParameter="SkippedExecution" PropertyName="LinkSkippedExecution" />
</LinkA>
<Message Text="$(MSBuildProjectFile) -> $(TargetPath)" Importance="High" />
</Target>
<Target Name="LinkEmbedManifest" />
<!-- *******************************************************************************************
Lib
******************************************************************************************* -->
<Target Name="Lib"
Condition="'@(Lib)' != ''">
<ItemGroup>
<Lib>
<MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
</Lib>
</ItemGroup>
<PropertyGroup>
<LibToolArchitecture Condition="'$(LibToolArchitecture)' == ''">$(DefaultToolArchitecture)</LibToolArchitecture>
</PropertyGroup>
<LIBA
Sources ="@(Lib)"
AdditionalDependencies ="%(Lib.AdditionalDependencies)"
AdditionalLibraryDirectories ="%(Lib.AdditionalLibraryDirectories)"
AdditionalOptions ="$(LibAdditionalOptions)"
DisplayLibrary ="%(Lib.DisplayLibrary)"
ExportNamedFunctions ="%(Lib.ExportNamedFunctions)"
ForceSymbolReferences ="%(Lib.ForceSymbolReferences)"
IgnoreAllDefaultLibraries ="%(Lib.IgnoreAllDefaultLibraries)"
IgnoreSpecificDefaultLibraries ="%(Lib.IgnoreSpecificDefaultLibraries)"
ModuleDefinitionFile ="%(Lib.ModuleDefinitionFile)"
Name ="%(Lib.Name)"
OutputFile ="%(Lib.OutputFile)"
RemoveObjects ="%(Lib.RemoveObjects)"
SubSystem ="%(Lib.SubSystem)"
SuppressStartupBanner ="%(Lib.SuppressStartupBanner)"
TargetMachine ="%(Lib.TargetMachine)"
Verbose ="%(Lib.Verbose)"
TrackerLogDirectory ="%(Lib.TrackerLogDirectory)"
TLogReadFiles ="@(LIBTLogReadFiles)"
TLogWriteFiles ="@(LIBTLogWriteFiles)"
ToolExe ="$(LIBToolExe)"
ToolPath ="$(LIBToolPath)"
TrackFileAccess ="$(TrackFileAccess)"
MinimalRebuildFromTracking ="%(Lib.MinimalRebuildFromTracking)"
ToolArchitecture ="$(LibToolArchitecture)"
TrackerFrameworkPath ="$(LibTrackerFrameworkPath)"
TrackerSdkPath ="$(LibTrackerSdkPath)"
AcceptableNonZeroExitCodes ="%(Lib.AcceptableNonZeroExitCodes)"
>
</LIBA>
<Message Text="$(MSBuildProjectFile) -> $(TargetPath)" Importance="High" />
</Target>
<Target Name="ImpLib"
Condition="'@(ImpLib)' != '' and '$(IgnoreImportLibrary)' != 'true' and '$(GenerateImportLib)' == 'true'">
<ItemGroup>
<ImpLib>
<MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
</ImpLib>
</ItemGroup>
<PropertyGroup>
<LibUseEmptyDef Condition="'%(ImpLib.ModuleDefinitionFile)' == ''">/DEF:</LibUseEmptyDef>
<LibToolArchitecture Condition="'$(LibToolArchitecture)' == ''">$(DefaultToolArchitecture)</LibToolArchitecture>
</PropertyGroup>

<LIBA
Sources ="@(ImpLib)"
AdditionalDependencies ="%(ImpLib.AdditionalDependencies)"
AdditionalLibraryDirectories ="%(ImpLib.AdditionalLibraryDirectories)"
AdditionalOptions ="$(ImpLibAdditionalOptions) $(LibUseEmptyDef)"
DisplayLibrary ="%(ImpLib.DisplayLibrary)"
ExportNamedFunctions ="%(ImpLib.ExportNamedFunctions)"
ForceSymbolReferences ="%(ImpLib.ForceSymbolReferences)"
IgnoreAllDefaultLibraries ="%(ImpLib.IgnoreAllDefaultLibraries)"
IgnoreSpecificDefaultLibraries ="%(ImpLib.IgnoreSpecificDefaultLibraries)"
ModuleDefinitionFile ="%(ImpLib.ModuleDefinitionFile)"
Name ="%(ImpLib.Name)"
OutputFile ="%(ImpLib.OutputFile)"
RemoveObjects ="%(ImpLib.RemoveObjects)"
SubSystem ="%(ImpLib.SubSystem)"
SuppressStartupBanner ="%(ImpLib.SuppressStartupBanner)"
TargetMachine ="%(ImpLib.TargetMachine)"
Verbose ="%(ImpLib.Verbose)"
TrackerLogDirectory ="%(ImpLib.TrackerLogDirectory)"
TLogReadFiles ="@(LIBTLogReadFiles)"
TLogWriteFiles ="@(LIBTLogWriteFiles)"
ToolExe ="$(LIBToolExe)"
ToolPath ="$(LIBToolPath)"
TrackFileAccess ="$(TrackFileAccess)"
MinimalRebuildFromTracking ="%(ImpLib.MinimalRebuildFromTracking)"
ToolArchitecture ="$(LibToolArchitecture)"
TrackerFrameworkPath ="$(LibTrackerFrameworkPath)"
TrackerSdkPath ="$(LibTrackerSdkPath)"
AcceptableNonZeroExitCodes ="%(ImpLib.AcceptableNonZeroExitCodes)"
>
</LIBA>
</Target>
<!-- Prevent attempt to embed manifest -->
<PropertyGroup><EmbedManifestBy></EmbedManifestBy></PropertyGroup>
<!-- Undefine the manifest tool task -->
<Target Name="Manifest" Condition="'@(Manifest)' != ''" />
<!-- Older versions of MASM choke on the ErrorReporting switch, so remove it -->
<ItemDefinitionGroup>
<MASM>
<ErrorReporting></ErrorReporting>
</MASM>
</ItemDefinitionGroup>
<!-- *******************************************************************************************
BscMake
******************************************************************************************* -->
<Target Name="BscMake"
Condition="'@(BscMake)' != ''">
<ItemGroup>
<BscMake Condition="'@(BscMake)' != ''">
<MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
</BscMake>
</ItemGroup>
<PropertyGroup>
<BSCMakeToolArchitecture Condition="'$(BSCMakeToolArchitecture)' == ''">$(DefaultToolArchitecture)</BSCMakeToolArchitecture>
</PropertyGroup>
<BSCMakeA
Sources ="@(BscMake)"
SuppressStartupBanner ="%(BscMake.SuppressStartupBanner)"
OutputFile ="%(BscMake.OutputFile)"
PreserveSBR ="%(BscMake.PreserveSBR)"
TrackerLogDirectory ="%(BscMake.TrackerLogDirectory)"
MinimalRebuildFromTracking ="%(BscMake.MinimalRebuildFromTracking)"
ToolArchitecture ="$(BSCMakeToolArchitecture)"
TrackerFrameworkPath ="$(BSCMakeTrackerFrameworkPath)"
TrackerSdkPath ="$(BSCMakeTrackerSdkPath)"
TLogReadFiles ="@(BSCMakeTLogReadFiles)"
TLogWriteFiles ="@(BSCMakeTLogWriteFiles)"
ToolExe ="$(BSCMakeToolExe)"
ToolPath ="$(BSCMakeToolPath)"
TrackFileAccess ="$(TrackFileAccess)"
AcceptableNonZeroExitCodes ="%(BscMake.AcceptableNonZeroExitCodes)"
>
</BSCMakeA>
</Target>
<Import Project="$(VCTargetsPath)\Platforms\Win32\ImportAfter\*.v60.targets" Condition="Exists('$(VCTargetsPath)\Platforms\Win32\ImportAfter')" />
</Project>
-----------------------------------------------------

--
HaeRim Lee ()
InvestWare, Inc. (())
MultiCharts & TradeStation (2000i/8i) Services Provider
MP: +82-10-4035-2873
MSN: [email removed]
Nate: [email removed]
Skype:ehaerim
GTalk: ehaerim
Yahoo:ehaerim
Oct 29, 2013 at 9:01 PM
Can someone fix this issue please?
Coordinator
Oct 30, 2013 at 12:56 AM
What does your project file specify for DebugInformationFormat? Have you tried changing to something other than None in your project properties?
Oct 30, 2013 at 3:10 AM
If you see the targets file in the initial post, you will find several places for DebugInformationFormat.

...
<ProgramDataBaseFileName Condition="'%(ClCompile.DebugInformationFormat)' == '' or '%(ClCompile.DebugInformationFormat)' == 'None' or '%(ClCompile.DebugInformationFormat)' == 'OldStyle'"></ProgramDataBaseFileName>
...
DebugInformationFormat ="%(ClCompile.DebugInformationFormat)"
...

I am not sure what to do with these lines?
Coordinator
Oct 30, 2013 at 3:56 AM
The files you posted are from Daffodil. You should be looking at your project file.
Oct 30, 2013 at 5:45 AM
Edited Oct 30, 2013 at 5:48 AM
I don't know what to check from project file for 'DebugInformationFormat'.
Please tell me what to look at.
Project files are attached.

[Project file]

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
  <Configuration>Debug</Configuration>
  <Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
  <Configuration>Release</Configuration>
  <Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<SccProjectName />
<SccLocalPath />
<Keyword>MFCProj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>Dynamic</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v60</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>Dynamic</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v60</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>c:\InvestWare\AutoTrade\MRZ_ML\bin\</OutDir>
<IntDir>$(Configuration)$(PlatformArchitecture)\</IntDir>
<LinkIncremental>false</LinkIncremental>
<TargetName>AutoTrade</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>c:\InvestWare\AutoTrade\MRZ_ML\bin\</OutDir>
<IntDir>$(Configuration)$(PlatformArchitecture)\</IntDir>
<LinkIncremental>false</LinkIncremental>
<TargetName>AutoTrade</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
  <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  <InlineFunctionExpansion>Default</InlineFunctionExpansion>
  <FunctionLevelLinking>false</FunctionLevelLinking>
  <Optimization>Disabled</Optimization>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <WarningLevel>Level3</WarningLevel>
  <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  <AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
  <BrowseInformation>true</BrowseInformation>
  <PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).bsc</PrecompiledHeaderOutputFile>
  <PrecompiledHeader>Use</PrecompiledHeader>
  <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
  <ObjectFileName>$(IntDir)</ObjectFileName>
  <ProgramDataBaseFileName>$(IntDir)vc$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
  <StructMemberAlignment>1Byte</StructMemberAlignment>
</ClCompile>
<Midl>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  <TypeLibraryName>.\AutoOrder___Win32_Debug\AutoOrder.tlb</TypeLibraryName>
  <TargetEnvironment>Win32</TargetEnvironment>
</Midl>
<ResourceCompile>
  <Culture>0x0412</Culture>
  <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Bscmake>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <OutputFile>$(IntDir)$(TargetName).bsc</OutputFile>
</Bscmake>
<Link>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <GenerateDebugInformation>true</GenerateDebugInformation>
  <SubSystem>Windows</SubSystem>
  <OutputFile>$(OutDir)$(TargetFileName)</OutputFile>
  <AdditionalLibraryDirectories>Lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  <AdditionalDependencies>winmm.lib;IVW_TS_Support.lib;%(AdditionalDependencies)</AdditionalDependencies>
  <ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
</Link>
<Xdcmake>
  <OutputFile>$(IntDir)$(TargetName).xml</OutputFile>
</Xdcmake>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
  <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
  <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
  <StringPooling>true</StringPooling>
  <FunctionLevelLinking>true</FunctionLevelLinking>
  <Optimization>MaxSpeed</Optimization>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <WarningLevel>Level3</WarningLevel>
  <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  <AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
  <BrowseInformation>true</BrowseInformation>
  <PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).bsc</PrecompiledHeaderOutputFile>
  <PrecompiledHeader>Use</PrecompiledHeader>
  <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
  <ObjectFileName>$(IntDir)</ObjectFileName>
  <ProgramDataBaseFileName>$(IntDir)vc$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
  <StructMemberAlignment>1Byte</StructMemberAlignment>
</ClCompile>
<Midl>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  <TypeLibraryName>.\AutoOrder.tlb</TypeLibraryName>
  <TargetEnvironment>Win32</TargetEnvironment>
</Midl>
<ResourceCompile>
  <Culture>0x0412</Culture>
  <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Bscmake>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <OutputFile>$(IntDir)$(TargetName).bsc</OutputFile>
</Bscmake>
<Link>
  <SuppressStartupBanner>true</SuppressStartupBanner>
  <GenerateDebugInformation>false</GenerateDebugInformation>
  <SubSystem>Windows</SubSystem>
  <OutputFile>$(OutDir)$(TargetFileName)</OutputFile>
  <AdditionalLibraryDirectories>Lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  <AdditionalDependencies>winmm.lib;IVW_TS_Support.lib;%(AdditionalDependencies)</AdditionalDependencies>
  <ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
</Link>
<Xdcmake>
  <OutputFile>$(IntDir)$(TargetName).xml</OutputFile>
</Xdcmake>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="AccOrderDialog.cpp" />
<ClCompile Include="AccPwdDialog.cpp" />
<ClCompile Include="AutoChangeDialog.cpp" />
<ClCompile Include="AutoOrder.cpp" />
<ClCompile Include="AutoOrderDlg.cpp" />
<ClCompile Include="AutoOrderDlgGrid.cpp" />
<ClCompile Include="AutoOrderPacket.cpp" />
<ClCompile Include="AutoRichEditCtrl.cpp" />
<ClCompile Include="CheckOrderDialog.cpp" />
<ClCompile Include="CloseCancelDialog.cpp" />
<ClCompile Include="ConcludeFuturesInfo.cpp" />
<ClCompile Include="DigitEdit.cpp" />
<ClCompile Include="EduCheck1.cpp" />
<ClCompile Include="EduCheck2.cpp" />
<ClCompile Include="EduCheck3.cpp" />
<ClCompile Include="EnvDialog.cpp" />
<ClCompile Include="excel9.cpp" />
<ClCompile Include="ExListCtrl.cpp" />
<ClCompile Include="FilledOrderEventHandler.cpp" />
<ClCompile Include="Filter2Dialog.cpp" />
<ClCompile Include="FilterDialog.cpp" />
<ClCompile Include="font.cpp" />
<ClCompile Include="global.cpp" />
<ClCompile Include="Grid.cpp" />
<ClCompile Include="GroupDialog.cpp" />
<ClCompile Include="GroupViewDialog.cpp" />
<ClCompile Include="HalfAutoOrderPacket.cpp" />
<ClCompile Include="HistoryDialog.cpp" />
<ClCompile Include="HistoryGrid.cpp" />
<ClCompile Include="HyperlinkStatic.cpp" />
<ClCompile Include="IPC.cpp" />
<ClCompile Include="ItemListCtrl.cpp" />
<ClCompile Include="itgmlinkctl.cpp" />
<ClCompile Include="Label.cpp" />
<ClCompile Include="LeftFuturesInfo.cpp" />
<ClCompile Include="Messageq.cpp" />
<ClCompile Include="msflexgrid.cpp" />
<ClCompile Include="MyDialog.cpp" />
<ClCompile Include="MyTab.cpp" />
<ClCompile Include="OpenEventHandler.cpp" />
<ClCompile Include="OpenPositionDialog.cpp" />
<ClCompile Include="Packet.cpp" />
<ClCompile Include="picture.cpp" />
<ClCompile Include="RaderMyButton.cpp" />
<ClCompile Include="rowcursor.cpp" />
<ClCompile Include="StdAfx.cpp">
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
  <PrecompiledHeaderFile Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">stdafx.h</PrecompiledHeaderFile>
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|
Coordinator
Oct 30, 2013 at 12:50 PM
I don't see that DebugInformationFormat is set in your project file. Your project file imports Microsoft.Cpp.UpgradeFromVC60.props and Microsoft.Cpp.$(Platform).user.props, so you should check there as well.

What is displayed in your project properties for Debug Information Format (under C/C++|General)?

I can't tell from the information you have provided whether this is a bug in Daffodil, or if you just have set an invalid value for DebugInformationFormat. If you can create a new project from scratch that demonstrates the problem, please start a new thread in the Issues section and let me know the steps to reproduce it so I can investigate.
Coordinator
Oct 30, 2013 at 2:19 PM
Edited Oct 30, 2013 at 2:40 PM
I took a look at the Daffodil code to see what might trigger that error message. The current version of Daffodil should correctly map a value of None without error, and it does in my testing. However, an older version of Daffodil.CPPTasks.Win32.v60.dll could cause this error.

I see that I forgot to update the DLL version when I made those changes in 2012. This would cause the installer to not replace the files when upgrading. I have now fixed this and will upload the new build shortly. Please try installing the update and report back. Alternatively, you can completely uninstall, then reinstall the version you already have.
Oct 30, 2013 at 3:52 PM
I uninstalled and reinstalled with 29115 which is uploaded today.
And I open/compile the VC6 project again but the same error.

FYI, the C++/General/Debug Information Fomat is set to 'None' and Linker/Debugging/Debug Information Format is set to 'Microsoft Format(/DEBUGTYPE:CV)'.
If this is wrong, please tell me what value to set to.

At the moment, I manually changed 'None' to 'Program Database (/Zi)' and it compiles ok now.
Oct 30, 2013 at 4:31 PM
Edited Oct 30, 2013 at 4:42 PM
I have another VC6 mfc project and its Debug Information Format was also 'None'.
So, I changed it to 'Program Database (/Zi)' and tried to compile it.
This time I got a compiler error (of course no error when compiling directly using VC6 IDE):

TzSpecificLocalTimeToSystemTime : undeclared identifier.
I even explicitly included 'winbase.h', but the result was the same.

If I change the platform toolset to v100 from v60, it is ok.

In summary,
VC6 IDE compiles fine.
VC2010 with v60 toolset fails to recognize TzSpecificLocalTimeToSystemTime regardless of winbase.h inclusion.
VC2010 with v100 toolset succeeds.

Would this issue be problem of daffodil by any chance?

[upd] I open again one more vc6 mfc project which compiles ok with VC2010+v60.
Then I inserted the following code and got the same 'undeclared identifier' error.
// Get the timezone info.
TIME_ZONE_INFORMATION TimeZoneInfo;
GetTimeZoneInformation( &TimeZoneInfo );
SYSTEMTIME st1, st2;

// Convert local time to UTC.
TzSpecificLocalTimeToSystemTime( &TimeZoneInfo,
                                                                 &st1,
                                                                 &st2 );
So, this issue seems to be specific to VC2010+v60.
Coordinator
Oct 30, 2013 at 4:48 PM
ehaerim wrote:
FYI, the C++/General/Debug Information Fomat is set to 'None' and Linker/Debugging/Debug Information Format is set to 'Microsoft Format(/DEBUGTYPE:CV)'.
If this is wrong, please tell me what value to set to.
There is no "wrong" setting; any valid setting should work fine. You say it was set to 'None', but was it a bold None (indicating a project file level setting), or a normal None (indicating an inherited value)? Do you see different results if you choose 'inherit from project defaults' vs. explicitly choosing 'None'?

Unfortunately, without a reproducible case, I can't say whether it is a problem with Daffodil or some other settings or environmental factors on your system. Please try to create a new project form scratch that reliably reproduces the problem. You can email the necessary files and instructions to me at owenw@manusoft.com.
Oct 30, 2013 at 5:40 PM
There is no "wrong" setting; any valid setting should work fine. You say it was set to 'None', but was it a bold None (indicating a project file level setting), or a normal None (indicating an inherited value)?
=> It was a normal 'None'.
Weirdly, now every settings work fine. This is so after I once changed the Debug Information Format from 'None' to 'Program Database (/Zi)'. After that, any settings seem to work fine. So, somehow one-time change of Debug Information Format must have triggered something.
Do you see different results if you choose 'inherit from project defaults' vs. explicitly choosing 'None'?
=> Since any settings work fine at this moment, I can tell any more.
Coordinator
Oct 30, 2013 at 6:11 PM
Hmm, did you close all instances of Visual Studio after you uninstalled and reinstalled Daffodil? If not, that might explain your observations. Unless you close all instances, you may have still been using a cached version of the incorrect files. In any case, I'm glad the problem seems to be resolved.
Oct 30, 2013 at 7:22 PM
Yes, I closed all instances of VS before uninstalling Daffodil. The only thing I didn't check was if there were any dangling devenve.exe processes, but I doubt it.
Anyway, it's solved.

Now, would you check the issue of TzSpecificLocalTimeToSystemTime?

thx
Coordinator
Oct 30, 2013 at 7:36 PM
Sorry, I have no idea what the problem is with TzSpecificLocalTimeToSystemTime. I will need a reproducible case to look at here to know for sure, but I doubt it has anything to do with Daffodil.
Oct 30, 2013 at 9:21 PM
Well, I've createad a new VC6 project calld tz and put the test code only.
TIME_ZONE_INFORMATION TimeZoneInfo;
GetTimeZoneInformation( &TimeZoneInfo );
SYSTEMTIME st1, st2;
TzSpecificLocalTimeToSystemTime( &TimeZoneInfo,&st1,&st2 );
Again it works with v100 but fails with v60.
So this is reproducible.
With v60,
1>------ Rebuild All started: Project: tz, Configuration: Debug Win32 ------
1> StdAfx.cpp
1> tz.cpp
1> tzDlg.cpp
1>c:\InvestWare\test\tz\tzDlg.cpp(125): error C2065: 'TzSpecificLocalTimeToSystemTime' : undeclared identifier
1> Generating Code...
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
With v100,
1>------ Rebuild All started: Project: tz, Configuration: Debug Win32 ------
1> StdAfx.cpp
1> _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1> tzDlg.cpp
1> tz.cpp
1>c:\investware\test\tz\tz.cpp(52): warning C4996: 'CWinApp::Enable3dControls': CWinApp::Enable3dControls is no longer needed. You should remove this call.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(5380) : see declaration of 'CWinApp::Enable3dControls'
1> Generating Code...
1> tz.vcxproj -> c:\InvestWare\test\tz\.\Debug\tz.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

I attach the whole project but not sure you will get it. It's just 28KB size.
If not, please let me know your direct email address and I will email the project.


Coordinator
Oct 30, 2013 at 9:25 PM
Edited Oct 30, 2013 at 9:26 PM
ehaerim wrote:
If not, please let me know your direct email address and I will email the project.
Please see the earlier message for my email address.
Nov 1, 2013 at 5:46 AM
Hi
I sent you a project zip file to test the issue of TzSpecificLocalTimeToSystemTime error.
Have you tested it on your end?
Please let me know.


Coordinator
Nov 1, 2013 at 2:55 PM
Sorry, I did not receive your email. I've checked my email filter, but I see no sign of it. Please send again using the subject "DebugInformationFormat".
Nov 1, 2013 at 8:01 PM
I sent a new email to [email removed] with the followings:
- title : followinVC6 project file for TzSpecificLocalTimeToSystemTim issue
- attachment : tz.zip_ (please remove _ at the end when downloading)
I am not sure you can receive file with that email address.
If you can't, just let me know how I can send a file.
thx


Coordinator
Nov 1, 2013 at 9:18 PM
Edited Nov 1, 2013 at 9:23 PM
Very strange, but I still did not receive it. Try sending an email with no attachment. I receive .zip files all the time with that email address, so I don't think that's the problem. In the meantime, please email the files to owenw@bright.net to see if they make it at that mailbox.
Nov 1, 2013 at 10:33 PM
the dropbox folder requires id/pw to login first of all.
so I uploaded the project file in one of my temporaray ftp server for you to download from the following link.
Let me know if you don't get it.


Coordinator
Nov 1, 2013 at 10:52 PM
I got the file, thanks. I understood that your project builds without error in VS6, but I get the following error in both VS6 and VS 2010 with the v60 toolset:
error C2065: 'TzSpecificLocalTimeToSystemTime' : undeclared identifier

If your project is building without error in VS6, then you either have something else affecting the build process or you haven't done a clean rebuild. In any case, I don't think the problem is related to Daffodil.
Nov 2, 2013 at 12:23 AM
No, I got error with v60, but no error with v100. You seemed to understand reversely.
Anyway, if you get the C2065 error with v60, please check if winbase.h is included in the VC6 project.
And then rebuild once again under v60 to see if you still get the C2065 error.
My point is just make it sure the project compiles successfully with v60 toolset.
And then do the rebuild again with v100 to see if you get the same C2065.
Please let me know.


Coordinator
Nov 2, 2013 at 4:38 AM
I just checked, and that function is not declared in the v60 headers. As I expected, this has nothing to do with Daffodil. The function simply isn't in the VC 98 SDK.
Nov 2, 2013 at 5:10 AM
Have you compiled the project with VC6 IDE, not VC10 IDE?
With VC6 IDE, it compiles ok and TzSpecificLocalTimeToSystemTime is defined in C:\Program Files (x86)\Microsoft SDK\include\WinBase.h file.
VC6 IDE - ok
VC10 IDE with v60 - fail
VC10 IDE with v100 - ok
This could mean VC10 IDE with v60 fails to find WinBase.h file, somehow?
Please check once again.
thx


Coordinator
Nov 2, 2013 at 11:47 AM
Edited Nov 2, 2013 at 4:36 PM
Ok, then I did understand you correctly in the first place. A clean VS 6 installation uses the Windows SDK that comes with VC 98, so in my case, both VS 6 and VS 2010 with v60 toolset use the file at "%ProgramFiles(x86)%\Microsoft Visual Studio\VC98\Include\WINBASE.H". It looks like your VS 6 is set to use the SDK in "%ProgramFiles(x86)%\Microsoft SDK". Offhand I'm not sure why your VS 6 IDE "sees" a different SDK than VS 2010 with v60, but this is what you need to explore.
Nov 2, 2013 at 8:38 PM
[1] First of all, I use February 2003 SDK for VC6 because it is the last official PSDK for VC6.
And I added its include folder(C:\Program Files (x86)\Microsoft SDK\include) as the first one for VC6's include search list. That's why I didn't get any compile error from VC6 IDE and you probably do not have that SDK. That is, you need that Feb. 2003 SDK to use TzSpecificLocalTimeToSystemTime with VC6.
[2] Here is my VC2010's VC++ Directories from Configuration Properties.
- Include Directories : $(VCInstallDir)PlatformSDK\include;C:\Program Files (x86)\Visual Leak Detector\include;$(IncludePath)
- Library Directories : $(VCInstallDir)PlatformSDK\lib;$(LibraryPath)
, where $(VCInstallDir) is defined as 'C:\Program Files (x86)%\Microsoft Visual Studio\VC98\'.
for v60 toolset.
[3] So, I prepended C:\Program Files (x86)\Microsoft SDK\include and it compiles ok now.
[4] Finally, it comes to the conclusion that Daffodil fails to pull out the correct list of include/lib folders from VC6's project file when v60 toolset is selected. VC6 IDE-Tools-Directories\Include shows C:\Program Files (x86)\Microsoft SDK\include at the top along with VC6's normal include list.
But VC10 IDE+v60 settings does not have it and that's why I got C2065 error.
Is this the way Daffodil works?
Does Daffodil read the VC6's Directories when v60 toolset is selected?
Maybe it's not Daffodil's but VC10 IDE's responsibility to read correctly VC6's directories when converting VC6 project files into VC10, but I am not sure.
It would be the best for Daffodil to dynamically and correctly pulls out the correct list of directories depending on the selection of toolset: v60, v70, v80, v100, and so on....
best regards


Coordinator
Nov 2, 2013 at 8:57 PM
That is what I suspected. I did a quick test to verify that indeed, Daffodil ignores the directories in VS 6 options. It's also correct (and by design) that the VS 2010 IDE is not responsible for include directories; those are now only defined in properties and targets files so that builds from outside the IDE are exactly the same as builds from inside the IDE.

It's correct to say that Daffodil is working as designed (with hardcoded directories based relative to the VC installation folder). I will investigate to see how difficult it would be to incorporate custom directories. I'll need to satisfy myself that the custom directories are used in all cases with VC 98, even if building outside the IDE, but if they are, and there is a reliable way of incorporating them, it might be possible to make that change.
Coordinator
Nov 3, 2013 at 12:10 AM
After further investigation, I've decided that it's best to leave the current Daffodil design unchanged. Under the current design, the directories in all platform toolsets are hardcoded to what VC uses out-of-the-box, and these never change unless explicitly overridden in the project. This makes projects very portable from one system to another, and completely independent of any local registry settings. If the directories were to be linked to settings saved in the registry, a project would lose portability.

In this particular case, you should duplicate the needed directory changes in a new property sheet, then import that property sheet into your project. You can do all that easily in the VS 2010 UI via Property Manager. This will obviously introduce into your project a dependency on the February 2003 SDK, but it will result in a portable project that, if all dependent libraries are present, builds exactly the same binary on any system.

I hope this makes sense. Feedback is always welcome of course, but I hope this issue is now settled.