visual-studio

parallelize using openmp

I am trying to parallelize region in this form while(condition) { //work for loop //work } how could I do this ...

VS2010 Upgrade Edition - is 'upgrading' from express ligitimate?

Hi, I've read from a non reliable source that purchasing VS2010 Upgrade Edition (As opposed to full retail) is a valid licensing route when 'upgrading' from VS Express (free) - Can anyone confirm or refute this? Thank you ...

Any reason NOT to upgrade to VS2010? (Besides the cash of course!)

For those with experience of VS2008 and VS2010. Are there any areas in which you prefered 2008? Any annoyances with the upgrade? Any reasons not to upgrade? I'm coming at this from a Web Dev point of view. Thanks ...

Bitmap files added in .rc not listed in resource.h

I added a large number of bitmap files to my MFC project in resource view (Visual Studio). However, the resource.h file does not list any of these files. I would want them to be listed with exactly the same name as they are added in .rc bitmap list (say the name is xxx) I want it listed as #define IDB_xxx If I try to click on the bitmap...

how to create a WIN CE 6.0 LCDdriver?

hi every body,, this is vinoth. i am going to develop a new lcd driver which is for the external lcd panel(240*400 resolution) for win ce6.0 . am new t0 win ce programming . i dont know how to make changes all in the bsp and registry.if any one finds the answer pls help me. it would be very help ful for me. Regards Vinoth. ...

Can I make all public variables/methods/classes internal in Visual Studio at compile time?

Hi, I would like to make all my public variables variables/methods/classes internal when compiling my Visual Studio project. The source code would not change but when the compiled library is done, it should only have internal access. Is this possible? I have "InternalsVisibleTo("ClassLibrary") " set inthe Assembly info file for all th...

Cannot deploy database from TFS

Having a really tricky issue deploying a composite database solution from TFS to my local sql install. I wonder if anyone can offer advice? Thanks Composite database projects in Team Foundation Server. MarketRisk and MarketRisk_Structure. Both have references to another database called DataMirror. MarketRisk_Structure contains a vi...

Display exception information and Debug.Print() messages in Immediate Window

A friend of mine claims that calls to Debug.Print() as well as first-chance exception notifications appear in the Immediate Window for him. I found this surprising; for me they only appear in the Output Window. MSDN claims (here) that you can implicitly enable them in the Immediate Window by explicitly disabling them in the Output Windo...

To see javascript object properties and functions with intellisense in VS.NET 2008

I am creating classes in external files.And adding them with <script src='../js/clsClassName.js' type='text/javascript'></script> tags. When i created an object from this class I can't access its props, and functions with intellisense. Is there any way to achieve this? Sample javascript class: // clsClassName.js function ClassName(_p...

Refactor file copy in Visual Studio?

Does Visual Studio / Resharper support this? By refactor copy I mean to be able to enter new class name in some dialog, and to have the tool do all the refactoring (renaming) for you. No Copy of ... file names, and no error upon having two classes with same name in the project. Netbeans does this out-of-the-box :( ...

Ctrl+Shift+F10 equivalent in VS2010?

Used to be quite happy with the Ctrl+Shift+F10 shortcut in VS2008 to get at the right click menu after typing something that wasn't recognised to quickly resolve it. This doesn't work in VS2010! Anyone know the VS2010 equivalent? ...

Visual Studio Script Documents macro for javascript

Hi I think it would be quite useful to have a macro where, I fire it on a javascript file in Visual Studio (the file being embedded into the dll) and it takes me to the corresponding file in Visual Studio Script Documents. I doubt anyone has written one (nice if you have :-)) but I bet theres something similar out there. So the que...

C++ Formatting like visual studio c# formatting

I like the way Visual studio (2008) format C# code; unfortunately it seems it doesn't behave in the same way when writing C++ code. For example, when I write a code in this way: class Test { public: int x; Test() {this->x=20;} ~Test(){} }; in C# (ok this is C++ but you can understand what I mean), this part: Test() {this...

Visual Studio DTE2: how to get text content of the current document

I developped a package to extend Visual Studio. As part of it, I have a context menu that must process the whole text content of the active document (HTML editor). I understand how to get the current selection : TextSelection txtSelection = (TextSelection)_bllManager.CurrentDocument.Selection; But I dont't understand how to get the who...

Visual Studio - Static Library Compatibility (2008, 2010)

I have a product that I ship with static libraries for use by third party integrators. I have seen compatibility problems with other versions of VS so I was wondering if there is any info about library compatibility from 08 to 10 and vice versa? This is with Standard Windows Libraries (no mfc) and not ATL. ...

How do I give each test its own TestResults folder?

I have a set of unit tests, each with a bunch of methods, each of which produces output in the TestResults folder. At the moment, all the test files are jumbled up in this folder, but I'd like to bring some order to the chaos. Ideally, I'd like to have a folder for each test method. I know I can go round adding code to each test to mak...

Locating binding errors

I'm dealing with a large WPF application that is outputting a large number of binding errors. A typical error looks like this: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=Horizon...

Indenting c++ in visual studio.

I am using Visual Studio 2005 team edition. I come from a unix background using gvim. It would appear that formatting/indenting code seems to be a lot harder. Can anyone suggest a good option. VI with its autoindent/smartindent settings spoilt me. thanks ...

Visual Haskell 2008/2010

Does Visual Haskell for Visual Studio 2008/2010 exist? Or what are the alternatives to try it? EDIT: I've got a lot of alternatives but it seems that there is no Visual Haskell right now. ...

Sort items in dropdownlist in the "Report Data Sources" dialog window in Visual Studio

In the report designer in Visual Studio, a dialog comes up with a dropdownlist of hundreds or thousands of class names. They don't seem to be ordered in any fashion and it's hard to find the one I am looking for. I know I can type it but sometimes I need to pick from the list if I am not sure how it's called. Is there a way to get the l...