visual-studio-2010

error C2872: 'range_error' : ambiguous symbol

I have already searched SO and google, I am not declaring the same variable in two places nor am I including something in a weird way..that I know of. The insert method should be working fine, it's a pre-written method(i guess that could be wrong too.. lol). This is the error I get. Error: error C2872: 'range_error' : ambiguous symbol...

IIS 7.0 reflect web site changes

I have published a website on my windows server using IIS 7.0 and visual studio 2010. Its an asp.net project. While publishing it I chose the option "Allow this precompiled site to be updatable" But what I do not know is how to update it when I change my templates/pages/IP address etc in my visual studio project files? I have to rem...

How do I create a valid installation package?

I'm using the latest Visual Studio 2010, with C# 3.5 and my project is working fine on my machine. I'm using SQLite for the database, and it's just a little .db file. What's the best way for me to package this simple little application? What is the preferred way to create a project that's setup for deployment? ...

How do I make it possible for a popup to come up, based upon the selection a user makes in a grid view?

I've got a ListView object, with a GridView within it, where I'll be putting data. The list view is in SingleMode. I want it so that the user can select a row, and based upon criteria in that row, it would then bring up a popup display relevant data to the selected row. There are 2 possible ways I envision this could happen. I could ...

VS2010 ASP.NET MVC add unit test to existing project

Is it possible to add the unit testing functionality (in Visual Studio 2010 Web Developer Express) for an already existing ASP.NET MVC project? ...

Custom tool error Failed to generate code.

Why this error is appearing? I was just setting some default values in a dataset designer... its second time that this is appearing... "Custom tool error Failed to generate code. Exception of type 'System.OutOfMemoryException' was thrown" ...

How to get IE8/9 active tab html source by C#

I am trying to create a program in C# in Visual Studio which would acquire html source of a current opened (or selected, or all) tab(s) in Internet Explorer 8/ (prefered) 9. I am tired of copying by - browser-> View Source, alt+a, alt+c, program -> alt+v Anyone got an idea how to solve it? ...

Line Counter for VS 2010

Hi everybody, I'm looking for a line counting tool like Project Line Counter by Oz Solomon: Project Line Counter. This add-in worked perfectly for me with VS 2005 and 2008. But, unfortunately, Oz has no time to develop it further or to adapt it to VS 2010. Do you know some great line counting tool for C++ code that perferably (but not ...

Focus On / Activate CustomTaskPane in Excel

I am having difficulty programmatically activating / focusing on an existing, visible CustomTaskPane in Excel. Specifically, I am trying to create a routine that will shift focus from the active worksheet to a ListBox control in the CustomTaskPane upon some user action. The CustomTaskPane and ListBox are already visible at the time of ...

Team Foundation Server 2010 Build Question

Does anyone know if its possible to have TFS2010 Build Server run ONLY tests rather than entire project. Here is why, I want to setup a schedule to have my server execute my tests daily, without having to make sure my entire project is fully functional, since I will be working on the code, it may not be buildable, however my tests shoul...

Visual C++ 2010 Underline errors in NEW files with #define not working?

Hi. Im having problems with the visual studio 2010 editor. Since today, visual studio wont underline errors anymore if i use #define like so: #ifndef TEST_H #define TEST_H class foo{ blabla } #endif If i remove the defining commands, the errors show up. The wierd thing is, i have other files in my project with the exact same setup an...

Writing C code in Visual C++ on VS2010

I appreciate the differences are negligible, but im doing some number crunching and so i want to use C. Ive just created a project in VS2010, chosen a C++ project and written some C. All executes fine, but is this being created and executed in the fast(er) C compiler or the C++ because its a C++ project? How can i specify that the code...

GSL for Visual C++ 2010

I'm trying to use the GSL 1.14 for VC2010 considering the build project proposed by Brian Glandman's (http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php). After building libraries I tried to run a simple example using the function gsl_sf_bessel_J0. See code below: include include int main(){ double x; double...

Help with Linker error LNK2038 !

I am trying to port a small app of mine from Win XP and VS 2005 to Win 7 and VS 2010. The app compiles and runs smoothly in Debug mode, however in Release mode I get the following error : pcrecpp.lib(pcrecpp.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in LoginDlg.obj The wor...

How to create a parent-child structure in WFA TreeView having a list

I have a List of structs: public struct NodeIntHwnd { public TreeNode Node; // a treeNode with a string public int Level; // level of depth public IntPtr Hwnd; // not important }; They are sorted in a List sth like: { This is a node, 0 // root This is a node, 1 // level down This is a node, 2...

How (and when) do I use TFS with private DLLs that can also be served by NuGet/NuPack?

We have a couple of private "Enterprise Services" DLLS that are used in all our Websites for authentication, logging, etc. Since they are private, we also control the versioning and source of these DLLs. Our historic (error prone) steps after creating File | New Project include Add the "Enterprise Services" project Add a reference t...

MFC - dim main window when showing modal dialog

I have a fairly standard MFC application that consists of a main window, and occasionally brings up modal dialogs. As we all know nothing can be done outside a modal dialog until it is closed. Therefore, a nice UI feature is to "dim" the rest of the main window behind the dialog, to visually indicate you can't use it until you're done ...

Windows installer - prevent overriding a dll.

I’m creating a setup project (Windows installer) in vs2010. When the user install it for the 1st time – everything is working just fine, but when the user try to upgrade the old application that’s running prevent of coping the new dlls to the installed folder. How to show a user a dialog box that force him to shut down an application tha...

How do i get CUDA working with VS2010?

Ok i havent used CUDA before, i was hoping to get started on it using VS2010. Ive run the bandwidth test and ive got everything installed (i believe). I also have NProfiler installed. But im not too sure what i have to do to start coding CUDA in VS2010. I have been googling around but everything seems aimed at VS2008. ...

X86 inline assembly, writing into C array

Assembly info: Using Visual Studio 2010 to write inline assembly embedded into C Hello, I am trying to write into an array of chars in C and trying to mimic the action of this C code: resNum[posNum3] = currNum3 + '0'; currently this is what i have: mov ebx, posNum3; mov resNum[ebx], edx; //edx is currNum3 add resNum[ebx], 48; // a...