visual-studio-2005

Mouse Event BHO

I want my BHO to listen to onmousedown event of some element in a certain webpage. I have all the code that find the specific element, and in msdn its says that I need to use the get_onmousedown event. I came up with this code. CComQIPtr<IHTMLElement> someElement; VARIANT mouse_eve; someElement->get_onmousedown(&mouse_eve); The que...

How to edit Build system paths in Visual Studio 2005

Hi, I want to change the build system path for building my VC++ project in VS2005. When I try to build the project, I'm getting an error that a specified header file cannot be opened. I have that header file in "Microsoft SDKs\Windows\v7.0\Include". But the path present in 'Build system path' is "Microsoft SDKs\Windows\v7.0\Include...

Cannot convert const char * to char *

Hello, Visual Studio c++ 2005 I am getting an error on the last line of this code. int Utils::GetLengthDiff ( const char * input, int & num_subst ) { int num_wide = 0, diff = 0 ; const char * start_ptr = input ; num_subst = 0 ; while ( ( start_ptr = strstr ( start_ptr, enc_start ) ) != NULL ) { char ...

Working with Visual Studio 2005 projects in Visual Studio 2008

Hi everybody, I've received a new computer from my employer. This time I don't want to maintain several versions of Visual Studio (although I know they work great side-by-side). Can I work with an ongoing VS2005 project in VS2008? By 'working' I mean the ability to open, modify, and save back to the original format. Any ideas? ...

context sensitive help icon (? icon) is not triggering the onhelpinfo function for one of the controls in my Propert page.

I have a WS_EX_CONTEXTHELP extended style property set on my property sheet. It basically sets the question mark button along with the close button (? X) at the right end of the dialog’s title bar in order to enable the context sensitive help feature for that property page. The property page consists of many different controls like butto...

How to open the solution physical folder with File Explorer in Visual Studio 2005

I cannot even copy and paste that physical folder in properties window :( ...

is it possible to set specific file extensions as exclusive check out only, with TFS

It seems that concurrent edits of certain file types (dtsx in my case) is just more hassle than it's worth. How can I configure TFS (hopefully at the server, but at the client if necessary) such that certain file types are checked out as exclusive, while continuing to allow concurrent edits on "simpler" files, like .cs. ...

running asp.net 3.5 and asp.net 2.0 in same site

We're running ASP.Net 2.0 on our corporate web site, and I'd like to get it up to ASP.Net 3.5 as smoothly as possible. The project/solution architecture in VS 2005 is an ASP.Net 2.0 web project and an .Net 2.0 data access layer project which is used by the site code. Upon opening the projects in a new VS 2008 solution they seemed to be...

Sorting a Data Gridview

Hi, I am a beginner to asp.net. I want to sort a gridview but the problem i m facing is when sort event handler is called the exception of stack over flow is thrown. Following is my code for sorting function. protected void sortGridView(string strSortExpression) { if (strSortExpression != string.Empty) { if (ViewState...

SetThreadName not working with Visual Studio 2005

SetThreadName does not set thread name with Visual Studio 2005, when used as below: DWORD threadId; HANDLE handle = CreateThread(NULL, stackSize, ThreadFunction, ThreadParam, CREATE_SUSPENDED, &threadId); if (handle) { SetThreadName(threadId, "NiceName"); ResumeThread(handle); } After opening the Th...

Switch to tab by typing a substring of its name in Visual Studio 2005

Is there a way to navigate between tabs in VS similar to the emacs iswtichb-mode or Firefox ubiquity switch tab mode (https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial#Switching_Tabs) ? In these apps, you just type a substring of the title of the tab (or buffer for emacs) to switch to this tab. For instance, to switch ...

Help decoupling Crystal Report from CrystalReportViewer

I'm using Visual Studio 2005 with VB.NET. I have a number of Crystal Reports, each with their own associated dialog resource containing a CrystalReportViewer. The class definitions look like this: Imports System.Windows.Forms Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class dlgForMyReport ...

Using a single visual studio 2005 solution with multiple source control applications

In my recent SO question I was helped tremendously in using git as a front-end to ClearCase. However actually trying the suggested answer(s) led to further complications. Visual Studio keeps a reference to the used source control provider in both the .sln as well as the .csproj files. I tried resolving this issue by keeping a modified co...

Visual studio 2008/2010 dilemma

We have a project which is being developed by a 3rd party. They are using LINQ and .NET 3.5 with Visual Studio 2008. We are currently at 2005 with .NET 2. Once they have delivered the code to us, we are unsure as to whether we will be able to compile/build their code using our current Visual Studio toolkit. I know we can download .NET...

How do I include 3rd party libraries in my code...

I understand the process of using a 3rd party library to access functions outside of my code base, but how do i actually set up Visual Studio 2005 to include them in the project. I have a 3rd party library with some headers, some cpp's, and some .lib files. In the projects properties I add the top level external library directory as an...

visual studio 2005 is deleting the .svn folder in the bin\Debug directory - how to prevent this?

For some reason I need to check in a couple of files in the bin\Debug directory. For the past few weeks, I am noticing a strange behaviour from VS2005. Every time I recompile the code, it is deleting the .svn folder in the bin\Debug directory and hence svn is showing "obstructed" error. Even svn clean up doesn't help due to missing .s...

How can I register a DLL which I created in C++

I created a DLL in C++ using Visual Studio 2005. My problem is that I cannot register this DLL. Show me the error: "LoadLibrary(MyDll.dll) failed. The specified module could not be found." Someone help me? Thanks ...

Installing .net Framework 1.1 globally configured all my websites for 1.1 How do I undo this/permanently reconfigure them back to asp.net 2.0?

I have a Windows 7 machine on which I am using VS2005. .Net 2.0 and .Net 3.5 are installed on it. An app claimed it needed .NET framework 1.1 before it would run. I therefore installed framework 1.1 and it now runs. Problem: Now whenever I try to open a website in VS2005 I get a messages saying it is configured for 1.1 rather than 2.0...

VS2005 Web Deployment Projects Exclude Problem

Sometimes ExcludeFromBuild rule does not work as expected and files included in the deployment which were expected to be excluded. The reason may be sometimes modifications to the web deployment file are not saved by Visual Studio although it appears to be saved. Reproduce: Open and change the Web deployment project and add a rule for...

Autoformat js file in VS2005

Hi How do I autoformat my js files in VS2005 Doesnt seem like this version support js autoformat out of the box. so any plugins or other tips? ...