#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...
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...
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 ...
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?
...
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 anything blackberry related that can be used in Visual Studio 2010?|
...
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!
...
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 ...
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...
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:
...
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?
...
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 ...
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?
...
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...
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...
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?...
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...
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...
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?
...
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...