visual-studio

Converting mysqlpp::String to C++ int

Ok, I'm relatively new to using the mysqlpp library that is used in Visual Studio to connect to a MySQL database and am having trouble trying to convert a vector of type mysqlpp::String to a vector of type int. Does anyone have any experience with mysqlpp and would mind helping me out a little? I've posted an example of what I'm basicall...

How to improve Visual Studio 2010 cursor navigation performance?

My Visual Studio 2010 beta 2 is fast for all tasks except for cursor key navigation. Inside the text editor if you hold one of your keyboard's arrow keys, it will move slowly across the code. I already tried some optimizations but none of them worked. I have installed 3 plugins which may contribute for the slowing: AnkhSVN VisualHG I...

error while trying to create DTE2 Interface object with ruby

I am trying to use ruby win32ole lib and DTE2 Interface to control visual studio 8 \ tried this require 'win32ole' ide = WIN32OLE.new('EnvDTE80.DTE2') and received this error unknown OLE server: EnvDTE80.DTE2 what am I doing wrong, can this work at all ? ...

VB.Net and C# Projects in 1 Solution

Is there a way for me to create multiple projects using different languages under 1 solution in VS 2008? If so, how? ...

attempted to read or write protected memory ASP.Net

I get this error whenever I attempt to run a web app from the IDE. I am using VS 2008 Team Edition, .Net Framework 3.5, SP1. This literally occurs on a brand new app with no code it in it at all. Just a default page. I hit the run button, and I get the error message. There is no break point, I don't get any error information, just t...

Reuse existing types with ADO.NET Data Services

I have an application which consumes both a WCF service and an ADO.NET Data Service. Types are shared between the server and client using a shared class library. When I configure the service reference for the WCF service, I can choose to use the existing types in the class library to avoid creating duplicate types in the proxy classes. ...

Dataset validation for type ( C# .NET )

Hello. Im working with dataSets validation in my project. I'm doing validation when DataTable_ColumnChanged event fires in partial class of dataTable, and its doing its job, but i would like to also validate datatype mismach on dataSet level, not UI, to provide custom error message. If [someID] expects number, but someone enters string i...

Compiling same project with two different settings in Visual studio.

I have Visual C++ solution. One of the project needs to compiled targeting x86 as well as x64. With default setting it can be compiled once in solution file. Is it possible to build solution once but build the same project with two different settings ? Thanks in advance for any help. ...

C# populating treeview and getting errors on directories that I do not have permission to read

Hi, I am populating a treeview control, c# visual studio 8, using this code: private TreeNode TraverseDirectory(string path) { TreeNode result = new TreeNode(path); foreach (var subdirectory in Directory.GetDirectories(path)) { result.Nodes.Add(TraverseDirectory(subdirectory)); } ...

Does Visual Studio 2008 have a "method view"

I'm not sure how to describe this except with reference to the Eclipse IDE. Using the eclipse package explorer when you click the "+" sign next to a class, it expands to show all the methods in alphabetical order. Using visual studio, the default solution explorer appears to only display the class names. Is there some way to achieve E...

How does visual studio associate mfc dialog classes with dialog resources?

Hello, I was wondering how visual studio associates mfc CDialog derived classes with their corresponding dialog resources. I'm not interested in how the connection is made at run time (as asked here), but rather at design time. When I add a message handler to a dialog, how does it know which class to add the handler to. Also, is it pos...

visualization of flows that happened in the code

Hello all. I am looking for some tool that can show me what flows happened in the code when I used some functionality ? Like some visualization or imaging of what code was called, or from where in the code some variables were touched . Thanks for help. ...

Externalizing parameters for VS2008 C++ project compilation

Is there some way to externalize the paths of libraries that are used in the compilation process on Visual Studio 2008? Like, *.properties files? My goal is to define "variables" referencing locations to headers files and libraries, like *.properties files are used in the Ant build system for Java. ...

get other values from source on selected index changed of combo box

I believe it's irrelevant of what type of combo box i'm using, but I'm using a Rad Combo Box. My data source not only selects data for the Data Text Field and Value Field but it also selects a couple of other columns. I want to get the values of those columns for the selected Item. How can i accomplish this on selectedindexchanged? <ta...

C# DeploymentItem fails to copy file for MSTest unit test

I'm having trouble getting an XSL file to be copied to the same directory as the test assembly when I use the DeploymentItem attribute on an MSTest unit test. I followed the chosen answer for this question and the file I need copied has its "Copy to Output Directory" set to "Copy Always". When I check my ProjectDir\bin directory (the T...

Is it possible to sign an MSBuild file?

I've been running into the MSBuild SafeImports registry hack problem. We can't import a targets file without adding its path to the registry, otherwise Visual Studio pops up a security dialog asking for confirmation to load it. I saw a feature request about this filed at MS Connect in 2005. An MS person replied saying that they were pla...

Visual Studio 2008 doesn't connect to SQL Server 2008

When I try to make a new data connection from a Visual Studio 2008 to a database on SQL Server 2008, it fails. It says, it supports SQL Server connections up to SQL Server 2005 version only. What is missing in my installation? Or where are settings I should change? ...

Why does Visual Studio disable the media buttons?

I've got iTunes running and the media buttons on my computer work with it. I've installed mmkeys.dll which has been recommended for making iTunes work with media keys in the background and it works fine with all apps - firefox, thunderbird, MSN messenger, Open Office. But when Visual Studio 2008 is in the foreground the buttons stop wor...

VS 2010 beta 2: ASP.NET MVC2 project cannot add Areas

I have installed VS 2010 beta 2 on my Vista Home Premium 64-bit edition laptop. I was so excited on MVC 2 but to my disappointment, I cannot add Areas to the MVC 2 project. Anywone experiencing this too? Or is it only me? I would love to hear some info / walkthrough on how to fix this problem. Thanks! EDIT: added screenshot ...

Receiving error message: "The installed product does not match the installation source(s)"

I have written a .NET C# application and have created an installer in Visual Studio 2008. Everything works fine. The application uses an external config file (not app.config). The application is written such that when the config file is deleted, the defaults for the application are restored and a new config file is created. This beha...