Thanks for your answer.
Error I get is:
1>main.c
1>C:\Program Files\Windows CE Tools\wce500\CCXP\include\ARMV4I\winnt.h(2975)
: error C2061: syntax error : identifier 'PCONTEXT'
1>C:\Program Files\Windows CE Tools\wce500\CCXP\include\ARMV4I\winnt.h(2976)
: error C2059: syntax error : '}'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(1405) : error C2061: syntax error
: identifier 'LPCONTEXT'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(1405) : error C2059: syntax error
: ';'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2146: syntax error
: missing ')' before identifier 'lpContext'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2081: 'LPCONTEXT'
: name in formal parameter list illegal
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2061: syntax error
: identifier 'lpContext'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2059: syntax error
: ';'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2090) : error C2059: syntax error
: ')'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2097) : error C2143: syntax error
: missing ')' before '*'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2097) : error C2143: syntax error
: missing '{' before '*'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2098) : error C2059: syntax error
: ')'
1>.\main.c(122) : warning C4133: 'function' : incompatible types - from
'LPTSTR' to 'const wchar_t *'
1>.\main.c(143) : error C2065:
'strcpy_instead_use_StringCbCopyA_or_StringCchCopyA' : undeclared identifier
1>.\main.c(222) : error C2065:
'strcat_instead_use_StringCbCatA_or_StringCchCatA' : undeclared identifier
1>.\main.c(228) : warning C4133: 'function' : incompatible types - from
'WCHAR [260]' to 'LPCSTR'
1>.\main.c(242) : warning C4133: 'function' : incompatible types - from
'CHAR [260]' to 'LPCWSTR'
1>cmd_opt.c
1>Generating Code...
1>Build log was saved at "file://c:\samples\Md5SumTarget\Md5SumTarget\CCXP
(ARMV4I)\Release\BuildLog.htm"
1>Md5SumTarget - 14 error(s), 3 warning(s)
> I suspect some solution settings are not set
> automatically when creating new configuration.
[quoted text clipped - 34 lines]
>>>>
>>>> Thnaks team!
voidcoder - 29 Nov 2007 15:26 GMT
It looks like some preprocessor defs are not defined
or defined incorrectly for the added manually configuration.
I'd open *.vcproj file in a text editor and compare
working configuration vs. non working...
--
Oleg
> Thanks for your answer.
>
[quoted text clipped - 108 lines]
>>>>>
>>>>> Thnaks team!
cmp - 29 Nov 2007 16:10 GMT
Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;_CONSOLE;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE"
Culture="1033"
AdditionalIncludeDirectories="$(IntDir)"
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,5.00"
OutputFile="$(OutDir)/md5sum_CE5-CE6.exe"
LinkIncremental="1"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)/md5sum_CE5-CE6.pdb"
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
OptimizeReferences="2"
EnableCOMDATFolding="2"
EntryPointSymbol=""
/>
In non-working project I do not have above definitions, except
OutputDirectory and IntermedaiteDirectory, that has different values. In
non-working project: (I create my app selecting one SDK and later I try to
add a new SDK using configuration manager).
OutputDirectory="$(SolutionDir)CCXP (ARMV4I)\$(ConfigurationName)"
IntermediateDirectory="CCXP (ARMV4I)\$(ConfigurationName)"
ConfigurationType="1"
why If I add SDK in a project already created, my project do not have this
definitions?
MS bug?
Thanks,
> It looks like some preprocessor defs are not defined
> or defined incorrectly for the added manually configuration.
[quoted text clipped - 122 lines]
>>>>>>
>>>>>> Thnaks team!
voidcoder - 29 Nov 2007 16:24 GMT
I'm really not going to find it for you, try comparing
yourself. Just create one project with that SDK selected
in wizard (which is compiling correctly) and another project
with same SDK added later through Configuration Settings
(which is not compiling). Then try comparing *.vcproj files
for both projects to find the difference. I bet it is some
preprocessor defs, paths or something similar ...
--
Oleg
> Configuration working has this definitions in SDK: (I create my app
> selecting in wizard all my SDKs)
[quoted text clipped - 172 lines]
>>>>>>>
>>>>>>> Thnaks team!
cmp - 29 Nov 2007 18:21 GMT
Yes, all the differences was I send you before.
non-working project does not have PreprocessorDefinitions. but now.. i do
not know how to fix this :(
Thanks,
Bye,
> I'm really not going to find it for you, try comparing
> yourself. Just create one project with that SDK selected
[quoted text clipped - 184 lines]
>>>>>>>>
>>>>>>>> Thnaks team!
voidcoder - 29 Nov 2007 19:48 GMT
So now when you see the differences, just copy the missing (different)
configuration settings from the working *.vcproj. You can also change
those setting through Solution Properties -> Configuration Properties.
For instance, to change/add PreprocessorDefinitions go to
Properties -> Configuration Properties -> C/C++ -> Preprocessor and
modify "Preprocessor Definitions" field ...
--
Oleg
> Yes, all the differences was I send you before.
>
[quoted text clipped - 192 lines]
>>>>>>>>>
>>>>>>>>> Thnaks team!
cmp - 29 Nov 2007 21:20 GMT
Hi,
You are right,
I have added this in preprocessor option:
NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;_CONSOLE;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE
and now it works ok, but from user point of view... to do this is ugly.
Anyway, it works, thanks!!
> So now when you see the differences, just copy the missing (different)
> configuration settings from the working *.vcproj. You can also change
[quoted text clipped - 202 lines]
>>>>>>>>>>
>>>>>>>>>> Thnaks team!
voidcoder - 29 Nov 2007 22:18 GMT
I agree, it is quite annoying. At least it is fixed in VS2008.
--
Oleg
> Hi,
>
[quoted text clipped - 212 lines]
>>>>>>>>>>>
>>>>>>>>>>> Thnaks team!