visual-studio-2010

How can I install WTL 8.0 Project Wizards in VS 2010?

末鹿安然 提交于 2020-01-13 02:13:10
问题 I've downloaded the WTL 8.0 package and come to find the scripts to install App Wizards don't support VS 2010. Does anyone know of updates scripts to support installation in VS 2010? Thank you! 回答1: WTL 8.0 was released in june 2007 so couldn't possibly support VS 2010. You may download the current work in progress WTL 8.1 AppWizard from http://wtl.svn.sourceforge.net/viewvc/wtl/trunk/wtl/Wizards/AppWiz.tar.gz?view=tar and the matching library files from /include.tar.gz?view=tar. 回答2: The

Where does Visual Studio look for assemblies?

半世苍凉 提交于 2020-01-12 19:28:09
问题 I've got a framework which consists of many base classes that can be derived to develop many apps. Among these classes there is a subclass of System.Windows.Forms.Panel for which I wrote its own designer. Everything is working fine with Visual Studio 2005, but something goes wrong when I try to move to VS2010. This is a much simplified version of what I am doing: I have a project called CoreClasse which contains an interface and two classes: public interface IConf { string foo { get; set; }

Where does Visual Studio look for assemblies?

白昼怎懂夜的黑 提交于 2020-01-12 19:27:01
问题 I've got a framework which consists of many base classes that can be derived to develop many apps. Among these classes there is a subclass of System.Windows.Forms.Panel for which I wrote its own designer. Everything is working fine with Visual Studio 2005, but something goes wrong when I try to move to VS2010. This is a much simplified version of what I am doing: I have a project called CoreClasse which contains an interface and two classes: public interface IConf { string foo { get; set; }

How to skip the function with lambda code inside?

喜你入骨 提交于 2020-01-12 18:35:30
问题 Consider the fragment below: [DebuggerStepThrough] private A GetA(string b) { return this.aCollection.FirstOrDefault(a => a.b == b); } If I use F11 debugger doesn't skip the function instead it stops at a.b == b . Is there any way to jump over this function rather than using F10? 回答1: I can see why it happens but don't have a way to get around it. Perhaps someone can build on this. The lambda expression gets compiled into an Anonymous Method. I see: Program.GetA.AnonymousMethod__0(Test a)

Visual Studio 2010 - Is it slow for anyone else?

那年仲夏 提交于 2020-01-12 16:22:07
问题 I've read a lot of stuff about VS2010 being much more performant than VS2008. When I've finally installed it, I found that it, in fact, is much slower (save for the Add References dialog). For instance, Silverlight projects take twice as long to load, the startup of the IDE itself is much slower, etc... Am I missing something here or is it like this for everyone? Specs: WinXP-32bit, 3.5GB RAM, 7200RPM drive, NVIDIA QUadro NVS 285 128MB, Cure2Duo E4400 @ 2GHz, PAE enabled. 回答1: yeah, I've

Can't step into iterator block whilst debugging (C#)

依然范特西╮ 提交于 2020-01-12 16:06:55
问题 I'm trying to debug my code which is being executed from a unit test project, but when I try to step into a method, it just passes straight onto the next line and the breakpoint inside that method isn't hit. The method is on a class which is in a different project, but all the code is built in debug mode and I've tried cleaning and rebuilding the solution with no joy. However, this has only happened since I added an iterator block to the method. When I remove it and rebuild, I can step in

Change text color for Selected Text in Visual Studio [duplicate]

霸气de小男生 提交于 2020-01-12 15:01:46
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: I can't edit selected text foreground color in Visual Studio 2010. Anyone know how to do this? In the Options->Environment->Fonts and Colors dialog you can choose Selected Text in the Display Items listbox, but this only allows you to change the Item background property. How does one change the text color, so that for example I can have white text on a blue background when I select an item? Also, is there a way

Change text color for Selected Text in Visual Studio [duplicate]

依然范特西╮ 提交于 2020-01-12 14:59:08
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: I can't edit selected text foreground color in Visual Studio 2010. Anyone know how to do this? In the Options->Environment->Fonts and Colors dialog you can choose Selected Text in the Display Items listbox, but this only allows you to change the Item background property. How does one change the text color, so that for example I can have white text on a blue background when I select an item? Also, is there a way

How can I add a toolbar button to start an .exe file from Visual Studio 2010?

て烟熏妆下的殇ゞ 提交于 2020-01-12 14:23:28
问题 The title is self explanatory. I would like to add a button to a toolbar in order to run an external executable. How can I do this? 回答1: Add the application as an "External Tool", using Tools... > External Tools. Take note of where your entry was added to the list; on a stock vs2010, that would be entry #5. Click the mini drop-down button on the right side of your toolbar and select Add or Remove Buttons > Customize... Click Add Command..., select the Tools category on the left, then External

vs2010 c++ tail call optimization

旧时模样 提交于 2020-01-12 14:11:14
问题 Consider the following code: int fac_aux( int x, int res ) { if( x == 1 ) return res; else return fac_aux( x - 1, res * x ); } int fac( int x ) { return fac_aux( x, 1 ); } int main() { int x = fac( 50 ); std::cout << x; return 0; } According to generated asm file everything is ok, tail call is optimized. Try to replace int x = fac( 50 ); with int x = fac_aux( 50, 1 ); Strange enough, but tail call optimization is disappeared. As far as I remember there was no such a strange compiler behaviour