visual-studio-2005

OpenMP in Visual Studio 2005

I am attempting to use OpenMP to create a parallel for loop in Visual Studio 2005 Professional. I have included omp.h and specified the /openmp compiler flag. However, I cannot get even the simplest parallel for loop to compile. #pragma omp parallel for for ( int i = 0; i < 10; ++i ) { int a = i + i; } The above produces Compiler ...

Why does specifying a numeric value for a control's property in the designer result in new decimal(new int[] {... in the code?

In my C#.Net WinForm app in VS2005, I have a NumericUpDown control. In the designer, I set the Minimum property of the NumericUpDown to -65535. In the form's .designer.cs code, I expected to see this: this.myNumericUpDown.Minimum = -65535; but instead I get: this.myNumericUpDown.Minimum = new decimal(new int[] { 65535, 0...

VXL: Run-Time Check Failure #2

With the VXL library: I'm using vnl_conjugate_gradient with VC8 (visual studio 2005) and occasionally I see this error in debug mode: Run-Time Check Failure #2 - Stack around the variable 'z' was corrupted.** This is happening while leaving the function cg_ in the file cg.c This function is literally packed with "goto" btw, could tha...

How can you add code to a Designer.cs file using the DTE classes?

I'm writing an IWizard Item Template, which will be adding code to a Form.Designer.cs file that already exists in the project, but I can't find a way to force new code to write to that file, rather than Form.cs. How do you specify which partial class to write code to in the CodeModel and other DTE classes? Project project = dte.Solutio...

How can I capture event on adding item in Sharepoint Blog Site

I have tried Visual Studio Site Solution generator for building Sharepoint Site solution. My requirement is to validate blog entries with some criteria at run time. I want to add the same Bad Keyword thing I had asked earlier. But Visual Studio Site Solution generator is unable to create solution for Blog Site and showing below error ...

SSIS Package won't execute when called.

Hi, I have an 2005 SSIS package that I'm calling in a service created in VS 2005. The package will not run. The purpose of the package is to parse a file and put data into a "Load Table". The package runs perfectly on its own, but will not run at all when executed programatically - when I'm stepping through the code. The Event Viewer ...

Unable to make 2 parallel TCP requests to the same TCP Client

Error: Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall Situation There is a TCP Server My web application connects to this TCP Server Using the below code: TcpClientInfo = new TcpClient(); _result = TcpClientInfo.BeginConnect(<serverAddress>,<portNumber>, nu...

Not stopping at server side breakpoints whilst Debugging classic asp with Visual Studio 2005

The website is set up locally on my IIS 5.1 on xp. Application protection is set to low within IIS so the asp is run inside the inetinfo.exe process. I start debugging , attach to the inetinfo.exe process and refresh the page in the browser so the page reloads and reruns the server side code. Non of the breakpoints get hit. There's no w...

Visual Studio Go to Definition

Hello Go To definition in Visual studio 2005 works only for files that are in my project. It never works for files that are included in external libraries like mfc. When I say Go To Definition for mfc function it always shows me the header file . Is this expected behavior? And also how does this whole thing Go To Definition work? Thanks...

Visual Studio 2005 context menu launches server explorer: why?

For some reason, a variety of actions in Visual Studio 2005, actions that have nothing to do with SQL Server, are opening the "Connect to SQL Server" dialog. And it takes four (4) clicks on the CANCEL button to kill the dialog. For example, if I right click on a class method in the Editor, hoping to find the Go To Definition option, the...

How to implement precompiled headers into your project

I understand the purpose and reasoning behind precompiled headers. However, what are the rules when implementing them? From my understanding, it goes something like this: Set your project up to use precompiled headers with the YU directive. Create your stdafx.h file and set that to be your precompiled header. Include this as the top ...

Solution file is not visible once I create a website or project

Hi, I have installed VS 2005 newly.I tried to create a new three tier application. 1) First I added a new blank solution 2) Then I right clicked on the solution and added a new web site 3) once the new web site is created the solution file is not visible because of this reason I am not able to add the new project to the same soluti...

ComboBox's Selected Value Changed On Lost Focus in VB.NET

I have a datagridview(dgv) with a DataGridViewComboBoxColumn(colLocation) colLocation.AutoComplete = False colLocation.HeaderText = "Stored to" colLocation.DataSource = DB.getLocation() colLocation.DisplayMember = "description" colLocation.ValueMember = "id" I added the colLocation to dgv. "descirption" contains Unicode characters. I...

IE8 and Visual Studio (2005/2008) - Current Status

There have been a number of problems related to IE8 breaking Visual Studio 2005/2008. Examples: http://stackoverflow.com/questions/926522/ie8-visual-studio-error https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=426428 http://dpotter.net/Technical/2009/05/upgrading-to-ie8-breaks-debugging-with-visual-stud...

SidBySide: 3rd Party Dll refers to two versions of MSVCR80.DLL

We include a 3rd Party lib+DLL that recently causes a lot of trouble on installations. Using dependencywalker, we found that the dll itself refers to two different Versions of MSVCR80.DLL: Version 8.0.50727.4053 and Version 8.0.50727.42 In MOST cases installation makes no problems, even if we distribute none of both versions. But i...

Can't set breakpoints on closing brackets in Visual Studio 2005

This is occurring in Visual Studio 2005, in an ASP.NET Web Application. For example, if I try to set a breakpoint in the following code: if (frustrated) { bool cry = true; } <-- breakpoint here It will set the breakpoint on the indicator margin, but when I actually hit F5 to debug the application, the breakpoint will flicker on a...

Do I need Visual Studio 2005 installed if I have Visual Studio 2008?

I'm the only developer at my company. All new development I do is in .NET 3.5 but I maintain a bunch of .NET 2.0 programs. I can create and edit .NET 2.0 solutions in Visual Studio 2008, so I'm wondering if there is any reason I shouldn't uninstall Visual Studio 2005 from my machine. Thanks ...

Preprocessor definitions going haywire. int define redefinition?

I am trying to add a preprocessor definition so that a value is only defined while a certain project is building, then it becomes undefined. I have gone into my project properties -> preprocessor -> preprocessor definitions. In here, I typed #define PROJECTNAME_EXPORT, in hopes that I could call #ifdef PROJECTNAME_EXPORT throughout tha...

LNK2019 when converting an app to use DLLs

(Re-written for clarity) I have a multi-project solution that I am looking to convert from using .lib to .DLL files. I have created my declspec macros and applied it to **every class except for those in the project that creates the final .exe. The linker is throwing a fit on just about everything, however. I have set up to ignore err...

Issue: VS2005 not working with VSTO for Office 2007

Hello all. Here at work I have Visual Studio 2005 and Office 2007 installed. I'm trying to install the VSTO package to create a templated Word Document project. I installed the VSTO package via this link: http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=8315654b-a5ae-4108-b7fc-186402563f2b#filelist Whenever...