Questions tagged [visual-studio-2005]

Visual Studio 2005 is a version of Microsoft's Visual Studio integrated development environment product line for .NET-based and C++ development. Do not use this tag unless you have a specific question about Visual Studio -- not just a coding issue.

Visual Studio 2005 has been superseded by the 2008, 2010, 2013 and 2015 versions at this time.

More information:

3144 questions
1
vote
1 answer

How to tell if a certain Excel file is open using VB.NET?

I'm exporting my Dataset to an excel file, and I want to make sure I keep any file errors under control. One in particular that I'm concerned about is accessing a file that's already open. A general IOException occurs that says "The process cannot…
broke
  • 8,032
  • 16
  • 54
  • 83
1
vote
4 answers

Using mixed DLLs from /clr:pure projects

I'm building a project along with a Dll. The Dll must support native code so I declared it as a /clr. My project was initialy also a /clr project and everything was fine. However I'd like to include some NUnit testing so I had to switch my main…
Eric
  • 19,525
  • 19
  • 84
  • 147
1
vote
1 answer

SSIS Script Task System.IO.File.WriteAllText throws "The process cannot access the file" Error

I have been tasked with writing a SSIS package that automates the creation of a SQL Server database. During the process it needs to create a DSN file (text file) so that an Access tool can connect to the SQL Server database. This is all legacy, I…
JeffK627
  • 195
  • 1
  • 3
  • 16
1
vote
1 answer

DropDownList reloading

I have 2 dropdownlists on a WebForm. Dropdownlist1 controls what should display on DropDownList2. When the page first loads I pass in a selectedindex of 0 to function to load DropDownList2. The data loads perfectly. However when I change the…
TonyNeallon
  • 6,607
  • 12
  • 42
  • 49
1
vote
1 answer

How to run vbs file in pos-build or pre-build event in vs2005?

I have some projects inside a solution, but because the needs of x64 and win32 i have diferent releases and some diferent files for a setup project. I need to unpack a zipfile before build the setup project. I have a vbs file that woks well to unzip…
Undefined Behavior
  • 2,128
  • 4
  • 24
  • 34
1
vote
2 answers

Set horizontal scroll of CListBox row back after resetting content

I got a multiple selection CListBox with horizontal scroll bar enabled and showed correctly. Problem is, that when I use function lst.ResetContent() and fill it back, I can't find way to scroll text in the rows back to the same position. I tried to…
1
vote
1 answer

Win32 logic block preprocessor shows inactive

I tried to use a library on visual studio in different ways by modify its macros on preprocessor directives. However a logic block inside an #if directive is shown to me inactive as it was comment. Here is the code: #if defined EBML_DLL #if…
1
vote
2 answers

Visual Studio internal project references not always working

I am using Visual Studio and a solution with 10 or so projects in (mostly VB, some C#) which have various dependencies set up. Usually when I compile the solution it works fine. Occasionally when I do it I get a build error saying that one of the…
Chris
  • 27,210
  • 6
  • 71
  • 92
1
vote
2 answers

Linkage of namespace functions

I have a couple of methods declared at the namespace level within a header for a class: // MyClass.h namespace network { int Method1(double d); int Method2(double d); class MyClass { //... } } then defined…
mindless.panda
  • 4,014
  • 4
  • 35
  • 57
1
vote
1 answer

Create a CANoe test environment using C#

I want to create a CANoe test environment that would do the following: Run and Stop the CANoe software Parse the XML file (test module) and show list in GUI Select individual test module and execute test module So I'm done with the first two.…
Kurisuchin
  • 155
  • 1
  • 4
  • 20
1
vote
2 answers

Using XSD file in VS2005

I want to write an XML file. I have created an XSD file named XMLSchema.xsd, and run the command 'xsd /c XMLSchema.xsd' which generated a c# class file. Now, how do I use this file to generate XML files? Part of my code:
xt_20
  • 1,406
  • 3
  • 13
  • 27
1
vote
2 answers

Avoid compiling when using Decimal.Round() method (C#/CF)

Is there a way to tell to VS2005 to get compiler error when using "some defined" method? It probably sounds strange, but I do not want to compile when using Decimal.Round(). Reason: CF does not round by "awayfromzero", so I created a method to do…
Christian
  • 7,062
  • 9
  • 53
  • 79
1
vote
1 answer

Macros no longer working in VS2005

I'm using VS2005 on Vista. I'm using some macros, but now they have suddenly stopped working. No error messages of any kind. I am not aware of having done anything that could trigger this. I have made sure that "Allow macros to run" is checked in…
NPVN
1
vote
1 answer

Showing "#Error" in ssrs 2005 report

In a field of my groupfooter section of a table I am writing This, …
Mimi
  • 389
  • 4
  • 19
1
vote
1 answer

Why does IPAddress.TryParse allow anything after a ']'

I'd like to use System.Net.IPAddress.TryParse to validate IPv6 addresses because I don't want to write my own reg exp :-) However, this seems to allow strings such as "(validIPv6)](anythingatallhere)" - for example, "1234::5678:abcd]whargarbl". Is…
Rawling
  • 49,248
  • 7
  • 89
  • 127
1 2 3
99
100