473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Add SDKs to my solution.

cmp
Hello,

If I have a Visual studio project configured to vbuild againts one SDK.
How is the normal procedure to build that solution against other different
SDK that I have installed after previous application was created.

Is there in VS any menu or any option to configure a new SDK to add to our
solution? or my solution only can configure SDKs in the wizard when you
create the app?

Thnaks team!
Nov 29 '07 #1
11 1731

Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
--
Oleg
cmp wrote:
Hello,

If I have a Visual studio project configured to vbuild againts one SDK.
How is the normal procedure to build that solution against other different
SDK that I have installed after previous application was created.

Is there in VS any menu or any option to configure a new SDK to add to our
solution? or my solution only can configure SDKs in the wizard when you
create the app?

Thnaks team!

Nov 29 '07 #2
cmp
Hi,

You are right, I try that option but I get errors when I build my app with
new SDK added.

If I create a new project and in the wizard I select my SDKs I can build
against all SDKs without errors.

any idea about why errors after adding a new SDK?

Thanks,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:e0**************@TK2MSFTNGP03.phx.gbl...
>
Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
--
Oleg
cmp wrote:
>Hello,

If I have a Visual studio project configured to vbuild againts one SDK.
How is the normal procedure to build that solution against other
different SDK that I have installed after previous application was
created.

Is there in VS any menu or any option to configure a new SDK to add to
our solution? or my solution only can configure SDKs in the wizard when
you create the app?

Thnaks team!

Nov 29 '07 #3

I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
--
Oleg
cmp wrote:
Hi,

You are right, I try that option but I get errors when I build my app with
new SDK added.

If I create a new project and in the wizard I select my SDKs I can build
against all SDKs without errors.

any idea about why errors after adding a new SDK?

Thanks,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:e0**************@TK2MSFTNGP03.phx.gbl...
>Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
--
Oleg
cmp wrote:
>>Hello,

If I have a Visual studio project configured to vbuild againts one SDK.
How is the normal procedure to build that solution against other
different SDK that I have installed after previous application was
created.

Is there in VS any menu or any option to configure a new SDK to add to
our solution? or my solution only can configure SDKs in the wizard when
you create the app?

Thnaks team!

Nov 29 '07 #4
cmp
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_StringCchCopy A' : 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)
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP05.phx.gbl...
>
I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
--
Oleg
cmp wrote:
>Hi,

You are right, I try that option but I get errors when I build my app
with new SDK added.

If I create a new project and in the wizard I select my SDKs I can build
against all SDKs without errors.

any idea about why errors after adding a new SDK?

Thanks,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:e0**************@TK2MSFTNGP03.phx.gbl...
>>Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
--
Oleg
cmp wrote:
Hello,

If I have a Visual studio project configured to vbuild againts one SDK.
How is the normal procedure to build that solution against other
different SDK that I have installed after previous application was
created.

Is there in VS any menu or any option to configure a new SDK to add to
our solution? or my solution only can configure SDKs in the wizard when
you create the app?

Thnaks team!
Nov 29 '07 #5

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
cmp wrote:
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_StringCchCopy A' : 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)
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP05.phx.gbl...
>I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
--
Oleg
cmp wrote:
>>Hi,

You are right, I try that option but I get errors when I build my app
with new SDK added.

If I create a new project and in the wizard I select my SDKs I can build
against all SDKs without errors.

any idea about why errors after adding a new SDK?

Thanks,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:e0**************@TK2MSFTNGP03.phx.gbl...
Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
--
Oleg
cmp wrote:
Hello,
>
If I have a Visual studio project configured to vbuild againts one SDK.
How is the normal procedure to build that solution against other
different SDK that I have installed after previous application was
created.
>
Is there in VS any menu or any option to configure a new SDK to add to
our solution? or my solution only can configure SDKs in the wizard when
you create the app?
>
Thnaks team!
Nov 29 '07 #6
cmp
Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)

OutputDirectory="$(PlatformName)\$(ConfigurationNa me)"
IntermediateDirectory="$(PlatformName)\$(Configura tionName)"
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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:Ou**************@TK2MSFTNGP06.phx.gbl...
>
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
cmp wrote:
>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_StringCchCop yA' : 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)
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
--
Oleg
cmp wrote:
Hi,

You are right, I try that option but I get errors when I build my app
with new SDK added.

If I create a new project and in the wizard I select my SDKs I can
build against all SDKs without errors.

any idea about why errors after adding a new SDK?

Thanks,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:e0**************@TK2MSFTNGP03.phx.gbl...
Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
>
>
--
Oleg
>
>
cmp wrote:
>Hello,
>>
>If I have a Visual studio project configured to vbuild againts one
>SDK.
>How is the normal procedure to build that solution against other
>different SDK that I have installed after previous application was
>created.
>>
>Is there in VS any menu or any option to configure a new SDK to add
>to our solution? or my solution only can configure SDKs in the wizard
>when you create the app?
>>
>Thnaks team!

Nov 29 '07 #7

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
cmp wrote:
Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)

OutputDirectory="$(PlatformName)\$(ConfigurationNa me)"
IntermediateDirectory="$(PlatformName)\$(Configura tionName)"
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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:Ou**************@TK2MSFTNGP06.phx.gbl...
>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
cmp wrote:
>>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(140 5) : error C2061: syntax
error : identifier 'LPCONTEXT'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(140 5) : error C2059: syntax
error : ';'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2146: syntax
error : missing ')' before identifier 'lpContext'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2081:
'LPCONTEXT' : name in formal parameter list illegal

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2061: syntax
error : identifier 'lpContext'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2059: syntax
error : ';'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 0) : error C2059: syntax
error : ')'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 7) : error C2143: syntax
error : missing ')' before '*'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 7) : error C2143: syntax
error : missing '{' before '*'

1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 8) : 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_StringCchCo pyA' : undeclared
identifier

1>.\main.c(222) : error C2065:
'strcat_instead_use_StringCbCatA_or_StringCchCat A' : 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)
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP05.phx.gbl.. .
I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
--
Oleg
cmp wrote:
Hi,
>
You are right, I try that option but I get errors when I build my app
with new SDK added.
>
If I create a new project and in the wizard I select my SDKs I can
build against all SDKs without errors.
>
any idea about why errors after adding a new SDK?
>
Thanks,
>
>
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:e0**************@TK2MSFTNGP03.phx.gbl.. .
>Go to Configuration Manager and add a new configuration
>(or copy one of the existing configs), then pick up
>the right SDK name in "Platform" field.
>>
>>
>--
>Oleg
>>
>>
>cmp wrote:
>>Hello,
>>>
>>If I have a Visual studio project configured to vbuild againts one
>>SDK.
>>How is the normal procedure to build that solution against other
>>different SDK that I have installed after previous application was
>>created.
>>>
>>Is there in VS any menu or any option to configure a new SDK to add
>>to our solution? or my solution only can configure SDKs in the wizard
>>when you create the app?
>>>
>>Thnaks team!

Nov 29 '07 #8
cmp
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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
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
cmp wrote:
>Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)

OutputDirectory="$(PlatformName)\$(ConfigurationNa me)"
IntermediateDirectory="$(PlatformName)\$(Configura tionName)"
ConfigurationType="1"
CharacterSet="1"
Name="VCCLCompilerTool"
Optimization="2"

PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVE R);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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:Ou**************@TK2MSFTNGP06.phx.gbl...
>>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
cmp wrote:
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_StringCchC opyA' : undeclared
identifier

1>.\main.c(222) : error C2065:
'strcat_instead_use_StringCbCatA_or_StringCchCa tA' : 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)
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP05.phx.gbl. ..
I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
>
>
--
Oleg
>
>
cmp wrote:
>Hi,
>>
>You are right, I try that option but I get errors when I build my app
>with new SDK added.
>>
>If I create a new project and in the wizard I select my SDKs I can
>build against all SDKs without errors.
>>
>any idea about why errors after adding a new SDK?
>>
>Thanks,
>>
>>
>"voidcoder" <vo*******@yahoo.comescribió en el mensaje
>news:e0**************@TK2MSFTNGP03.phx.gbl. ..
>>Go to Configuration Manager and add a new configuration
>>(or copy one of the existing configs), then pick up
>>the right SDK name in "Platform" field.
>>>
>>>
>>--
>>Oleg
>>>
>>>
>>cmp wrote:
>>>Hello,
>>>>
>>>If I have a Visual studio project configured to vbuild againts one
>>>SDK.
>>>How is the normal procedure to build that solution against other
>>>different SDK that I have installed after previous application was
>>>created.
>>>>
>>>Is there in VS any menu or any option to configure a new SDK to add
>>>to our solution? or my solution only can configure SDKs in the
>>>wizard when you create the app?
>>>>
>>>Thnaks team!
Nov 29 '07 #9

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
cmp wrote:
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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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
cmp wrote:
>>Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)

OutputDirectory="$(PlatformName)\$(ConfigurationNa me)"
IntermediateDirectory="$(PlatformName)\$(Configura tionName)"
ConfigurationType="1"
CharacterSet="1"
Name="VCCLCompilerTool"
Optimization="2"

PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEV ER);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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:Ou**************@TK2MSFTNGP06.phx.gbl...
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
cmp wrote:
Thanks for your answer.
>
Error I get is:
1>main.c
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winnt.h(297 5) : error C2061: syntax
error : identifier 'PCONTEXT'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winnt.h(297 6) : error C2059: syntax
error : '}'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(140 5) : error C2061: syntax
error : identifier 'LPCONTEXT'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(140 5) : error C2059: syntax
error : ';'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2146: syntax
error : missing ')' before identifier 'lpContext'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2081:
'LPCONTEXT' : name in formal parameter list illegal
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2061: syntax
error : identifier 'lpContext'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(208 9) : error C2059: syntax
error : ';'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 0) : error C2059: syntax
error : ')'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 7) : error C2143: syntax
error : missing ')' before '*'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 7) : error C2143: syntax
error : missing '{' before '*'
>
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(209 8) : 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_StringCch CopyA' : undeclared
identifier
>
1>.\main.c(222) : error C2065:
'strcat_instead_use_StringCbCatA_or_StringCchC atA' : 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)
>
>
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP05.phx.gbl.. .
>I suspect some solution settings are not set
>automatically when creating new configuration.
>What exactly errors are you getting?
>>
>>
>--
>Oleg
>>
>>
>cmp wrote:
>>Hi,
>>>
>>You are right, I try that option but I get errors when I build my app
>>with new SDK added.
>>>
>>If I create a new project and in the wizard I select my SDKs I can
>>build against all SDKs without errors.
>>>
>>any idea about why errors after adding a new SDK?
>>>
>>Thanks,
>>>
>>>
>>"voidcoder" <vo*******@yahoo.comescribió en el mensaje
>>news:e0**************@TK2MSFTNGP03.phx.gbl.. .
>>>Go to Configuration Manager and add a new configuration
>>>(or copy one of the existing configs), then pick up
>>>the right SDK name in "Platform" field.
>>>>
>>>>
>>>--
>>>Oleg
>>>>
>>>>
>>>cmp wrote:
>>>>Hello,
>>>>>
>>>>If I have a Visual studio project configured to vbuild againts one
>>>>SDK.
>>>>How is the normal procedure to build that solution against other
>>>>different SDK that I have installed after previous application was
>>>>created.
>>>>>
>>>>Is there in VS any menu or any option to configure a new SDK to add
>>>>to our solution? or my solution only can configure SDKs in the
>>>>wizard when you create the app?
>>>>>
>>>>Thnaks team!
Nov 29 '07 #10
cmp
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!!
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:uf**************@TK2MSFTNGP04.phx.gbl...
>
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
cmp wrote:
>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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>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
cmp wrote:
Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)

OutputDirectory="$(PlatformName)\$(ConfigurationNa me)"
IntermediateDirectory="$(PlatformName)\$(Configura tionName)"
ConfigurationType="1"
CharacterSet="1"
Name="VCCLCompilerTool"
Optimization="2"

PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CE VER);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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:Ou**************@TK2MSFTNGP06.phx.gbl...
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
>
>
cmp wrote:
>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(14 05) : error C2061:
>syntax error : identifier 'LPCONTEXT'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(14 05) : error C2059:
>syntax error : ';'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 89) : error C2146:
>syntax error : missing ')' before identifier 'lpContext'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 89) : error C2081:
>'LPCONTEXT' : name in formal parameter list illegal
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 89) : error C2061:
>syntax error : identifier 'lpContext'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 89) : error C2059:
>syntax error : ';'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 90) : error C2059:
>syntax error : ')'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 97) : error C2143:
>syntax error : missing ')' before '*'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 97) : error C2143:
>syntax error : missing '{' before '*'
>>
>1>C:\Program Files\Windows CE
>Tools\wce500\CCXP\include\ARMV4I\winbase.h(20 98) : 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_StringCc hCopyA' : undeclared
>identifier
>>
>1>.\main.c(222) : error C2065:
>'strcat_instead_use_StringCbCatA_or_StringCch CatA' : 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)
>>
>>
>"voidcoder" <vo*******@yahoo.comescribió en el mensaje
>news:%2****************@TK2MSFTNGP05.phx.gbl. ..
>>I suspect some solution settings are not set
>>automatically when creating new configuration.
>>What exactly errors are you getting?
>>>
>>>
>>--
>>Oleg
>>>
>>>
>>cmp wrote:
>>>Hi,
>>>>
>>>You are right, I try that option but I get errors when I build my
>>>app with new SDK added.
>>>>
>>>If I create a new project and in the wizard I select my SDKs I can
>>>build against all SDKs without errors.
>>>>
>>>any idea about why errors after adding a new SDK?
>>>>
>>>Thanks,
>>>>
>>>>
>>>"voidcoder" <vo*******@yahoo.comescribió en el mensaje
>>>news:e0**************@TK2MSFTNGP03.phx.gbl. ..
>>>>Go to Configuration Manager and add a new configuration
>>>>(or copy one of the existing configs), then pick up
>>>>the right SDK name in "Platform" field.
>>>>>
>>>>>
>>>>--
>>>>Oleg
>>>>>
>>>>>
>>>>cmp wrote:
>>>>>Hello,
>>>>>>
>>>>>If I have a Visual studio project configured to vbuild againts
>>>>>one SDK.
>>>>>How is the normal procedure to build that solution against other
>>>>>different SDK that I have installed after previous application
>>>>>was created.
>>>>>>
>>>>>Is there in VS any menu or any option to configure a new SDK to
>>>>>add to our solution? or my solution only can configure SDKs in
>>>>>the wizard when you create the app?
>>>>>>
>>>>>Thnaks team!

Nov 29 '07 #11

I agree, it is quite annoying. At least it is fixed in VS2008.
--
Oleg
cmp wrote:
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!!
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:uf**************@TK2MSFTNGP04.phx.gbl...
>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
cmp wrote:
>>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,
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
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
cmp wrote:
Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)
>
OutputDirectory="$(PlatformName)\$(ConfigurationNa me)"
IntermediateDirectory="$(PlatformName)\$(Configura tionName)"
ConfigurationType="1"
CharacterSet="1"
>
>
Name="VCCLCompilerTool"
Optimization="2"
>
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(C EVER);UNDER_CE;WINCE;_CONSOLE;$(ARCHFAM);$(_ARCHFA M_);_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,
>
>
"voidcoder" <vo*******@yahoo.comescribió en el mensaje
news:Ou**************@TK2MSFTNGP06.phx.gbl.. .
>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
>>
>>
>cmp wrote:
>>Thanks for your answer.
>>>
>>Error I get is:
>>1>main.c
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winnt.h(297 5) : error C2061: syntax
>>error : identifier 'PCONTEXT'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winnt.h(297 6) : error C2059: syntax
>>error : '}'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(1 405) : error C2061:
>>syntax error : identifier 'LPCONTEXT'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(1 405) : error C2059:
>>syntax error : ';'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 089) : error C2146:
>>syntax error : missing ')' before identifier 'lpContext'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 089) : error C2081:
>>'LPCONTEXT' : name in formal parameter list illegal
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 089) : error C2061:
>>syntax error : identifier 'lpContext'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 089) : error C2059:
>>syntax error : ';'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 090) : error C2059:
>>syntax error : ')'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 097) : error C2143:
>>syntax error : missing ')' before '*'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 097) : error C2143:
>>syntax error : missing '{' before '*'
>>>
>>1>C:\Program Files\Windows CE
>>Tools\wce500\CCXP\include\ARMV4I\winbase.h(2 098) : 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_StringC chCopyA' : undeclared
>>identifier
>>>
>>1>.\main.c(222) : error C2065:
>>'strcat_instead_use_StringCbCatA_or_StringCc hCatA' : 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)
>>>
>>>
>>"voidcoder" <vo*******@yahoo.comescribió en el mensaje
>>news:%2****************@TK2MSFTNGP05.phx.gbl ...
>>>I suspect some solution settings are not set
>>>automatically when creating new configuration.
>>>What exactly errors are you getting?
>>>>
>>>>
>>>--
>>>Oleg
>>>>
>>>>
>>>cmp wrote:
>>>>Hi,
>>>>>
>>>>You are right, I try that option but I get errors when I build my
>>>>app with new SDK added.
>>>>>
>>>>If I create a new project and in the wizard I select my SDKs I can
>>>>build against all SDKs without errors.
>>>>>
>>>>any idea about why errors after adding a new SDK?
>>>>>
>>>>Thanks,
>>>>>
>>>>>
>>>>"voidcoder" <vo*******@yahoo.comescribió en el mensaje
>>>>news:e0**************@TK2MSFTNGP03.phx.gbl ...
>>>>>Go to Configuration Manager and add a new configuration
>>>>>(or copy one of the existing configs), then pick up
>>>>>the right SDK name in "Platform" field.
>>>>>>
>>>>>>
>>>>>--
>>>>>Oleg
>>>>>>
>>>>>>
>>>>>cmp wrote:
>>>>>>Hello,
>>>>>>>
>>>>>>If I have a Visual studio project configured to vbuild againts
>>>>>>one SDK.
>>>>>>How is the normal procedure to build that solution against other
>>>>>>different SDK that I have installed after previous application
>>>>>>was created.
>>>>>>>
>>>>>>Is there in VS any menu or any option to configure a new SDK to
>>>>>>add to our solution? or my solution only can configure SDKs in
>>>>>>the wizard when you create the app?
>>>>>>>
>>>>>>Thnaks team!

Nov 29 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Wayne Wengert | last post by:
I have a solution. I want to clone it to try some different options. Is there a way to open Solution A, save it as Solution B and then be able to try some things in Solution B without affecting...
10
by: Simon Jefferies | last post by:
Hello, I'm getting a strange problem where when I load up my solution that has three projects:- a managed C++ .NET, one C++ lib, and a VB library. It locks up and doesn't load completely, I...
1
by: Alex Maghen | last post by:
Do you guys have a map that shows me... well... all of Microsoft's published SDKs and how (if) they map to available .NET namespaces/SDKs? This is all incredibly comfusing. I want to avoid using...
0
by: TEK | last post by:
Hello We have a quite huge project. To limit the solution size, rebuild time and so on we have divided the project in two different solution. One solution that holds the buiness entities, or...
3
by: clintonG | last post by:
In the early 1990s there were quite a few Interactive Voice Response (IVR) SDKs that used VB for development. What happened to this category. Its like vanished. Does anybody know how IVR...
3
by: Manikandan | last post by:
Hi, I'm copying projects from a solution in the vss. In my local system i created solution ,added that project(make modification related to solution) When i added this solution to vss, projects...
0
by: techie | last post by:
List of Solution manuals: Engineering Circuit Analysis 6Ed - Hayt Solutions Manual Norbury - Solutions manual for mechanics and thermodynamics Physics For Scientists And Engineers - Solution...
0
by: Trammel | last post by:
Does anyone know where I can find APIs, Objects, SDKs or any technical information on BitTorrent protocols or StreamingAudio? I have tried various searches but all have came-up "blank" :¬/ I...
16
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.