visual-studio

Creating registry keys in Windows 7

In attempting to upgrade some C++ software to run in Windows 7 I have experienced some problems in being able to create registry keys from scratch. This is my code: // // Create a brand new registry key // LONG Registry::CreateRegister( std::string path ) { HKEY hKey; DWORD dwDisposition; LONG openRes = RegCreateKeyEx( H...

when adding a column more to a DB table, how do you get your datagridview to show the change?

I have created a dataset in a project in visual studio that points to a table in my database and then bound a datagridview control to it. Now I open the database and add another column to the table in the database. Then i open the dataset and update it's configuration to include the change. Then i want to update the datagridview, but I...

TFS: cannot setup up new build

I have a problem that is described here: http://stackoverflow.com/questions/2146198/tfs-cannot-set-up-new-build I use Visual Studio 2008. Unfortunately, the solution provided there, didn't help. I tried to remove and add again my TFS server - no help. Also, it's not a problem with security policies or lack of proper right, because I can ...

System.Drawing.Color in console application

Hello, Simple question from .NET beginner. How to work with colors in console application? VS do not let me declarate System.Drawing.Color namespace. I need to assign color for one method in console application. Regards, Tomas ...

Opening Code Blocks project file (.cbp) in Visual Studio 2008

I'm switching over to Visual Studio 2008 from Code Blocks. I have a project written in Code Blocks, and I'd like to manage it in Visual Studio. The problem is that the project file for the program is in the .cbp file format. Is there any way to get this working in Visual Studio? ...

How to create unit tests which runs only when manually specified?

I remember something like 'explicit', and google says that nunit has such attribute. Does Microsoft.VisualStudio.TestTools.UnitTesting provide something like this? ...

Way to get VS 2008 to stop forcing indentation on namespaces?

I've never really been a big fan of the way most editors handle namespaces. They always force you to add an extra pointless level of indentation. For instance, I have a lot of code in a page that I would much rather prefer formatted as namespace mycode{ class myclass{ void function(){ foo(); } void foo(){ bar(); } v...

Projectile Motion in VB

What I'm trying to do is simulate projectile motion in Visual Basic using Visual Studio. Essentially, something like this but without air resistance or mass. Anyhow, the way I'm doing it is using a PictureBox and drawing the image in (of, say, a circle) every so often with a timer of interval 1 with its x and y properties being variabl...

Visual Studio - is there a repeat last command command or shortcut?

This is a lark, as I'm pretty sure not, but just want to throw it out there, otherwise I can just use a macro. ...

Source Control - XCode - Visual Studio 2005/2008 / 2010

My apologies if this has been asked before, I wasnt quite sure if this question should be asked on a programming forum, as it more relates to programming environment than a particular technology, so please accept my (double) appologies if I am posting this in the wrong place, my logic in this case was if it effects the code I write, then...

Element Inspector in Visual Studio

Hey, I accidentally closed that window in VS that you can use to inspect variables and the like, and I can't find anywhere to get it back; where do I find it? Thanks. ...

Visual Studio's default browser will not change from Internet Explorer

I've tried the browse with... method and went into Chrome to make it my default. VS says Chrome is my default, but no matter what I try to do, it opens a new window in IE. VS 2008, IE8 How do I make it open a window in Chrome?! EDIT:: Just uninstalled IE8, and now it opens in Chrome, but it gives me an error when I compile. Unabl...

Why is the 'Named Domain Class' tool missing in the DSL Designer category in the toolbox ?

I have the Domain-Specific development with VS DSL Tools book by Cook, Jones, et.all The book and various tutorials online mention a NamedDomainClass tool that should be present in the DSL Designer toolbox. I have installed VS 2010 beta 2 on Win XP - however this tool is missing in the toolbox. I've created a project using the Minimal p...

VS2010 possible to convert projects back to VS2008?

As you all know the VS 2010 RC is out for MSDN subcribers. Unfortunately I guess I have the same problem as some of you, in that the company I work for wants to continue keeping our projects on VS 2008. I would like to know if its possible for me to work with VS 21010, then later convert my projects back to VS2008? I intend to use v...

Where to change assemblyinformation-defaults?

Hello, our system-administrator has installed visual studio 2008 on my pc and didn't enter our companys name. Now i have the problem, that I always have to change the name in the assembly-information manually, because the pc-manufacturer is automatically inserted to the assembly-informations. Does anybody know where I can change the def...

Compiling all code parts in Visual Studio

Hi there, I am currently working on a platform indepedent project and we have frenquently come across the following problem: When the Windows guys work on code that is not called by any other part of the code base it will not be compiled and will therefore not trigger compile errors. Once this code is uploaded to a svn server and Linux ...

#include<dirent.h>

when i am including (#include in visual studio 2005) this headerfile it is showing the error as (fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory) i am new to C++ can anyone please provide me the solution for this error? ...

jQuery Intellisense Doesn't Work When Any Other JavaScript File Included

As the title says. If I include any other javascript file alongside jquery-1.4.1.js then intellisense for jQuery ceases to work. Any ideas why this happens? As always, I've had a good search around but without any luck, it should just work. Cheers ...

System.BadImageFormatException - can't solve it

Hello I'm using Visual Studio 2010, running in Windows 7 X64 I was trying to create a simple WCF implementation of duplex communication. Sadly enough I got stuck very quickly. I have 3 projects: - Service library with simple service contract and the implementation - ServiceHost: Hosting the service library via SelfHosting - Client: Con...

Bookmarking with eclipse

I really miss the bookmarking feature of Visual Studio + Resharper. For example, I press Ctrl+K, Ctrl+K to toggle a bookmark, and then Ctrl+K, Ctrl+N to go to the next bookmark, Ctrl+K, Ctrl+P to go to the previous bookmark. I can even go to the next/previous bookmark in current file with some other key combination. Unfortunately, I cann...