visual-studio

Search and replace with regular expressions under Visual Studio 2003

I have a large C++ code base that I'm doing some refactoring on where a number of functions have become redundant, and hence should be removed. So I would like to replace MyFunc(Param) with Param where Param could be a literal value, variable, function call etc... From the online help I gathered that the search parameters should ...

Immediate Window automatic cleaning in Visual Studio

Hi. I have a question about debugging in Visual Studio. Is it possible to clear the Immediate Window in Visual Studio automatically before each startup of a debugged application? The >cls command and Context Menu->Clear All are useful, but they are not automatic and require personal attention each time I run the application. Again, Syst...

Visual Studio registry capture utility has stopped working, error compiling C# project in Windows7

Windows 7 Shows build error like below everytime I compile my project. ...

Get Physical Location of Types of an Assembly

May seem to be a similar question to GetReferencedAssembly locations, but my question is getting physical locations of the types in those referencedAssemblies. Can I get information from pdb? Or can I use cecil? Ultimately my goal is search for a keyword for a specified assembly, and list all the files [.cs/ .fs/ .vb] that uses this key...

SharePoint ItemAdded Event Delay

Yet another question. So now my EventReceiver and its logic is working just fine. Except for one thing. Basically it queries the whole list through CAML queries, and then passes the result to a DataTable object, and later on to a DataRow object... Like all, in test environment, it works perfectly, but in production... What happens is...

Anyone knows a good vbscript vbs IDE

I'm looking for a free or opensource IDE for vbscript... i have Visual Studio 2008, but it doesn't support vbs. thanks ...

visual C++ express 2010 and setting env variables solution wide

Hello, I'm C++ dev migrating to visual 2010 c++ from vim/g++. Here blog I've read that VC++ directories are no more and that I should use property pages in vs 2010 but I don't know how... Here is what I need to do. I have w solution (50 projects strong) and all of them use boost, pthreads, xercesc and few other libs. I have env variables...

IronPython for asp.net integration with Visual Studio 2008

hi, I have Visual Studio 2008 Professional SP1 installed. I also have IronPython v. 2.6 installed. In the C:\Program files\IronPython folder there is an IronPython.dll file version 2.6.911.0. But when I create an asp.net website project in IronPython in Visual Studio, the IronPython.dll file created in the bin folder is listed as versio...

Copy task in Visual Studio 2008

This is a question related to a previous question I posted (see here). I need to configure a .csproj file to copy some files from a directory to another one (let me call them SOURCE and DESTINATION). I also need to change the SOURCE path depending from the configuration I'm using. For example, if I compile my project in Debug mode, the S...

Visual Studio Tools For Dynamics GP - create new Window?

I'm creating my first Dynamics GP integration using the Visual Studio .NET integration. In starting from the programmer's guide, I know how to add my custom form to an existing GP window. what I'd like to do though is create a new form that's not tied to any existing window. i.e. I'd like to be able to let the user add a window shortc...

HTML Editor in Visual Studio 2008: how to break attributes to separate lines?

In Visual Studio 2008, I've used a nice feature in its XAML editor which breaks a line so that a control's attributes are automatically positioned on new lines: one attribute per line. Is there a way to do the same for the HTML editor? Thank you. ...

What Datatype to use for this so that the image can upload to the SQL Server?

Visual Studio, c#, SQL 2005 server. I"m trying to match the .dbml table data type with my .cs file. The goal is to allow an image to load to the database. So far it is not working. The issue seems to be related to the file type for the FileContent column. I have tried several different variations, but none have worked. <Column Nam...

Visual studio layout and toolbars are all changed

I opened up Business Intelligence Design Studio (BIDS) the other day. Since then my visual studio toolbars and panes have been all screwed up. Commands are missing, panes never stay where I want them, etc. Whenever I install VS, I usually select the Web Developer settings when the first time dialog comes up. I'm pretty happy with the la...

Can't get VS2010 RC to print in color

Is it just me or will VS2010 RC not print code in color? I have tried everything I can think of to no avail, everything prints monochrome. I have the latest drivers for my printer VS2008 prints color just fine (As do other apps) I tested printing in high quality color, normal and ink saver modes. Class Diagrams DO print in color making ...

Comparing folder current state with saved prior state (C#)

I want to make a winform application that tells you whenever you open it all the changes that have been made since last opening, and maybe record a log of it, such as: File/folder creations File/folder renamings File/folder exclusions I've figured i have to do four tasks: Save the folder state (tree) in a reloadable format Load thi...

Best tools for analyzing dll loads conditions in Visual Studio for C++

I am using Visual Studio 2008 to run an application, which loads a number of DLL's at startup, that immediately exits with "The program '[3668] cb_tcl.exe: Native' has exited with code -1072365566 (0xc0150002)." Unfortunately I get no other clues about the source of the problem and the exit occurs before the program starts, but I suspec...

Visual Studio Database Edition memory problems and auto recompile

Currently storing database of a large application with 2,000 stored procedures in Visual Studio Database Edition. The problem I'm having is that when I try and edit a stored procedure, Visual Studio becomes unresponsive and it can take 30 seconds to type in a single keyword. What I believe is that Visual Studio is attempting to auto re...

List of $(Things) you can have in Visual Studio's Project Properties

I know of the following: $(ConfigurationName): for example "Debug" or "Release" $(SolutionDir): directory of the solution $(PlatformName): "Win32" or "x64" Are there any others? ...

How can I make use of Visual Studio's regular expression to replace multiple lines of code?

Is it possible to make use of Visual Studio 2005/2008 "Find" and "Replace" functionality along with regular expression to replace multiple lines of already coded C# code into a single line of code? Note that Visual Studio's "Find" and "Replace" regular expression syntax differs from .NET Framework. ...

MFC Dynamic Text Control?

What MFC control should I use and how should I use it to display constantly changing text (like progress text) on a dialog? For example, should I use the static text control? But can you change it programmatically? ...