visual-studio

How can I dynamically switch web service addresses in .NET without a recompile?

I have code that references a web service, and I'd like the address of that web service to be dynamic (read from a database, config file, etc.) so that it is easily changed. One major use of this will be to deploy to multiple environments where machine names and IP addresses are different. The web service signature will be the same acr...

Visual Studio Context Menu Shortcut

Does anyone know the keyboard shortcut in Visual Studio to open the context menu? i.e The equivalent of right clicking. Thanks. ...

C99 stdint.h header and MS Visual Studio

To my amazement I just discovered that the C99 stdint.h is missing from MS Visual Studio 2003 upwards. I'm sure they have their reasons, but does anyone know where I can download a copy? Without this header I have no definitions for useful types such as uint32_t, etc. ...

Specifying a non-.NET dependency in Visual Studio

Hello, I'm calling a non-.NET dll from my project using P/Invoke, meaning that the .dll must always be present in the .exe's directory. Is there any way to tell Visual Studio of this dependency, so that it will automatically copy the .dll to the output directory when compiling, and will automatically include the .dll in the setup? Or ...

Compilation fails randomly: "cannot open program database"

During a long compilation with Visual Studio 2005 (version 8.0.50727.762) I sometimes get the following error in several files in some project: fatal error C1033: cannot open program database 'v:\temp\apprtctest\win32\release\vc80.pdb' (The file mentioned is either vc80.pdb or vc80.idb in the project's temp dir.) The next build of the sa...

Visual Studio 2005 - Refactor multiple attributes in same time?

Hello, I use the right button>Refactor>Encapsultate field to have my accessor every time. The problem is when I create new class, I can have more than 10 attributes and it's long to do 1 by 1 every accessor. Is there a faster way to create them? Thank you for your time. ...

Change the Catalog property of a Crystal Report in VS 2005

I'm working on an existing report and I would like to test it with the database. The problem is that the catalog set during the initial report creation no longer exists. I just need to change the catalog parameter to a new database. The report is using a stored proc for its data. It looks like if try and remove the proc to re-add it ...

Debug XP application on Vista computer

I am building an MFC application for both XP and Vista. I have Visual Studio 2008 installed on the XP machine but I need to debug the application on Vista. How can I do that? Do I really have to install Visual Studio on a Vista machine? When using remote debugging I assume that all executable and library files must be in my Vista virtua...

Where can you find the C# Language Specifications?

Where can I find the specifications for the various C# languages? (EDIT: it appears people voted down because you could 'google' this, however, my original intent was to put an answer with information not found on google. I've accepted the answer with the best google results, as they are relevant to people who haven't paid for VS) ...

Embedding non-edit widgets in a DataGridView

Is there any way to embed a widget in a data-bound DataGridViewCell when it is not in editing mode? For example, we are wanting to display an existing calendar widget in a cell. That cell contains a comma separated list of dates. We want to show the calendar instead of the text. We could create a custom cell and override the Draw m...

What do I need in order to create 64 bit .NET applications

If I want to compile my .NET applications for a 64 bit environment. Do I need 64 bit OS version or 64 bit Visual Studio version Or both? ...

How to use system environment variables in VS 2008 Post-Build events?

How do I use system environment variables in my project post-build events without having to write and execute an external batch file? I thought that it would be as easy as creating a new environment variable named LHDLLDEPLOY and writing the following in my post-build event textbox: copy $(TargetPath) %LHDLLDEPLOY%\$(TargetFileName) /Y...

How to setup non-admin development in Visual Studio 2005 and 2003

We have been given the directive to make sure that when we develop we are running out of the administrator and poweruser groups to prevent security holes. What are the steps to take to make this possible, but still be able to debug, code, and install when needed? We develop ASP.NET as well as VB.NET applications. Thanks! Brooke Jac...

Problems adding a COM component reference to a VB.NET project

I have a third party COM dll that I'm trying to add to a vb.net (2008 express) project. I put the dll in C:\WINDOWS\system32\ and registered it with "regsvr32 vxncom.dll". When I go to projects > add reference and go to the COM tab it shows up in the list of available components/libraries. But, when I select the library and hit ok, visua...

Visual studio relative reference path.

Hello, I usually format my project directory like J-P Boodhoo. a main dir containing solution file, then a lib folder for all third-party lib, a src dir, a tools lib for third-party that wont be deployed.... For more info look here I set in my project the reference path for all the needed folder, but if a developper checkout the trunk,...

What plugin would you really like to have for Visual Studio 2005/2008

In a brilliant world what would you love to have a plugin to do in VS2005/2008? One answer per post please, and use voting to agree/disagree with ideas. ...

What is the best pattern/solution to implement 'workflow (a process) for product development'?

Present: The product development is done in Visual Studio at the moment using .Net technologies, so it's important to stay in the same set of tools. Roles apart from developers are using spreadsheets, docs and diagramming tools, photoshop to do their work. Future: We want to build a workflow (a sequential process with roles, queues fo...

Cannot Access http://<tfs-server>:8080

I've installed TFS 2008, but I can't seem to access the server. When I try to connect to it in Visual Studio, I can't. If I try by browser on a remote PC, I get a generic page cannot be displayed. On the server, I get a 403. Nothing was touched in IIS and the service is running as a Network Service. Any ideas? ...

Can a standalone .EXE be created from a coded WebTest in Visual Studio Team Studio

I am running VS Team Studio 2008. I have created a web test that I want to use for monitoring a company web site. It interacts with the site and does some round trip processing. I want to create a standalone EXE file that can be run remotely. I have tried converting it to VB code and C# code and then creating compiling it into an EXE. ...

Can you keep Visual Studio source control binding info out of .sln and .csproj files?

My Visual Studio 2005 is storing the info about which projects and solutions go with which source control repositories in the .sln and .csproj files. Is it possible to make it store that binding information in some external file instead? The reason I wish the info were stored outside the solution/project files is to facilitate experimen...