visual-studio

Visual Studio - tips for managing work on many open files

How do you feel about VS making you hunt for a tab that you used just minutes ago when you have a bazillion open tabs? What about constantly dragging tabs around to keep the ones you use close together? Oh, so you think AARGH, too? Then read on. I work on a piece of software with dozens of projects and hundreds of files. It's really ea...

How do I turn off the tag display at the bottom of Visual Studio source windows?

Visual Studio tries to be helpful by showing all the nested tags where the cursor is (the display at the bottom of the code window, next to the "Desgn | Split | Source" options), but I never use it, and it seems to slow things down when I'm just trying to cursor past large blocks of code. Is there any way to turn this feature off? ...

Changing path for custom build step

I have inherited a visual studio 2003 project which uses some custom build steps. I'm having some trouble with the path to the tool. Where does visual studio get its PATH? I've echoed out %PATH% in the custom build step and it has no resemblance to the system path. I did find a value in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Micro...

How do I restore a menu to the Visual Studio 2008 menu bar?

My Alt key was unknowingly stuck down and I tried to open my Window Menu in VS, which resulted in removing the menu from the bar. My question is, how the heck do I get it back? ...

Notepad++ like search highlighting in VisualStudio

Notepad++ has a neat feature that combines search and highlighting. When you select a word, it is highlighted wherever else it shows up on the page, so it is an implicit search, which I find very very useful. Is there a way to get that into VS? I would also be interested in having these highlightings stick so that I can highlight more...

Sharepoint Workflow Development (2 part question)

Hello everyone, I'm trying to develop some SharePoint workflows for the company I work for, and I'm not too familiar with the ins and outs of the technology. Normally when I want to familiarize myself with something, I just play with it, look at the properties, find all the methods, etc. When I fire up Visual Studio and try to creat...

Any way to run a macro (in an open VS instance) from the command line?

I typically run a script each night that updates my code from SVN, then builds it. The last few days I have a long debug run I'd like to start at night so it can go through the hour or two it takes to hit the error before I come in the next morning. The way I've done this so far is to VPN in later in the evening to start the run. Is the...

How to attach to process using VC6 on win 2003?

The 'attach to process' dialogue box on VC6 running on win 2003 (I believe vista as well) has no processes to attach to in it... I've tried logging on as an administrator and running as an administrator but no luck. Any other ideas? ...

Why does Visual Studio 2008 forget where to dock my add-in's window pane?

I wrote a simple add-in for Visual Studio 2008 that opens a dockable window pane. You can download the source and a binary installer by clicking here. The nature of the add-in means that it is ideally going to stay docked next to where you edit your source. But sometimes, on some installs, it won't stay docked. You run VS, you dock my...

Automate Visual Studio Setup Project

I want to automate the process of building the installer by running a batch file. The batch file should first sign the assemblies and than start the building of the installer. After the installer is created the batch file should sign the .msi file too. Is this possible? I'm using Visual Studio 2008 ...

C++ Visual Studio Runtime Error

Can anyone explain to me what this means? "Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention." ...

Post Build Events Customization In Visual Studio

Hi Is there a way to customize the post build event macros, I would like to move the new assembly to a sub folder in the same directory named by the version of the assembly i.e. copy $(TargetDir)$(TargetFileName) $(TargetDir)$(ASSEMBLYVERSION)\$(TargetFileName) However there is no such 'macro'. Sort of building a executable to get ver...

Where are the Icons included with Visual Studio?

I heard that Visual Studio came with an Image Library, but I can't find it anywhere. Does anyone know where it is? ...

How to ensure a mobile app is deployed to the mobile device?

We just ran into a problem where everything was compiling correctly, but not being deployed to the mobile device during debugging. Of course this caused weird errors that were hard to track down. The solution was simple, just delete the directories on the mobile device. Is there a way to ensure/force the files to be deployed every tim...

Prevent third party DLLs from being checked out in VSS

(I know I am using Visual Source Safe, I do not have a choice because it comes with the MSDN Subscription license and my company does not want to buy a third party source control solution....) I have a VS 2005 solution with 3 C# class library projects, 2 ASP.NET web site projects and one ASP.NET web service project that is stored in a V...

Visual Studio 2008 will not edit read only files

So, up until today, when I tried to edit a read only file in VS2008, a dialog popped up giving me three options: Edit in memory Make writable Save a copy There was also a checkbox which read "Never allow in memory edits". Suddenly, it has stopped offering these options and simply will not accept any input in the editor window if the...

Why does Visual C++ not hit a breakpoint in, or step through a specific function?

I have the following: classA::FuncA() { ... code FuncB(); ... code } classA::FuncB(const char *pText) { SelectObject(m_hDC, GetStockObject ( SYSTEM_FONT)); wglUseFontBitmaps(m_hDC, 0, 255, 1000); glListBase(1000); glCallLists(static_cast<GLsizei>(strlen(pText)), GL_UNSIGNED_BYTE, pText); } I can hit breakpoi...

To Tool or Not To Tool: Visual Studio Plugin

My friend, Dave, and I have been talking about this, well mostly him, but I think it is an excellent question and has really got me pondering it lately. Basically the question is this "Should you (ab)use tools/plugins for visual studio or use only what VS offers." More or less thats the question. The thought behind this is that as a de...

Automate "Attach to Process" in VS2005/2008

I was wondering if anyone knew of a macro or keyboard shortcut or anything really that would automate Attaching to a Process within visual studio? ...

what is the diff between dependencies and manually add a dll/ocx in vs installer 6?

i'm using vs installer to build a setup package for my vb6 app. and the problem is i can see that under the project explorer there's a list of dependencies attached to my exe file. and under the file system on target machine treeview, i can actually store the dll/ocx on a folder or in the windows system folder itself[the left window]....