visual-studio-2005

How can I convert this string to a date 21/08/2008 00:21:00 ?

I'm using vb.net 2005. How do convert this date / time 21/08/2008 00:21:00 to a DateTime object ? ...

Applying compiler options to specific files.

I am trying to compile and build a project(s) in visual studio and I started looking into compiling with the /Wall option which gives all warnings. I am wondering iof there is a way to run this only on those files I am interested in, since currently I get a million warnings on files i have no ability or desire to change. ...

Including header files in VS2005

How do you include header files from top-level and sub-directories in c++? ...

Odd Behavior in Visual Studio Designer Font

If I click "..." on the font box of Visual Studio 2005 to set the font of a Label and set the font size to Arial 8 point font, Visual Studio sets the size to 8.25pt. 14 gets set to 14.25. 22 gets set to 21.75. Apparently, the values in this dialog box do not perfectly map to the size value Visual studio is using. Why does this happen...

Visual Studio 2005 : Break when a value appears

Hi, I'm trying to simplify my debugging tasks and I had an idea which could increase my debugging speed. Suppose I have a value, say 2.8651 that appear in the code at a moment I do not know. I'm wondering if it was possible to create a super breakpoint which would stop at the first time one of the variable takes this value. I recall ...

Debug stored procedure from Visual Studio 2005

Hello, i'm missing the "Step Into Stored Procedure" option when i rightclick a Stored Procedure in Server Explorer/Data Connections. This is neither a problem under Windows XP(development pc) nor with Windows Server 2003/64 bit(old productive Server). But under Windows Server 2008/64bit there is not an option to debug a stored procedure...

Changing Default Installation Folder of Visual Studio 2005 Setup

I have created a windows service using Visual Studio 2005. I have created a setup project that would install my application. Now, the default installation folder is always c:\program files\Default Company Name\XXXX. Where can I change this to be something else on startup. Basically, I want the Default Company Name to be removed. Thanks...

How can I avoid exceeding the internal ILK size limit in visual studio?

Building a large project in Visual Studio 2005, I am getting an error in incremental linking: LINK : fatal error LNK1210: exceeded internal ILK size limit; link with /INCREMENTAL:NO Do you know of any options other than avoiding incremental linking? In particular, are there practices that will reduce the size of the internal I...

Finding out if the user manually closed the console window by clicking the red X in C#

Hey everyone, I'm working on a project that calls a console window to process some data based on passed in arguments. What I would like to know is how I can check to see if the user clicked on the red X within the console app. Is there an event I need to handle? Any advice would be greatly appreciated. This is being done using the .NET ...

C# IFilter improperly installed in solution?

Where to begin.... I've inherited a application that searches for strings within files from a previous programmer (that had no documenation) its using EPocalipse.IFilter namespace. It has a few issues, the first of which is the VS Project is missing FilterReader.cs, FilterLoader.cs, among others I believe are required for EPocalipse IFi...

How to solve this error: Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version 2.0.50727.0'

This question to which I already found the answer is posted here in case of someone else encounters it. I decided to post the Q&A here so that SO has something about this error, since I don't know if it's been here before. This occured after an update of the .NET Framework. Before the update, everything compiled just fine! After the u...

SNMP Subagent Development

Hi I am a newbie to Net-SNMP, I want to implement a Subagent using Net-SNMP on windows which will provide the information about my server statistics like calls processed, calls failed etc. I did the Net-SNMP installation as provided by http://forums.cacti.net/viewtopic.php?f=6&t=26151 and trying to compile the example given on the ...

Problem to see Web Services running on local machine

Hi All I have written some web service, I run it and see it from my firefox and run it from there. Now I want to call it from some other code/solution i trying to add there a web reference and Web Services on the Local Machine , but i cannot see there my web services. Any idea what is missing ? Sorry for the newbie question it's my fi...

VB Collection cannot be indexed because it has no default property? How to iterate a collection?

Dim RS2 As iHistorian_SDK.TagRecordset ... For intI = 1 To RS2.Item.Count .... HistEngHigh = RS2.Item(intI).HiEngineeringUnits Now this gives the error Interface 'VBA.Collection' cannot be indexed because it has no default property. Now it used to work when I ran the code in VBA 6.5 via iFIX but now that...

SQL server 2005 - compact edition and express edition

I have a database program developed in Visual Studios 2005. It uses SQL Express in creating and connecting to the database. I have created a deployment package with SQL Express. Can this be installed on a PC that has SQL 2005 Compact Edition installed? ...

What does the warning "alignment of a member was sensitive to packing" mean in C++

What does the warning "alignment of a member was sensitive to packing" mean in C++? I'm using Visual Studio 2005. How do I go about removing these warnings? I don't want to disable them btw. ...

Making Visual Studio TFS plugin store your credentials?

Every time I open Visual Studio 2008, I get a pop-up dialog prompting for my username and password ('Connecting to Team Foundation Server'). Presumably this is because I have my TFS server stored in the Team Explorer tab, in Servers, so it wants to connect to it on startup. In addition, this happens when I open a solution file whose so...

What is the correct way to initialize HRESULT?

I'm using C++ in Visual Studio 2005 and I'm getting many warnings that read potentially uninitialized local variable 'hr' used Where hr is defined as HRESULT hr; What's the correct way to initialize HRESULT? ...

Moving to a new Visual Studio 2005 environment, same .Net framework specified, but getting lots of errors

So I am moving a project from VS2005 on XP to VS2005 on Win7 and getting lots of errors like the following: Type 'DataGrid' is not defined. Type 'Exception' is not defined. Type 'ListBox' is not defined. Type 'TextBox' is not defined. I made sure all my projects are targeting the .Net 2.0 framework as before, so would would be differen...

Icon not displayed correctly in setup project VS 2005

Hi, I am making a setup project for my dependent project in the same solution, i have a icon for my dependent project which i set in project properties, i have also added this icon to setup project in the application folder, i want this icon to appear in the add/remove programs dialog but so far only default no icon is appearing. this ....