Core Coding Experience in Visual C++ in the Visual Studio 2010 and .NET Framework 4.0 CTP Forum© 2009 Microsoft Corporation. All rights reserved.Fri, 13 Nov 2009 10:15:18 Z422c42cf-f7d2-41c8-96d1-2007f1d0ed53http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/47a51dab-70a2-4375-987e-13734a2ae4b9http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/47a51dab-70a2-4375-987e-13734a2ae4b9Alicia Caleshttp://social.msdn.microsoft.com/Profile/en-US/?user=Alicia%20CalesFORUM LOCKED: Please use the Visual Studio 2010 & .NET Framework 4 Beta 1 Forums<p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri"><span style="font-size:x-small">Thank you for visiting Visual Studio 2010 .Net 4 CTP forums.   Since the Beta1 is now available we <span style="color:#1f497d">are </span>closing down the CTP forums and encourage you to visit the new</span></span><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'"> </span><strong><a href="http://social.msdn.microsoft.com/Forums/en-US/category/VSPreRelease,netdevelopmentprerelease,visualstudioprerelease,vstsprerelease"><span style="font-size:small;font-family:Calibri"><span style="font-size:x-small">Visual Studio 2010 &amp; .NET Framework 4 Beta 1</span></span></a><span style="font-size:small;font-family:Calibri"><span style="font-size:x-small"> </span></span></strong><span style="font-size:small;font-family:Calibri"><span style="font-size:x-small">forums. </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri"><br/><span style="font-size:x-small">Thanks, </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri"><span style="font-size:x-small">Charles Sterling</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri"><span style="font-size:x-small">Program Manager Visual Studio</span></span></p><hr class="sig">Program Manager, Server and Tools Online Operations TeamWed, 20 May 2009 18:54:09 Z2009-05-20T18:54:28Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/3bf77434-c0db-4e32-ae14-2bc35d6d38b4http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/3bf77434-c0db-4e32-ae14-2bc35d6d38b4pvdg42http://social.msdn.microsoft.com/Profile/en-US/?user=pvdg42Cannot Build Simple C++ Console Project jn VS2010Tried a simple &quot;Hello World&quot; program in VS2010. Source code:<br/><br/><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"> <p>#include</p> </font></font></font></span><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"> <p> </p> </font></font></span><font face=Consolas size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-family:Consolas;font-size:x-small"><span style="font-family:Consolas;font-size:x-small"> </span></span><span style="font-family:Consolas;color:#a31515;font-size:x-small"><span style="font-family:Consolas;color:#a31515;font-size:x-small"><span style="font-family:Consolas;color:#a31515;font-size:x-small">&lt;iostream&gt;</span></span></span></p> <span style="font-family:Consolas;font-size:x-small"></span><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"> <p>using</p> </font></font></font></span><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"> <p> </p> </font></font></span><font face=Consolas size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-family:Consolas;font-size:x-small"><span style="font-family:Consolas;font-size:x-small"> </span></span><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small">namespace</span></span></span><span style="font-family:Consolas;font-size:x-small"><span style="font-family:Consolas;font-size:x-small"> std;</span></span></p> <span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"> <p>int</p> </font></font></font></span><font face=Consolas size=2 color="#0000ff"><font face=Consolas size=2 color="#0000ff"> <p> </p> </font></font></span><font face=Consolas size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-family:Consolas;font-size:x-small"><span style="font-family:Consolas;font-size:x-small"> main() <p>{</p> <font face=Consolas size=2><font face=Consolas size=2> <p>cout &lt;&lt;</p> </font></font></span><font face=Consolas size=2> <p> </p> </font></span></p> <p><span style="font-family:Consolas;color:#a31515;font-size:x-small"><span style="font-family:Consolas;color:#a31515;font-size:x-small"><span style="font-family:Consolas;color:#a31515;font-size:x-small">&quot;Hello world from VS 2010!\n&quot;</span></span></span><span style="font-family:Consolas;font-size:x-small"><span style="font-family:Consolas;font-size:x-small">;<font face=Consolas size=2><font face=Consolas size=2> <p> </p> </font></font></span><font face=Consolas size=2> <p> </p> </font></span></p> <p><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small"><span style="font-family:Consolas;color:#0000ff;font-size:x-small">return</span></span></span><span style="font-family:Consolas;font-size:x-small"><span style="font-family:Consolas;font-size:x-small"> 0; <p>}<br/><br/>I created an empty C++ Win32 Console project, then tried to build it with the code above. Works fine in VS2008, but in VS2010, I get:<br/><br/>Error 1 error LNK2019: unresolved external symbol _wmain referenced in function ___tmainCRTStartup MSVCRTD.lib(wcrtexe.obj) VS2010Crash<br/>Error 2 error LNK1120: 1 unresolved externals D:\2009_Spring_Students\VS2010Crash\Debug\VS2010Crash.exe VS2010Crash<br/><br/>?!? How can simple C++ example programs work in VS2010?</p> </span></span></p>Tue, 19 May 2009 19:51:10 Z2009-05-20T13:41:23Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/267022c4-e155-4b96-9679-463be84f2e2bhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/267022c4-e155-4b96-9679-463be84f2e2bBoris Dušekhttp://social.msdn.microsoft.com/Profile/en-US/?user=Boris%20Du%u0161ekD8036 error with converted solution (2008->2010)Hello,<br><br>I am running into a D8036 error when building a converted solution (2008-&gt;2010). More details follow.<br><br>(This paragraph is here just in case it might be the cause of the problem, feel free to skip it on first read.) I converted my 2008 solution with 8 projects (4 EXEs, 4 DLLs, 3 property sheets) to 2010 format according to walkthrough instructions. Only problem I had was that the property sheets that were inherited from other property sheets were not correctly converted, so to workaround (according to another post in this forum), in the next project to convert, I edited it by text editor before conversion and in one configuration (i.e. Debug), I changed name of the directly inherited property sheet to the indirectly inherited. After conversion, I hand-edited both the 2008 and 2010 format project and corrected the name of property sheet back to the real value. This way, since I have 8 projects and 3 property sheets, I was done after 3 projects (including the first where I learned about the problem). I am writing about this just in case it could have had an influence on my actual problem.<br><br>Then I added project-to-project references and typed msbuild.exe Punctus.sln, and it ended with an error (this output is copy/pasted from the Console window):<br><br><blockquote><font face="Courier New">  C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I&quot;\&quot;Z:\Downlo<br>  ads\Boost_1_34_1\&quot;&quot; /I&quot;\&quot;C:\Program Files\GnuWin32\include\&quot;&quot; /I&quot;Z:\platform-<br>  test\Punctus\include\\&quot; /ZI /nologo /W4 /Od /D WIN32 /D _DEBUG /D _WINDOWS /D<br>   _USRDLL /D CZECH_EXPORTS /D Punctus_Czech_DLL /D Punctus_Czech_EXPORTS /D BO<br>  OST_ALL_DYN_LINK /D BOOST_IOSTREAMS_NO_LIB /D &quot;BOOST_LIB_TOOLSET=\\\&quot;vc100\\\<br>  &quot;&quot; /D _SCL_SECURE_NO_WARNINGS /D Punctus_TextSource_DLL /D Punctus_Czech_DLL<br>  /D Punctus_Dict_DLL /D Punctus_Logic_DLL /D _WINDLL /D _UNICODE /D UNICODE /G<br>  m /EHsc /RTC1 /MDd /Fp&quot;.objs\\CzechCzech.pch&quot; /Fo&quot;.objs\\Czech&quot; /Fd&quot;.objs\\Cz<br>  echvc100.pdb&quot; /TP Encodings.cpp Letters.cpp MorphTag.cpp Word.cpp<br><br>  Tracker (omitted, seems the same as above)<br><br>cl : Command line error D8036: '/Fo.objs\\Czech' not allowed with multiple sour<br>ce files<br></font></blockquote><br>Now Czech DLL is really the first to be compiled - basically everything else depends on it. So it seems have setup the project-to-project references correctly. Also the include directories and some of the defines are from one of the indirectly inherited property sheets, so it again seems these work alright.<br><br>Is this something that could result from the involved conversion procedure I described above? Any pointers as to where should I look to solve this D8036 problem?<br><br>Also while I am no DOS expert, it seems to me that some values might be overescaped with backslashes. (i.e. -I&quot;\&quot;Z:\..\boost\&quot;&quot;). But is how it worked with 2008. Nevertheless premature worry when I can't even get the compiler command line options right :-)<br><br>Thanks,<br>Boris<br> Sat, 22 Nov 2008 14:09:13 Z2009-05-16T08:34:31Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/bb1e2b7a-4d98-4990-8126-9deed51de591http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/bb1e2b7a-4d98-4990-8126-9deed51de591Marius Bancilahttp://social.msdn.microsoft.com/Profile/en-US/?user=Marius%20Bancilaauto for class membersHere is a piece of code:<br><br>class foo<br>{<br>   auto data;<br>   const auto MAX;<br>   auto msg;<br><br>public:<br>   foo(int val, string m) : <br>      data(val), <br>      msg(m),<br>      MAX(&quot;42&quot;)<br>   {}<br>};<br><br>The compiler shows 2 errors:<br><br>cpp_auto.cpp(23) : error C2440: 'initializing' : cannot convert from 'std::string' to 'auto'<br>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called<br>cpp_auto.cpp(23) : error C2439: 'foo::msg' : member could not be initialized<br>        c:\users\administrator\documents\visual studio 10\projects\cpp_auto\cpp_auto.cpp(16) : see declaration of 'foo::msg'<br><br>It looks like it treats auto as int (default type when none specified?), but then why does initializing the MAX constant with a string works. As far as I know, auto can only be used locally. So I think there are some problems here with the compiler. <br><br><br> <hr class="sig">Microsoft MVP VC++ | www.mariusbancila.ro | www.mariusbancila.ro/blogSun, 22 Feb 2009 10:00:26 Z2009-05-11T03:55:14Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/721f4973-0831-4ee6-86f8-08102e22e0cahttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/721f4973-0831-4ee6-86f8-08102e22e0cahigh6http://social.msdn.microsoft.com/Profile/en-US/?user=high6Mixed code?Is mixed code any difference in C++.net 2010 from 2005/2008? Or is Mixed code going to be exactly the same? Right now (VS2005) it is a huge pain to code Mixed code.Wed, 22 Apr 2009 22:38:11 Z2009-04-22T22:38:13Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/0763df1d-1e94-45e6-b20e-17f6db4fdaa8http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/0763df1d-1e94-45e6-b20e-17f6db4fdaa8BobH2http://social.msdn.microsoft.com/Profile/en-US/?user=BobH2Is VS10 as good as VS6 yet? As a long time user of VS6 I have been utterly astounded at how the VS designers have left all the great things of VS6 out and have steadfastly ignored VS6 programmers' requests to get proper functionality carried forward. So, questions:<br><br>1. Has anyone made absolutely sure that all the high performance features of the VS6 IDE is in VS10?<br><br>2. Do you, in fact, have hard core C or C++ VS6 programmers that actually know VS6 well, and are capable of making the determinations?<br><br>3. Is there anyone there that realizes (or even cares about) the implications of a an IDE that can save a second here and a second there so that by the end of the day, your IDE helps your development instead of impeding it?<br><br>If there is even a hesitation in these answers then please tell your marketing department to stop bragging about &quot;Inspiring Developer Delight&quot;.<br><br><br>To explain further, yes VS8 has lots of pretty features, can show multiple memory areas when debugging, etc. However in core IDE functionality: editting, display, resource editors, adding variables and functions, and browsing for procedures, variables, (including local variables), etc. VS6 beats VS8 hands down. The old VS6 browser database was more complete, faster, more reliable, better organized, had a more practical and useful display, and had enough detail.<br><br>After forcing myself to work through VS8 stupidities, it has become obvious to me that the new VS versions were started from scratch by someone or some people that thought they knew more than the VS6 developers. Wrong! If VS6 was prettied up, the IDE (I'm not talking about compilers and libraries here) could be seen as an advanced version of the VS series. The VS6 IDE was obviously written by serious C and C++ programmers that had to get a lot done and on slow hardware. It looks like the later VS versions were done by overpaid Basic or Java programmers with job security who really didn't care but figured changing things for the sake of change or doing things backwards was the same as &quot;improving&quot;. IF the new libraries were available under the VS6 IDE, I wouldn't even bother installing the newer IDEs. Even better, if everyone else likes the new IDEs, leave them alone, just retrofit the new compilers into the existing VS6 IDE and browser database for C and C++ developers.<br><br><br>Hard core C/C++/MFC programming does not need pretty or advanced features - it needs basic tools that a programmer can invoke quickly and trust.<br><br>By adding additional clicks everywhere, making changes for the sake of change, and forcing programmers to use someone else's assumptions about how programming &quot;should be done&quot;, you are simply providing a &quot;stupidly&quot; designed system that not only slows development, but guarantees hours of wasted time.<br><br>So, as I have been doing for the past several years, I implore you to make sure all the good features of VS6 are included in VS10. If you need more of an explanation, please contact me directly. If there is no one left at Microsoft that knows VS6, I can send you a copy of my toolbars. In a few minutes, anyone interested not only in &quot;programmer delight&quot; but in programmer productivity, will be able to see that the older VS6 IDE features would make a big difference in current VS.<br><br>You can also look through my (and others) previous posts (complaints). I apologize for some of the comments made in them, but I have been thoroughly disgusted and annoyed with the seeming lack of care, competence, and attitudes in the VS7 and VS8 development and feedback regarding core IDE features. (In other areas, development and followup has been excellent.)<br><br>At this point, I genuinely do not believe there is anyone there anymore that could/would/is smart enough/or is allowed to make sure your core C and C++ IDE tools are brought up to snuff.<br><br>Now IF you've done this, thank you - it should have been done in VS7 and you really should have got your act together for VS8. Hope I won't be doing this for VS12 and VS14...<br><br>Please let me know.<br><br>Bob<br>Sat, 14 Feb 2009 02:19:19 Z2009-04-06T21:21:39Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/fee63411-45bc-45ee-9eee-ec592315058bhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/fee63411-45bc-45ee-9eee-ec592315058bMarius Bancilahttp://social.msdn.microsoft.com/Profile/en-US/?user=Marius%20Bancilawhat is vcpkgsrv.exe?There is this process, vcpkgsrv.exe (Microsoft Visual C++ Package Server) that is consuming 70-90% of my VPC. In the same time, I see the status bar showing &quot;Updating Browse Information (0 of 1)...&quot; This takes forever (literally) though my projects have less than 10 files. I can kill it and then it starts again, working and working and working.<br><hr class="sig">Microsoft MVP VC++ | www.mariusbancila.ro/blog | www.codexpert.roMon, 09 Mar 2009 20:18:50 Z2009-11-13T10:15:17Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/78bbc888-ea82-4da3-8aa6-66cb4a289954http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/78bbc888-ea82-4da3-8aa6-66cb4a289954Mandar123http://social.msdn.microsoft.com/Profile/en-US/?user=Mandar123How to find Which file is in use ?Hi,<br>I am moving or renaming a directory in Windows and if any file from that directory is in use, then it will not move or rename that directory.For this I am using MoveFileW function in C.<br>And the MoveFileW will renames the  text/dll files even though they are in use.<br><br>I have to display the file name which is in use while renaming the directory.<br><br>Please tell me How I can find the file name which is in use? Or any windows  API that tells the list of opened file .<br><br>Thanks in advance.<br><br><br>Regards,<br>Mandar<br><br> Wed, 25 Feb 2009 08:40:22 Z2009-02-25T08:40:24Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/8c16b398-95ed-4eef-bbd4-aad1d6226174http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/8c16b398-95ed-4eef-bbd4-aad1d6226174Horacius ReXhttp://social.msdn.microsoft.com/Profile/en-US/?user=Horacius%20ReXHow to create a c++ project in visual studio 2010Hi,<br><br>I got and installed visual studio 2010 following the instructions from:<br><br>http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=922b4655-93d0-4476-bda4-94cf5f8d4814&amp;displaylang=en<br><br>I have a very simple problem, I just try to create a c++ project, but I can not. I only see &quot;blank project&quot; template.<br><br>Could you please tell me how to do it ?<br><br>Regards<br><br>Horacio<br><br> <hr class="sig">HoracioWed, 21 Jan 2009 09:38:42 Z2009-02-24T07:18:36Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/c36860e0-c080-4d4a-90ad-1bf570867568http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/c36860e0-c080-4d4a-90ad-1bf570867568Nonzenzehttp://social.msdn.microsoft.com/Profile/en-US/?user=NonzenzeSuggestion for the Intellisense team (very easy, very helpful)Hi all, <br><br>I'm posting this in the VC++ forum because that's what I usually code, but I see no reason this isn't applicable to any other language.<br><br>My suggestion would be for a #pragma nointellisense (or similar) that marks the compilation unit not to be indexed into the intellisense database. For instance, suppose I'm writing a small widget in a larger project, since I'm only interacting with a small subset of the entire project, it would be nice if my intellisense included only things within that scope. <br><br>Another use would be to hide API stuff from intellisense when you generally don't need it. For instance, one might want to include &lt;windows.h&gt; without having any of its contents added to intellisense (I currently do this with a wonky workaround). <br><br>Just my $.02, I very much hope this is implemented!<br><br>~Oren<br> Mon, 16 Feb 2009 21:47:43 Z2009-02-16T21:47:44Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/91df7bec-cf66-4af4-b8c9-798035ba8c69http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/91df7bec-cf66-4af4-b8c9-798035ba8c69MANMFChttp://social.msdn.microsoft.com/Profile/en-US/?user=MANMFCWhat are the notifications being sento USB driver when system goes into standby mode or comes out of standby mode Hi All,<br>                 I have a small C++(VC++ MFC) code which deals with USB device. The drivers are 3rd party drivers. Until unless user do something to the dialogs application will not deal with USB device. now user has done some clicks on the dialog and USB device is initiated. After that system gone into standby mode. Now after user interruption system came to normal mode. At this situation what will happen to USB device. <br> <br> In windows when system goes into standby / screen saver mode, does USB device drivers get any notification? And after coming out from standby / screen saver mode, again does USB device drivers get any notification like power off and power on? Help me out. <hr class="sig">MFCWed, 11 Feb 2009 13:38:29 Z2009-02-12T15:36:33Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/d5c0496d-5ff6-401e-840c-87fa2f27593chttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/d5c0496d-5ff6-401e-840c-87fa2f27593cMarc-Antoinehttp://social.msdn.microsoft.com/Profile/en-US/?user=Marc-AntoineCannot build Chromium with VS2010 CTP(Note: this is a repost since my first one was in the wrong forum)<div><br></div><div><span class=Apple-style-span style="color:rgb(8, 8, 8);font-family:-webkit-monospace;font-size:13px"><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">I gave a quick try at VS2010 with Chromium.</pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">Download infos at <span class=Apple-style-span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;white-space:normal"><a href="http://dev.chromium.org/" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit;color:rgb(0, 114, 188);cursor:pointer;text-decoration:none">http://dev.chromium.org/</a><span class=Apple-style-span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;white-space:pre">, sources at <span class=Apple-style-span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;white-space:normal"><a href="http://src.chromium.org/viewvc/chrome/trunk/src/" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit;color:rgb(0, 114, 188);cursor:pointer;text-decoration:none">http://src.chromium.org/viewvc/chrome/trunk/src/</a><span class=Apple-style-span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;white-space:pre">.</span></span></span></span></pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">While building v8_base.vcproj, I got the following PDB errors:</pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">Compiling... unicode.cc disasm-ia32.cc zone.cc variables.cc v8threads.cc v8.cc v8-counters.cc utils.cc usage-analyzer.cc top.cc token.cc stub-cache.cc stub-cache-ia32.cc string-stream.cc spaces.cc snapshot-common.cc serialize.cc scopes.cc scopeinfo.cc scanner.cc z:\src\v8\src\unicode.h(59) : error C2471: cannot update program database 'z:\src\chrome\debug\obj\v8_base\vc90.idb' Generating Code... Compiling... runtime.cc ..\..\src\runtime.cc : fatal error C1090: PDB API call failed, error code '23' : '( rewriter.cc ..\..\src\rewriter.cc : fatal error C1090: PDB API call failed, error code '23' : '( regexp-stack.cc ..\..\src\regexp-stack.cc : fatal error C1090: PDB API call failed, error code '23' : '( (every remaining source files continue with this error, the pdb seems corrupted up to this point)</pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">Any thought?</pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">Note: I have built through the shared directory functionality of VPC, if relevant.</pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit"><br></pre><pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-family:inherit">M-A</pre></span></div>Wed, 04 Feb 2009 19:27:35 Z2009-02-04T19:27:37Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/9667fbca-38ae-4e9d-bb1e-fe0ffef7eb2dhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/9667fbca-38ae-4e9d-bb1e-fe0ffef7eb2dArkarchhttp://social.msdn.microsoft.com/Profile/en-US/?user=ArkarchRequest - Improved Recent Project Management.<p> I have not had a chance to install the early look at Vis Studio 2010..  however something that has been a wish for many of the Visual Studio releases - </p> <p><font><font><font><font><font><font><font><font><font><font>I would like much better, manageable recent project management on the Open Menu and on the Start Page.  </font></font></font></font></font></font></font></font></font></font></p> <p><font><font><font><font><font><font><font><font><font><font>I often work with multiple projects from multiple clients.  I also have clients who provide multiple versions of a project with the same name; as well I may have a few test variations of a project.  Think about ways to improve this experience.</font></font></font></font></font></font></font></font></font></font></p> <p><font><font><font><font><font><font><font><font><font><font>For example, It would be good to be able to more easily identify target directory when selecting a recent project at a glance (more than mouseover).    It would be good to make certain projects persistent on the list.  The Windows 'Start' list may be a good model.  It would also be good to extend the list so that one can juggle 5, 10 active projects.</font></font></font></font></font></font></font></font></font></font></p> <p><font>Thanks.</font></p>Tue, 27 Jan 2009 18:44:17 Z2009-01-27T18:44:19Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/f233b8d8-2fe4-4b2c-b302-f2047c8f6164http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/f233b8d8-2fe4-4b2c-b302-f2047c8f6164Alex Ivanoffhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20IvanoffTarget platforms Will VC++ 2010 compiled executable run on Windows 2000?Fri, 23 Jan 2009 23:48:11 Z2009-01-24T03:04:56Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/2d2222bb-b08f-46a0-97db-ee6359bcffbfhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/2d2222bb-b08f-46a0-97db-ee6359bcffbfGeorge P Boutwellhttp://social.msdn.microsoft.com/Profile/en-US/?user=George%20P%20BoutwellGeneral FeedbackThe core things I have asked for everytime I have visited with ANY VC++ representative I could talk to at numerous conferences I have been to.<br><br>1) Refactoring - This is such an important and valuable tool to any existing code base it is extremely disappointing to me that Microsoft has not to this point been able to add this to their IDE.  Coupled with the IDE's build-in Testing this would be a wonderful way to boost software quality and take it to a new level, as of yet this is an area where C++ continues to lag behind every other language Visual Studio supports, include DB languages now!!!<br><br>2) Visual Applications - The Windows Forms Design is bad.  We literally suffer numerous production drops daily when we port applications from our prior environment to Visual Studio.  It was my hope and impression that WPF and Expression would be a wonderful way for Microsoft to deal with this.  Imagine my disappointment when WPF is released in 2008's IDE for C# and VB but C++ users are told to use C# and interface with it for this functionality and to wait until the next release of the IDE.  It appears that even now we will not be getting this in even this release of the IDE.<hr class="sig">George P Botuwell, ProgrammerThu, 22 Jan 2009 23:17:47 Z2009-01-22T23:17:49Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/9ae2f00e-3841-4372-babe-28aa81f7e1f6http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/9ae2f00e-3841-4372-babe-28aa81f7e1f6George P Boutwellhttp://social.msdn.microsoft.com/Profile/en-US/?user=George%20P%20BoutwellCreating a WinForms ApplicationI opened the CTP VM, loaded VS 2010 for C++ Development.  Went to File-&gt;New Project, to Visual C++, to CLR, then to Windows Forms Application.<br><br>The project that is created won't design.  The designer immediately errors out saying it can't reference the necessary assemblies...<br><br>Am I doing something wrong?<br><br>George<hr class="sig">George P Botuwell, ProgrammerThu, 22 Jan 2009 15:21:17 Z2009-01-22T19:20:03Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/dd1969f9-a2c3-4d44-952a-080566c1cb5dhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/dd1969f9-a2c3-4d44-952a-080566c1cb5dBob Summerwillhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bob%20SummerwillVCPROJ upgrader - include path and output/temp directory creation issues<br>I hit two issues when first using the VCPROJ upgrader:<br><br><br>1. Include paths with quotes around them are &quot;upgraded&quot; into VCPROJX files which don't actually work!     I believe this is similar to the issues reported in the following e-mail:<br><br>http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpcpp/thread/267022c4-e155-4b96-9679-463be84f2e2b#page:9999<br><br>This issue can be worked around by manually stripping the quotes from either the source or generated paths, but can be considered a bug in the upgrader.   It takes a valid VCPROJ, which works, and produces an MSBuild file which doesn't work.<br><br>If you don't already have a use-case to demonstrate this issue, I can put one together.    I believe you just get an invalid cl.exe command line generated when you try to build.     Just have quotes within the generated MSBuild file around include paths to see the issue.<br><br><br>2. Visual Studio building using VCPROJ generates any required output or intermediate paths implicitly as part of the build process.   That doesn't seem to be happening off-the-bat with the MSBuild C++ build system.     The failure case I hit was that the linker was trying to generate a PDB into a directory which hadn't been created yet - resulting in a build error.<br><br>Again, I can put together a use-case if needed, but just point your PDB directory to a non-existent directory to replicate the issue.<br><br><br><br>Cheers,<br>Bob<br><br>Tue, 13 Jan 2009 01:16:02 Z2009-01-22T09:08:34Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/2dcbc0cb-7883-4b57-b326-eff6720c8e8ahttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/2dcbc0cb-7883-4b57-b326-eff6720c8e8aLoïc Jolyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lo%u00efc%20JolyEncoding of source filesHello,<br><br>I have just tried the CTP, and noticed the following issue. I opened a new projet, and tried this code which used to work just fine :<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"></font><font style="color:gray">#include &lt;iostream&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">using</font><font style="font-size:11px"> </font><font style="color:blue">namespace</font><font style="font-size:11px"> std; </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">int</font><font style="font-size:11px"> main() </font></td></tr><tr><td>{ </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    locale loc(<font style="color:blue">&quot;French_france&quot;</font><font style="font-size:11px">); </font></td></tr><tr><td>    locale::global(loc); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    cout &lt;&lt; <font style="color:blue">&quot;Bonjour à tous !&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font><font style="color:green">// French hello world</font><font style="font-size:11px"> </font></td></tr><tr><td>} </td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr></tbody></table></div><br>But with version 10, this prints a bad charecter instead of 'à' (same problem with any other accentueted character).<br><br>I could track that to the fact the this newly created cpp file seems to be saved in utf-8 encoding. When I force the conversion in UCS-2 or MBCS, the code is working as before.<br><br>I'm not sure it is a good choice to use as default source code encoding an encoding that is not really (or at least by default) supported by the language itself.<br><br><br>Regards,<br><br><br> Fri, 16 Jan 2009 12:01:47 Z2009-01-16T22:15:40Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/a33f8a85-46d5-49df-b8d0-8dda6b81b7d3http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/a33f8a85-46d5-49df-b8d0-8dda6b81b7d3hINTModuleStatehttp://social.msdn.microsoft.com/Profile/en-US/?user=hINTModuleStateMFC improvements in VC 2010 ?? Hi evrybody.<br>Sorry but I didn't find which category to put my question in.<br>I wonder what are the new things for MFC in VC 2010 ? Browsing all discussions I just but find about .Net and a merely one discussion about VC++.<br><br>Has the Form editor improved ? What are the new things on top of the MFC feature pack ?<br>Or has Microsoft just abondoned developement for unmanaged code and all techs that reside on top of it like the unmanaged MFC ??<br><br>Thank you in advance.Mon, 17 Nov 2008 09:13:12 Z2009-02-11T23:07:41Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/88bc1957-fe0b-46a5-add1-052dcc627dc0http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/88bc1957-fe0b-46a5-add1-052dcc627dc0Llorens Martihttp://social.msdn.microsoft.com/Profile/en-US/?user=Llorens%20MartiCode Documentation assistant in VS C++? Hi all.<br><br>First of all, sorry for my english, i will try to express as clear as i can.<br><br>Is there any idea or something to improve the code documentation experience in Visual Studio C++ like you can do in Visual C# ? <br><br>I mean these type of help provided by IDE (Visual Studio C++) to document heach function with his paramenters etc. in a somekind of xml format.<br><br>By the way i need to say that i use Visual Studio C++ every day for a programing purpose and its a great tool :)<br><br>Thx for your time<br><br>LLORENSSun, 16 Nov 2008 13:37:22 Z2009-01-05T22:45:43Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/34df8d27-b2e7-4f1b-aaf5-6acc20e23e92http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/34df8d27-b2e7-4f1b-aaf5-6acc20e23e92Chris Luxhttp://social.msdn.microsoft.com/Profile/en-US/?user=Chris%20Luxruntime interator range checks in release builds? Hi, <p>one question that bugs me since VC++ 2005 is: When will the default runtime iterator range checking for release builds be completely disabled. There is quite a large performance impact when using the current default setting on many of my projects. In every project i work on and every external dependency (mainly boost) i have to set _SECURE_SCL=0 to disable it for release builds.</p> <p>So will this be disabled by default for release builds in VS 10?<br><br>-chris</p>Sat, 01 Nov 2008 17:45:34 Z2009-01-02T16:06:04Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/b383694b-9897-4dd9-bea9-00df97ddd207http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/b383694b-9897-4dd9-bea9-00df97ddd207__Mhttp://social.msdn.microsoft.com/Profile/en-US/?user=__MSeparate compiler download?Just looking at the huge download for the full CTP ... is there a chance to download only the compiler? I got quite a lot of code lying around here which is prone to compiler bugs, misoptimisations and such, and I'd like to give it a try. All I need is some vcbuild.exe and I'm ready to go, and I think I'm not the only one who wants to take a closer look at the compiler.<br><br>By providing a smaller download (1 GiB?) with it, I guess you'll get many more people testing it.<br> Fri, 19 Dec 2008 08:45:06 Z2008-12-31T00:36:20Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/23edfd38-00f7-4526-b928-9ebb339d8897http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/23edfd38-00f7-4526-b928-9ebb339d8897karies42http://social.msdn.microsoft.com/Profile/en-US/?user=karies42Issue with auto keyword Hi,<br><br>thanks for publishing the CTP - it's a good way to allow you and us to prepare for what's next. I'm impressed by how easy it was to migrate our MSVC2008 generated project to the CTP, and how stable it was - I saw only one crash, which is far better than e.g. MSVC 2003 was - and we are just talking about a CTP! But it's a pity that the preview expires so soon - I am far from done evaluating the CTP... So for now only a question as feedback:<br><br>Part of our code uses the auto keyword like this: <br><br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="border-right:gray 1px solid;padding-right:5px;padding-left:10px;font-size:11px;vertical-align:top;width:5px;color:gray;font-family:Courier New;background-color:#eee;text-align:right"> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><nobr>1</nobr></td> <td><font style="font-size:11px">struct A {  </font></td></tr> <tr> <td><nobr>2</nobr></td> <td style="background-color:#f7f7f7">   A operator()(const char*) { return A(); }  </td></tr> <tr> <td><nobr>3</nobr></td> <td>};  </td></tr> <tr> <td><nobr>4</nobr></td> <td style="background-color:#f7f7f7"> </td></tr> <tr> <td><nobr>5</nobr></td> <td>int main(int, char*[]) {  </td></tr> <tr> <td><nobr>6</nobr></td> <td style="background-color:#f7f7f7">   A a;  </td></tr> <tr> <td><nobr>7</nobr></td> <td>   auto A </font><font style="color:red">b</font><font style="font-size:11px"> = </font><font style="color:blue">a</font><font style="font-size:11px">(&quot;abc&quot;);  </font></td></tr> <tr> <td><nobr>8</nobr></td> <td style="background-color:#f7f7f7">   return 0;  </td></tr> <tr> <td><nobr>9</nobr></td> <td>}  </td></tr> <tr> <td><nobr>10</nobr></td> <td style="background-color:#f7f7f7"> </td></tr></tbody></table></div> <p><br>The CTP doesn't like that:<br><font size=1><font style="font-size:12px"><br><font face="Courier New">autokeyword.cpp(7) : error C2146: syntax error : missing ';' before identifier 'b'<br></font></font><font style="font-size:12px" face="Courier New">autokeyword.cpp(7) : error C3531: 'A': a symbol whose type contains 'auto' must have an initializer<br></font><font style="font-size:12px" face="Courier New">autokeyword.cpp(7) : error C2065: 'b' : undeclared identifier<br></font></font><br>GCC 4.3 and MSVC2008 are happy with it. What's the issue?<br><br>Cheers, Axel.<br></p> <hr class=sig> @ CERNTue, 30 Dec 2008 18:16:40 Z2008-12-31T00:31:20Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/b36cc0ca-3281-42cb-aa5b-6f08fff09603http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/b36cc0ca-3281-42cb-aa5b-6f08fff09603Chuck England - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Chuck%20England%20-%20MSFTVisual C++ Project System<p style="margin:0in 0in 0pt"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808">Hi, my name is Chuck England and I a Program Manager for Visual Studio’s <b>Project &amp; Build</b> team here at Microsoft. This includes the Project System inside Visual Studio, MSBuild (shipped as part of the framework), and SCCI integration in Visual Studio.</font></p> <p style="margin:0in 0in 0pt"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"> </font></p> <p style="margin:0in 0in 0pt"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808">The <b>Project System</b> is the integral part of Visual Studio that manages your project(s) and solutions. You probably recognize it most as the system you interact with to setup, add files to, and manage your projects and solutions.</font></p> <p style="margin:0in 0in 0pt"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"> </font></p> <p style="margin:0in 0in 0pt"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><b>MSBuild</b> is a complete build environment. Through its XML file format, you define the build as a set of properties and items that build targets. These targets may be built from our predefined set of tasks, or from those you define yourself.<br><br></font></p> <p dir=ltr style="margin:0in 0in 0pt"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808">With this new release of Visual Studio, we have made significant additions and improvements to the Project System and MSBuild.<br><br></p><font color="#080808" size=2> <p dir=ltr style="margin:0in 0in 0pt"></p> <p dir=ltr style="margin:0in 0in 0pt"> <ul> <li>Walkthrough: <strong>How to Create a Custom Platform</strong></li> <ul> <li></font><font size=2>In this walkthrough, &quot;<b>How to Create a Custom Platform</b>&quot;, we are highlighting building your own <strong>Cusom Platform</strong>. Visual Studio 2010 provides a new project system for Visual C++ projects that is based on MSBuild. The new project system allows you to create custom platforms that appear in the Solution Platforms dropdown box. Custom platforms let you create a project that has a custom build process. This build process can interact with a collection of specialized tools tailored to the platform.</font><br><br></li></ul> <li>Walkthrough: <font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><strong>How to Use the C++ MSBuild Project System</strong></font></font></font></font></font></font></li> <ul> <li><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"></font></font></font></font></font></font>In this walkthrough, &quot;</font><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><strong>How to Use the C++ MSBuild Project System</strong>&quot; w</font><font face=Verdana>e are highlighting our new feature <strong>C++ Project System</strong>. The new Project System is now based on the MSBuild file format and includes many great new features.</font></font></font></font></font></font></li></ul></ul> <p></p> <p><font color="#080808"></font> </p><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"> <ul> <li>Walkthrough: <font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><b><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808">How to Create Custom Property Pages</font></font></b></font></font></font></li> <ul> <li></font></font></font></font></font><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font size=2>In this walkthrough, &quot;</font><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><strong>How to Create Custom Property Pages</strong></font></b><font face=Verdana>&quot;, we are highlighting our new feature &quot;<strong>Custom Property Pages</strong>&quot; that allow you to create your own property pages that display in the Visual Studio UI. You can then edit your new properties, and the values are saved in your project file in the new C++ project system. You can then use these properties to define custom build rules or create conditional builds.</font></font></font></font></font></font></font></font></font></font></li></ul></ul> <p><font color="#080808"></font> </p> <p><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"></li></font></font></font></font></font><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face=Symbol color="#080808"><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808">We are really looking forward to hear your feedback. Please let us know what you think about the our scenarios in these walkthroughs, as well as other feedback you may have. We are interested in hearing about your overall experience and your thoughts about these new features into Visual Studio!<br><br>If you have not downloaded or would like more information about the CTP, please visit <a href="http://go.microsoft.com/fwlink/?LinkId=129231"><font color="#0000ff">http://go.microsoft.com/fwlink/?LinkId=129231</font></a>.  <br><br>Thanks,<br><br></font><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808"><b>Chuck England<br></b></font><font style="font-size:9.5pt" face="'Verdana','sans-serif'" color="#080808">Visual Studio Platform<br>Program Manager – Project and Build</font><font face=Calibri><br><img class=AvatarImage id="ctl00_MainContentPlaceHolder_ProfileUserControl1_AvatarImage" src="http://i2.social.microsoft.com/Image.avatr?size=ExtraLarge&amp;user=Chuck England - MSFT&amp;id=00000000-0000-0000-0000-000000000000"></font></p></font></font></font></font></font></font>Mon, 27 Oct 2008 18:05:11 Z2008-12-17T21:50:40Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/bb0963bd-2c14-40fd-93a9-f854d6250d03http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/bb0963bd-2c14-40fd-93a9-f854d6250d03holediggerhttp://social.msdn.microsoft.com/Profile/en-US/?user=holediggerGetting system include paths from the new project systemIn my addin, I'm trying to programmatically get the system include paths from the new C++ project system.<br><br>Using the old project system (as well as previous versions of VS), I'm able to call VCPlatform::get_IncludeDirectories(), from VCPlatformEngine.dll  However, using the new project system, I'm not getting any meaningful information - &quot;&quot; or &quot;;&quot;.<br><br>What is the recommended way to get this information from the new project system?<br><br>thanks.<br><br><br>Wed, 10 Dec 2008 21:05:31 Z2008-12-31T00:39:44Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/929fed17-9d15-4d1d-9b09-6e872d674de9http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/929fed17-9d15-4d1d-9b09-6e872d674de9Damien Watkins - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Damien%20Watkins%20-%20MSFTVisual C++ Libraries Team: Visual Studio 10 Walkthroughs<span style="font-size:7.5pt;line-height:115%;font-family:'Verdana','sans-serif'"><font style="font-size:12px"> <p style="margin:0in 0in 12pt"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">Hello<br><br>My name is Damien Watkins and I am a Program Manager on the Visual C++ Libraries Team. We have created a set of walkthroughs for the Visual Studio 10 release, please use these walkthroughs as a guide to familiarizing with this release. For the VC++ Libraries team we currently have two walkthroughs:</font></span></p> <p style="margin:0in 0in 10pt"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">Walkthrough: Adding a Task Dialog to an Application</font></span></p> <p style="margin:0in 0in 10pt 0.5in"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">This walkthrough introduces the CTaskDialog and shows you how to add one to your application. The CTaskDialog is a task dialog box that replaces the Windows message box in Windows Vista. The CTaskDialog improves the original message box and adds functionality. The Windows message box is still supported in Visual Studio.</font></span></p> <p style="margin:0in 0in 10pt 0.5in"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">Note   Versions of Windows earlier than Windows Vista do not support the CTaskDialog. You must program an alternative dialog box option if you want to show a message to a user who runs your application on an earlier version of Windows. You can use the static method CTaskDialog::IsSupported to determine at run time whether a user's computer can display a CTaskDialog. In addition, the CTaskDialog is only available when your application is built with the Unicode library.</font></span></p> <p style="margin:0in 0in 12pt 0.5in"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">The CTaskDialog supports several optional elements to gather and display information. For example, a CTaskDialog can display command links, customized buttons, customized icons, and a footer. The CTaskDialog also has several methods that enable you to query the state of the task dialog box to determine what optional elements the user selected.</font></span></p> <p style="margin:0in 0in 10pt"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">How to: Add Support for the Restart Manager</font></span></p> <p style="margin:0in 0in 10pt 0.5in"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">The restart manager is a feature added to Visual Studio for Windows Vista. The restart manager enables your application to recover unsaved data if it unexpectedly closes or restarts. The restart manager enables your application to automatically save the state and content of any open documents and restarts your application after an unexpected closure. Upon restart, the application displays a task dialog box. The user chooses whether to restore the automatically saved data. If the user does not restore the automatically saved documents, the restart manager discards the temporary files.</font></span></p> <p style="margin:0in 0in 10pt 0.5in"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">Note   You can override the default behavior of the restart manager for saving data and restarting the application.</font></span></p> <p style="margin:0in 0in 10pt 0.5in"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">By default, MFC applications created by using the project wizard in Visual Studio support the restart manager when the applications are run on a computer that has Windows Vista. If you do not want your application to support the restart manager, you can disable the restart manager in the new project wizard.</font></span></p> <p style="margin:0in 0in 10pt"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">We hope you find the walkthroughs useful and you can use the </font><a title=Connect href="http://connect.microsoft.com/VisualStudio"><span style="color:#0072bc"><font style="font-size:12px">Connect website</font></span></a><font style="font-size:12px"> to report bugs.</font></span></p> <p style="margin:0in 0in 10pt"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">Thanks</font></span></p> <p style="margin:0in 0in 10pt"><span style="font-size:7.5pt;font-family:'Verdana','sans-serif'"><font style="font-size:12px">Damien</font></span></p></font></span><hr size="1" align="left" width="25%">Damien Watkins, VC++. This posting is provided “AS IS” with no warranties and confers no rightsSat, 25 Oct 2008 00:53:48 Z2008-12-08T22:35:13Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/abe3d008-5d41-4009-a13a-d3df54073550http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/abe3d008-5d41-4009-a13a-d3df54073550camhusmj38http://social.msdn.microsoft.com/Profile/en-US/?user=camhusmj38using and lambda expressions I was trying to use lambda expressions in the C++ 2010 CTP and I noticed the following (reduce to the simplest example I could think of):<br><br>#include &lt;iostream&gt;<br><br>int main ()<br>{<br>    using namespace std;<br>    auto f = [] ()<br>    {<br>        cout &lt;&lt; &quot;Hello&quot;;<br>    };<br>    f();<br>}<br>This will give an error that cout is not found (because it is ignoring the using).<br><br>However, this does work<br><br>#include &lt;iostream&gt;<br>using namespace std;<br><br>int main ()<br>{<br>    auto f = [] ()<br>    {<br>        cout &lt;&lt; &quot;Hello&quot;;<br>    };<br>    f();<br>}<br><br>Is this intentional? If it is, it's a little inconvenient.<br><br>Sunil JoshiTue, 25 Nov 2008 09:34:41 Z2008-12-01T22:27:49Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/6f3d4fed-55fd-4280-9a9b-62f0be1e462dhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/6f3d4fed-55fd-4280-9a9b-62f0be1e462dSaju.Sathyanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Saju.Sathyansome things to consider...  I have a some questions and feedback... <br><br>1) There is this &quot;Add Variable...&quot; and &quot;Add member function..&quot; dialog in the class view, would you ever consider it to accept multiple varibles and functions in a single run ? <br>    ( sort of add the correctly entered variable or function would show up in a list view box .. when I am done with entering items... just click finish ). Now it is really a pain to do it everytime when I enter a lot of variables or functions... I dont know, I find it a good way to do...<br><br>2) Please consider a make over of the graphic editor, I know there is external tool support for doing graphic stuff... but still what we have in VS is not adequate.... I think<br><br>3) comments like in C# <br><br>4) code collapse/expand for case statements in a switch block.. would be nice... so that we dont have to scroll up and down for big source files. I am not sure about the current function level collapse/expand feature in VS 2008... Whenever I start editing a function, the other collapsed function above or below the function is get expanded !!! ( not sure, whether it is a feature or a bug )<br><br><br>I hope I haven't asked too much... Mon, 17 Nov 2008 17:04:01 Z2008-11-20T00:31:57Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/be4d6b41-865b-49e1-b22c-14efc2c99590http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/be4d6b41-865b-49e1-b22c-14efc2c99590Marc Gregoirehttp://social.msdn.microsoft.com/Profile/en-US/?user=Marc%20GregoireHigh color toolbars I see that it is still not possible to have high colored toolbars using the build-in toolbar editor in VC++2010 CTP. When opening a high colored toolbar, the toolbar editor always wants to convert it to 16 colors.<br><br>Are there any plans to add support for high colored toolbars using the toolbar editor?<br><br><br>Regards,<br>Marc Gregoire<br>VC++ MVPFri, 14 Nov 2008 09:34:09 Z2008-11-19T00:51:33Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/b7961b66-bb3e-4e0e-b1e7-54eac13fe3f7http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/b7961b66-bb3e-4e0e-b1e7-54eac13fe3f7Fabien13_msvchttp://social.msdn.microsoft.com/Profile/en-US/?user=Fabien13_msvcDebugging Large c++ fileHello,<br><br>Is anybody know if the limit of a breakpoint line number has been increased in VS 10 ?<br>In previous version of VS, we cannot set a breakpoint on line number over than 65535.<br><br>The problem is explained in this link since the test of VS 2005 :<br><br>https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=167209&amp;wa=wsignin1.0<br><br>Thanks<br> Fri, 14 Nov 2008 18:28:12 Z2008-11-15T01:26:49Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/e593c6e1-53e8-4134-9f01-1bb1fff3c9e8http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/e593c6e1-53e8-4134-9f01-1bb1fff3c9e8Marc Gregoirehttp://social.msdn.microsoft.com/Profile/en-US/?user=Marc%20Gregoireparallel_for 64 bit warning? I really like the new concurrency library in the CTP and I've been playing around with it. However, I noticed a compilation warning when enabling &quot;Detect 64 bit portability issues&quot;.<br><br>When I have the following example code:<br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="border-right:gray 1px solid;padding-right:5px;padding-left:10px;font-size:11px;vertical-align:top;width:5px;color:gray;font-family:Courier New;background-color:#eee;text-align:right"> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><nobr>1</nobr></td> <td><font style="font-size:11px">#include </font><font style="color:blue">&lt;</font><font style="font-size:11px">windows.h</font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td><nobr>2</nobr></td> <td style="background-color:#f7f7f7">#include </font><font style="color:blue">&lt;</font><font style="font-size:11px">iostream</font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td><nobr>3</nobr></td> <td>#include </font><font style="color:blue">&lt;</font><font style="font-size:11px">ppl.h</font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td><nobr>4</nobr></td> <td style="background-color:#f7f7f7"> </td></tr> <tr> <td><nobr>5</nobr></td> <td>using namespace std;  </td></tr> <tr> <td><nobr>6</nobr></td> <td style="background-color:#f7f7f7">using namespace Concurrency;  </td></tr> <tr> <td><nobr>7</nobr></td> <td> </td></tr> <tr> <td><nobr>8</nobr></td> <td style="background-color:#f7f7f7">int main()  </td></tr> <tr> <td><nobr>9</nobr></td> <td>{  </td></tr> <tr> <td><nobr>10</nobr></td> <td style="background-color:#f7f7f7">    parallel_for(0, 100,1,[&amp;](int abc){  </td></tr> <tr> <td><nobr>11</nobr></td> <td>    });  </td></tr> <tr> <td><nobr>12</nobr></td> <td style="background-color:#f7f7f7">          </td></tr> <tr> <td><nobr>13</nobr></td> <td>    return 0;  </td></tr> <tr> <td><nobr>14</nobr></td> <td style="background-color:#f7f7f7">} </td></tr></tbody></table></div> <p>And compile this with &quot;Detect 64 bit portability issues&quot; enabled I get the following warning on line 11:<br></p> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px">PPLTestConsole.cpp  </font></td></tr> <tr> <td style="background-color:#f7f7f7">C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1065) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'  </td></tr> <tr> <td>        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1029) : while compiling class template member function 'bool Concurrency::_Parallel_chunk_helper</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Random_iterator,_Index_type,_Function,_Is_iterator</font><font style="color:blue">&gt;</font><font style="font-size:11px">::_Send_range(_Index_type)'  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Random_iterator</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Is_iterator</font><font style="font-size:11px">=</font><font style="color:blue">false</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(130) : see reference to class template instantiation 'Concurrency::_Parallel_chunk_helper</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Random_iterator,_Index_type,_Function,_Is_iterator</font><font style="color:blue">&gt;</font><font style="font-size:11px">' being compiled  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Random_iterator</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Is_iterator</font><font style="font-size:11px">=</font><font style="color:blue">false</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1151) : see reference to class template instantiation 'Concurrency::task_handle</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Function</font><font style="color:blue">&gt;</font><font style="font-size:11px">' being compiled  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Function</font><font style="font-size:11px">=</font><font style="color:blue">Concurrency</font><font style="font-size:11px">::_Parallel_chunk_helper</font><font style="color:blue">&lt;</font><font style="font-size:11px">int,int,`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">,false</font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td>        ]  </td></tr> <tr> <td style="background-color:#f7f7f7">        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1117) : see reference to function template instantiation 'void Concurrency::_Parallel_chunk_impl</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Random_iterator,_Index_type,_Function,false</font><font style="color:blue">&gt;</font><font style="font-size:11px">(const _Random_iterator &amp;,_Index_type,const _Index_type &amp;,_Function &amp;)' being compiled  </font></td></tr> <tr> <td>        with  </td></tr> <tr> <td style="background-color:#f7f7f7">        [  </td></tr> <tr> <td>            </font><font style="color:red">_Random_iterator</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1116) : while compiling class template member function 'void Concurrency::_Parallel_helper</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Random_iterator,_Index_type,_Function,_Is_iterator</font><font style="color:blue">&gt;</font><font style="font-size:11px">::operator ()(void) const'  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Random_iterator</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Is_iterator</font><font style="font-size:11px">=</font><font style="color:blue">false</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1249) : see reference to class template instantiation 'Concurrency::_Parallel_helper</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Random_iterator,_Index_type,_Function,_Is_iterator</font><font style="color:blue">&gt;</font><font style="font-size:11px">' being compiled  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Random_iterator</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Is_iterator</font><font style="font-size:11px">=</font><font style="color:blue">false</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>        C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ppl.h(1305) : see reference to function template instantiation 'void Concurrency::_Parallel_for_impl</font><font style="color:blue">&lt;</font><font style="font-size:11px">_Index_type,_Function</font><font style="color:blue">&gt;</font><font style="font-size:11px">(_Index_type,_Index_type,_Index_type,_Function &amp;)' being compiled  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>        .\PPLTestConsole.cpp(20) : see reference to function template instantiation '_Function Concurrency::parallel_for</font><font style="color:blue">&lt;</font><font style="font-size:11px">int,`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">&gt;(_Index_type,_Index_type,_Index_type,_Function)' being compiled  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        with  </td></tr> <tr> <td>        [  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">_Function</font><font style="font-size:11px">=`anonymous-namespace'::</font><font style="color:blue">&lt;</font><font style="font-size:11px">lambda2</font><font style="color:blue">&gt;</font><font style="font-size:11px">,  </font></td></tr> <tr> <td>            </font><font style="color:red">_Index_type</font><font style="font-size:11px">=</font><font style="color:blue">int</font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">        ]  </td></tr> <tr> <td>Linking...  </td></tr> <tr> <td style="background-color:#f7f7f7"> </td></tr></tbody></table></div> <p>Should I open a bug report on connect for this?<br><br><br>Regards,<br>Marc Gregoire<br>VC++ MVP</p>Wed, 12 Nov 2008 10:15:03 Z2008-11-14T08:02:41Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/9e35eacf-7ccc-485d-9ae2-c42190c3385dhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/9e35eacf-7ccc-485d-9ae2-c42190c3385dJalfhttp://social.msdn.microsoft.com/Profile/en-US/?user=JalfProperty Sheet equivalents in the new VC++ Build System?Giving the C++ build system a major overhaul is long overdue, and switching to MSBuild brings it in line with C# and the other languages. Well done for that. :)<br><br>One thing I'm unsure about is what happened to property sheets. I don't seem to be able to use them in the new VC++ build system. Does MSBuild have some built-in equivalent we can use instead, or will they be re-added in a later beta or something?<br> <br> Being able to specify project settings for multiple projects just by including the appropriate property sheet files was a brilliant feature (except that not all properties could be specified through .vsprops files, and Visual Studio's insistence on overriding a dozen properties by default when you create a project made them harder than necessary to use), so I hope VC10 will have an equally simple and powerful way to do the same, and hopefully with the previous shortcomings fixed. :)<br><br>Or am I just missing some terribly obvious feature of MSBuild whih makes property sheets completely redundant even in the CTP?<br> Sat, 01 Nov 2008 16:18:44 Z2008-12-02T01:03:31Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/57846c64-8fa6-4d89-90d3-a46a80030596http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/57846c64-8fa6-4d89-90d3-a46a80030596Marian Luparuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Marian%20LuparuDeploying your Visual C++ 10 Application<font style="font-size:12px"> Hello again,<br><br>In Visual Studio 2010, we've made some changes to the deployment model for the Visual C++ Libraries (CRT, MFC, ATL and OpenMP). Please review our walkthrough and share with us any feedback you may have.<br><br><strong><u><em>Walkthrough: Deploying a Visual C++ Application</em></u></strong><br></font> <p style="margin:3pt 0in"><font style="font-size:12px">In this walkthrough, you will learn about the various ways to deploy a Visual C++ application that you build with Visual Studio 2010. This walkthrough illustrates the following tasks:</font></p> <p class=BulletedList1 style="margin:3pt 0in 3pt 0.25in"><span style="font-family:Symbol"><font face=Verdana><font style="font-size:12px"><font style="font-size:12px"><span><font style="font-size:12px">·</font><span style="font:7pt 'Times New Roman'">         </span></span><font style="font-size:12px">Deploying an application by using a setup project.</font></font></font></font></p> <p class=BulletedList1 style="margin:3pt 0in 3pt 0.25in"><span style="font-family:Symbol"><font face=Verdana><font style="font-size:12px"><font style="font-size:12px"><span><font style="font-size:12px">·</font><span style="font:7pt 'Times New Roman'">         </span></span><font style="font-size:12px">Deploying an application to an application-local folder.</font></font></font></font></p> <p class=BulletedList1 style="margin:3pt 0in 3pt 0.25in"><span style="font-family:Symbol"><font face=Verdana><font style="font-size:12px"><font style="font-size:12px"><span><font style="font-size:12px">·</font><span style="font:7pt 'Times New Roman'">         </span></span><font style="font-size:12px">Deploying an application by using the Visual C++ Redistributable Package.</font></font></font></font></p> <p style="margin:3pt 0in"><font size=2><font face=Verdana></font></font> </p></span></span></span>We're specifically looking for feedback regarding the impact these changes might have on your current setup authoring and deployment of your application and the overall ease of use.<br><br>Thanks,<br>Marian Luparu<br>Visual C++ IDESat, 25 Oct 2008 01:42:52 Z2008-11-12T08:36:50Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/59798950-aa47-4d83-a89e-91c068a5bcb1http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/59798950-aa47-4d83-a89e-91c068a5bcb1fkonvick_http://social.msdn.microsoft.com/Profile/en-US/?user=fkonvick_IntelliSense improvementsHi guys,<br><br>I was looking forward to the new IntelliSense engine because we have lots of trouble with MSVC 2008 (killing the IDE several times every day).<br><br>My first experience is very positive! The accuracy is excellent.<br><br>But - the problem is that 1) the performance is still bad and 2) hangs still do occur.<br><br>The goal of IntelliSense is to make your work faster. So when a &quot;Ctrl+Shift+Space&quot; or even a simple right-click (!) takes more than, say, 5 seconds, then it's better to stop trying and simply say &quot;Sorry&quot;, because it's then probably faster to use grep/findall (not to say that in 5 seconds I have often already remembered what I wanted to know).<br><br>Performance would not trouble me much, though, if there was a way to run the query in the background (or at least abort it when it takes too long).<br><br>Good thing I saw was that during long IntelliSense queries, the tray icon says &quot;Visual Studio is busy&quot; - but when it's busy 45 minutes, I'm sure there is some bug and it will probably never finish. What I'm lacking is <b>aborting</b> the operation that hangs the IDE. Anything is better than the necessity of killing the IDE via Process Explorer!!<br><br>I mean, of course you will try hard to fix IntelliSense bugs, but they simply do occur and will occur, and it will make everyone frustrated because fixing these was never fast - so why not enhance the user experience by providing a way of aborting the problematic operations without killing the IDE.<br><br>If you plan to provide some aborting mechanism for 2010, please consider releasing a hotfix for 2008 as well - that would save us 1 or 2 years of hell :-)<br><br>Thanks (and sorry for talking so much)<br>Filip<br><br> Tue, 04 Nov 2008 14:14:40 Z2008-11-11T21:24:48Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/644e1389-ad00-4ff2-a58c-8f635ec104ebhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/644e1389-ad00-4ff2-a58c-8f635ec104ebVegan Fanatichttp://social.msdn.microsoft.com/Profile/en-US/?user=Vegan%20FanaticMSBuild vc cl.exeIn my shop I have code all over the place and some of it is in C and some is old C++. New code continues to be C++ based. Some of the modules are imported into other old modules that feed into the finished product.<br><br>Generally I continue to use ancient Windows calls for the most part. When I use SQL I use the usual SQL connections and access databases easily enough.<br><br>So any problems with a basket of antique code?<br> <hr size="1" align="left" width="25%">I am a professional <a href="http://contract-developer.dyndns.biz">developer</a> and a <a href="http://vegan.dyndns.biz">vegan</a>. I also am a skilled <a href="http://web-developer.dyndns.biz">web developer</a>. I also study <a href="http://econ.dyndns.biz">economics</a> and play <a href="http://computer-chess.dyndns.biz">chess</a>.Tue, 04 Nov 2008 19:15:25 Z2008-11-09T07:20:51Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/a84ef929-7bdc-476e-8718-5c7a87e97cc1http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/a84ef929-7bdc-476e-8718-5c7a87e97cc1Jeffrey M Brownhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jeffrey%20M%20BrownWhat is the focus 'sweet spot' of C++ for Dev10 and forward? This is a very high-level question I have after viewing the PDC presentations &quot;<a id="ctl00_MainPlaceHolder_TitleLink" href="http://channel9.msdn.com/pdc2008/TL13/">Microsoft Visual C++: 10 Is the New 6</a>&quot; and &quot;<a id="ctl00_MainPlaceHolder_TitleLink" href="http://channel9.msdn.com/pdc2008/PC26/">Microsoft Visual Studio: Building Applications with MFC</a>&quot;.  <br><br>After a couple of attempts at making C++ a 'first class' .NET programming language, it appears that MS is backing away from this and focusing only on the interop aspects of C++/CLI (as explicitly stated in the first of the two talks mentioned).  Additionally, MS is placing some renewed emphasis of MFC library support despite the fact that MFC seems to have been strongly deemphasized in the last couple of releases and the speaker in the MFC talk mentioned above lightheartedly describes MFC developers as a disappearing group.<br><br>This leads me, then to two very sincere questions:<br> <ol> <li>What are the main Windows programming tasks that the team will ensure are done <em>better</em> with VC++ than with .NET coding in Dev10 and beyond.</li> <li>What are the practical (i.e., not dogmatic) motivations to draw <em>new</em> developers into C++ and VC++ (as opposed to focusing on .NET languages) in the view of MS?</li></ol> <p> </p>Sun, 02 Nov 2008 18:35:20 Z2008-11-05T22:29:35Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/c851e6d6-4372-4005-b265-a16d1ed32fd1http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/c851e6d6-4372-4005-b265-a16d1ed32fd1mas913http://social.msdn.microsoft.com/Profile/en-US/?user=mas913Reference ambiguity  <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:courier new;background-color:white"><font face="courier new" size=3> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:courier new;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:courier new;white-space:nowrap"></colgroup> <tbody> <tr> <td><font style="font-size:11px"></font><font color=gray>#include &lt;string&gt;    </font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </td></tr> <tr> <td><font color=blue>void</font><font style="font-size:11px"> f(</font><font color=blue>const</font><font style="font-size:11px"> std::</font><font color=blue>string</font><font style="font-size:11px">&amp;);     </font></td></tr> <tr> <td style="background-color:#f7f7f7"><font color=blue>void</font><font style="font-size:11px"> f(std::</font><font color=blue>string</font><font style="font-size:11px">&amp;&amp;);     </font></td></tr> <tr> <td>    </td></tr> <tr> <td style="background-color:#f7f7f7"><font color=blue>int</font><font style="font-size:11px"> main()     </font></td></tr> <tr> <td>{  </td></tr> <tr> <td style="background-color:#f7f7f7">  f(std::<font color=blue>string</font><font style="font-size:11px">(</font><font color=magenta>&quot;ok&quot;</font><font style="font-size:11px">)); </font><font color=green>// ok   </font><font style="font-size:11px"> </font></td></tr> <tr> <td>  f(<font color=magenta>&quot;hi&quot;</font><font style="font-size:11px">); </font><font color=green>// error C2668    </font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7">  <font color=blue>return</font><font style="font-size:11px"> 0;     </font></td></tr> <tr> <td>}   </td></tr> <tr> <td style="background-color:#f7f7f7"> </td></tr></tbody></table><br></div></font> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:courier new;background-color:white"></div></div><br><font face="courier new">error C2668: 'f' : ambiguous call to overloaded function<br>could be 'void f(const std::string &amp;)'<br>or       'void f(std::string &amp;&amp;)<br>while trying to match the argument list '(const char [3])' </font>Mon, 03 Nov 2008 15:38:50 Z2008-11-03T18:58:36Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/ab120b3c-4ecf-4a0d-8f64-f24925ac39a9http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/ab120b3c-4ecf-4a0d-8f64-f24925ac39a9aligaturehttp://social.msdn.microsoft.com/Profile/en-US/?user=aligaturestd::move in VisualStudio 2010 CTPI'm trying to play around with r-value references in the new CTP.  The compiler accepts the &amp;&amp; notation without trouble, but I'm not sure where to find std::move.  Is it in a particular header? Wed, 29 Oct 2008 16:20:17 Z2008-11-03T15:22:06Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/991604af-0000-4807-8760-5f50d5a87961http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/991604af-0000-4807-8760-5f50d5a87961Marian Luparuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Marian%20LuparuConverting your projects to Visual C++ 10<p>Hello and welcome to our Visual Studio 2010 forum focused on Visual C++. <br>My name is Marian Luparu and I am a Program Manager on the Visual C++ team and one of the moderators of this forum.</p> <p>One of the first things I will encourage you to do once you <a href="http://go.microsoft.com/fwlink/?LinkId=129231">get your hands on the new Visual Studio 2010 VPC image</a>, is to migrate one of your VC9 solutions to VC10. You'll find the steps how to do this in the article &quot;<strong><u><em>How to: Upgrade from Earlier Versions to Visual C++ 10</em></u></strong>&quot; part of the Walkthroughs Document bundled with the VPC download.</p> <p>Please note that in this release, our build system will be MSBuild-based - thus the project file will be significantly different than previous versions. Regardless, our goal is to make your project conversion as seamless as possible. If you run into any issues or have suggestions or concerns regarding your upgrade experience, please let us know. <br><br>We’re looking forward to your feedback!<br><br>Thanks,<br>Marian Luparu<br>Visual C++ IDE<br></p>Sat, 25 Oct 2008 01:10:30 Z2008-10-25T01:10:30Zhttp://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/d4cab8b4-2f4e-4d32-afb5-bc6f71689730http://social.msdn.microsoft.com/Forums/en/vs2010ctpcpp/thread/d4cab8b4-2f4e-4d32-afb5-bc6f71689730Amit Mohindrahttp://social.msdn.microsoft.com/Profile/en-US/?user=Amit%20MohindraVisual C++ Build SystemHi All,<br><br>I am Amit Mohindra, a Program Manager on the Visual C++ team. We have devised a set of walkthroughs for you in this Visual Studio 10 release. Please use the walkthroughs as a hand-held guide to use this release. You can use the <a title=Connect href="http://connect.microsoft.com/VisualStudio"><font color="#0072bc">Connect website</font></a> to report bugs.<br><br>This forum will cover the build System Walkthroughs:<br><br><strong><em><u>Walkthrough: Using MSBuild to Create a Visual C++ Project</u>  </em></strong>   <p style="margin:3pt 0in"><font size=2><font face=Verdana>This walkthrough shows you how to c</font></font><font face=Symbol><font size=2><font face=Verdana>reate the C++ source files for your project, c</font></font><font face=Symbol><font size=2><font face=Verdana>reate the MSBuild project file and how to us</font></font><font face=Symbol><font size=2><font face=Verdana>e MSBuild to build your C++ projects.</font></font></font></font></font><br><br><strong><em><u>How to: Add a Build Event to an MSBuild Project</u></em></strong><br>This walkthrough shows how to add pre-build, post-build and pre-link event to your build process. This walkthrough also helps with excluding a build event from a particular configuration<br><br><strong><em><u>How to: Add a Custom Build Step to an MSBuild Project</u></em></strong><br>This walkthrough guides you through the process of adding custom build steps to your build environment.<font size=2><font face=Verdana>A custom build step is a user-defined command that executes between two user-specified points in the build.</font></font><font size=2><font face=Verdana>You specify the command line to execute, the input and output files for that command, and a message to display when the command executes.</font></font></p> <p style="margin:3pt 0in"><br><strong><em><u>How to: Add Custom Build Tools to an MSBuild Project</u></em></strong><br>This walkthrough guides you through the process of adding custom build steps to your build environment.<font size=2><font face=Verdana>Custom build tools are user-defined commands that execute between two user-specified points in the build.<font size=2><font face=Verdana>Unlike a custom build step, which is a single command that uses a single set of input files, custom build tools operate on multiple input files and can specify a different command for each file.</font></font></p></font></font> <p style="margin:3pt 0in"><br><strong><em><u>How to: Create a Project-to-Project Reference</u></em></strong><br><font size=2><font face=Verdana>This how-to topic demonstrates how to create a project-to-project reference in a Visual C++ project that uses the MSBuild build system. A project-to-project reference defines dependencies among Visual C++ projects, which is useful when you have a project whose inputs are dependent on the outputs of another.</font></font></p> <p style="margin:3pt 0in"><br>If you have not downloaded or would like more information about the CTP, please visit <a href="http://go.microsoft.com/fwlink/?LinkId=129231"><font color="#0072bc">http://go.microsoft.com/fwlink/?LinkId=129231</font></a>.  <br><br>Thanks,<br><br>Amit Mohindra<br>Visual C++ Team</p>Fri, 24 Oct 2008 23:42:19 Z2008-10-25T00:15:51Z