Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

Add SDKs to my solution.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cmp - 29 Nov 2007 10:16 GMT
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!
voidcoder - 29 Nov 2007 12:51 GMT
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

> Hello,
>
[quoted text clipped - 7 lines]
>
> Thnaks  team!
cmp - 29 Nov 2007 14:04 GMT
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,

> Go to Configuration Manager and add a new configuration
> (or copy one of the existing configs), then pick up
[quoted text clipped - 15 lines]
>>
>> Thnaks  team!
voidcoder - 29 Nov 2007 14:10 GMT
I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?

--
Oleg

> Hi,
>
[quoted text clipped - 27 lines]
>>>
>>> Thnaks  team!
cmp - 29 Nov 2007 15:01 GMT
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!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.