visual-studio-2010

Can't get OpenMP to Produce More than One Thread

#include <omp.h> #include <stdio.h> int main(int argc, char* argv[]) { omp_set_num_threads(4); printf("numThreads = %d\n", omp_get_num_threads()); } This code prints: numThreads = 1 This is compiled in Visual Studio 2010 Ultimate. I have turned Project Configuration Properties (All Configurations) -> C/C++ -> Language -> Open MP...

C#: How to add a row to a child table with a DataSet backing?

On the back end I am using XML files, xsd schemas a DataSet(dsThingPrograms) and DataTables. I have a parent ->child table relationship defined through the DataSet designer as such: things[RFID(pkey), name] programs[ID(pkey/autogen), name, path, thing_RFID(FK references things->RFID)] In my code I have: dsThingPrograms.things.Addthin...

Problem starting with Caliburn Micro

i am starting to learn MVVM, and i decided to choose Caliburn Micro to try it out. i am just at the building part (or before that even). i am opening the project. 1st i got an error saying i need to install some silverlight stuff. installed them. now i just get One or more projects in the solution were not loaded correctly. // output ...

StyleCop - auto sorting type members

Hi, is there any plugin for Resharper or VS extensions for auto sorting class/struct members as suggested by StyleCop? I.e. something which sorts public, protected, then private properties, then public, protected, private methods? ...

app.config in .Net3.5

Hi, I'm not able to write to the App.conf in .Net3.5. According to this question it goes like in .Net2.0, but it doesn't work. I can read from the config like this: var connStr = ConfigurationManager.ConnectionStrings[ApplicationConstants.CisConnectionStringName].ConnectionString But it's impossible for me to write in that file, b...

Is there something for Visual Studio that can let my team developer Blackberry applications?

Is there anything blackberry related that can be used in Visual Studio 2010?| ...

Visual Studio - find results in a dockable window

Hi all, I would like my "Ctrl+f" results to be shown in a dockable window rather than having to cycle through them. I saw someone does it, but didn't ask him how.. How? (-: (I'm using VS 2010 if that matters..) Thanks! ...

VS2010 DB Project Deploy Error SQL01268 Directory Lookup Failed

My VS2010 database deploy is failing on my build server, which has SQL Server 2008 R2 installed on it. Here's the output that's relevant: Creating Acme.Database... D:\TeamCity\BuildAgent\Work\da2fc5ebd5805d44\src\Acme.Database\sql\Acme.Database.sql(30,0): Error SQL01268: .Net SqlClient Data Provider: Msg 5133, Level 16, State 1, Line 1 ...

Is there a table designer for VS2010 database project?

Am I missing something here? It seems that the only options to create a new table in a database project in VS2010 is: Create a table object as a file, then create all constraints (defaults) as separate files, then create each index as a separate file, and primary key as a separate file and on and on... Or Create the entire table schem...

How do I use libcurl in Visual C++ 2010?

Hey guys, I was wondering if you would be able to help me use libcurl within Visual Studio to resolve the errors in the image below: ...

"Add as Link" for folders in Visual Studio projects

In Visual Studio, we can "Add as link" to add a link to a file in another project in the solution. Is there any way to do this for entire folders, so that an entire folder in project A will be visible in project B, without the need to manually link to new items in that folder? ...

Visual Studio Express 2010, include path

I have a solution with many many projects, I did not write this project but it's an open source project (mysql++) , I need to include an include path to all projects. I would like to just globally add this include path to the solution and have it cascade down to all the projects... is this possible? I dread thinking about having to do ...

Keyboard mapping scheme plugin for VS 2010

Does anybody know whether it is possible to write a plugin for visual studio 2010 to implement a different key mapping (emacs in particular) for the C# editor? Are there any examples? ...

Error message: 'OfType' is not a member of 'System.Text.....

Well the full error is Error 3 'OfType' is not a member of 'System.Text.RegularExpressions.MatchCollection' in the following lines of code, (curly braces in regex.Matches(input).OfType) For Each group As Object In regex.Matches(input).OfType(Of Match)().Select(Function(c) c.Value.ToLowerInvariant()).Where(Function(c) Not keywords.Con...

VS2010 Evaluation Crashing while Creating new Project

Hello Guys, I thought of Trying new VS 2010 Professional. So I have installed an evaluation copy. But when I am clicking on New Project-> and trying to edit the Default project name to some other name in the new project Window, It's crashing my VS2010. Any Idea what I need to do? Does anyone encountered this issue before? Thanks in Adva...

SQL Server 2008 R2 installed, still cannot open version 661?

Getting an error running a sample MVC2 site because of DB version errors. I ran the installer for SQL Server Express 2008 R2 and it finished, I rebooted. Try to run the site again and see the same error. Downloaded/ran R2 installer and chose upgrade but there is nothing to upgrade... is something wrong in my VS2010 or windows in general?...

Need Help with VS 2010 installation. Urgently! Here are the errors that I am getting......

not sure if I can ask this kinda ques in here but anyway..hoping to get helpful answers coz this installation is driving me crazy..been trying since the last two days but to no avail... (including the pics of errors that show up in the same order as the link of the pics given below) http://www.flickr.com/photos/50525207@N02/4945483207...

ASP.NET Dynamic Data TextSearch Custom Filter Template

I'm trying to implement a custom filter template for all text based searches and running into problems constructing the query. I've been following the instructions posted on this blog but not sure how change the GetQueryable method to perform a WHERE columnAttribute LIKE '%something%' query. In the example on the blog the expression i...

Is there a free Visual Studio extension that "drops markers" like CodeRush

The paid version of CodeRush has a feature where you can "drop a marker" in the code and later go back to them. They work like a stack, so you can drop markers (across multiple files) and go back to them in the reverse order that you dropped them. Is there a dev studio extension that does anything similar? ...

Loading numpy into IronPython

Hi, I've recently installed Ironpython + tools and having trouble loading external modules (numpy). this is my test code: import numpy numpy.test() when writing my simple test, intellisense can find numpy, however when it's run from vs2010, I get: ImportException was unhandled by user code: No module named numpy IronPython Consol...