visual-studio-2005

have error when trying to work with VS2005 and SQL-server2008

hi i have C# program (in Visual studio 2005) and i try to connect and work with sql-server 2008. the connect is success but i get this error: this server version is not supported. you must have Microsoft SQL server 2005 Beta 2 or later what can i do ? thank's in advance ...

VS.NET 2005 Windows Forms Designer - "Object reference not set to an instance of an object"

I have a windows form that I am adding some new functionality to. The form has roughly 100 controls on it. I discovered when looking at the "properties" dropdown that there were several dozen controls in the form that served no purpose and were not visible on the form when they were selected in the properties window. I couldn't find an ...

Where does IE store the ASP.NET_SessionId cookie?

I am a bit baffled here; using IE7, ASP.NET 2.0 and Cassini (the VS built-in web server; although the same thing seems to be true for "real" applications deployed in IIS) I am looking for the session-id-cookie. My test page shows a session id (by printing out Session.SessionId) and Response.Cookies.Keys contains ASP.NET_SessionId. So fa...

Web Service appears as website instead of developer web server

I recently reimaged my PC and regrabbed one of our projects from Source Safe. In our solution we have a web service that normally runs on a server, however we can build the webservice on our localhost for debugging as well. However, now whenever I grab the project from source safe it is building the webservice as a website instead of a d...

How does VS 2005 provide history across all TFS Team Projects when tf.exe cannot?

In Visual Studio 2005, in the TFS Source Control Explorer, these is a top-level node for the TFS Server itself, with a child node for each Team Project. Right-clicking either the server node or the node for a Team Project gives a context menu on which there is a View History item. Selecting this gives you a History window showing the las...

64 bit c++ compilation error

Hi, I hd made MFC application in VC++ 2005 and i need. It compiles successfully in 32 bit mode but when i try to compile it on 64 bit mode i get following errors. 1>------ Build started: Project: ProgressBar, Configuration: Debug x64 ------ 1>Compiling... 1>stdafx.cpp 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afx...

Must visual studio setup projects satisfy project output dependencies from obj directory?

My Visual Studio 2005 setup project (vdproj) is satisfying it's Project Output dependency using files in the obj directory. I expected it to pull from the bin directory. This is a problem because I have a post build step that modifies the project output (it ILMerges all dlls into a single exe, if it matters) and updates the bin copy on...

Conditional registry entries in Visual Studio 2005 setup packager

I've a setup project in Visual Studio 2005 that writes a couple dozen registry entries. These entries store user configuration data which the user populates through use of the installed application. I've now released an updated version of the application, and generated a new setup package accordingly. Unfortunately, when I run this ...

WinForms TabOrder tool: Broken or just confusing?

Hi all, I have a form with a bunch of panels, and some panels inside groupboxes. When using the TabOrder tool in Vs2005, the controls outside of containers are given integers (0), the controls inside panels are given decimals (72.0), and the controls within panels within groupboxes are given three-part values (73.73.0). Unfortunately th...

Are there issues loading multiple mscvrt**.dll versions?

Hello, I have been unable to find much or any information on this. I have a project which is built using VS2005, thus using the mscvr80.dll. My project also loads a third party library, which then loads up mscvrt60.dll. Now I have a strange bug in my program where the program crashes with a memory read violation (in debug it is at 0xc...

Intellisense doesn't work with an upgraded solution from vs 2005 in vs 2008

I converted a VS2005 solution to VS2008, but Intellisense isn't working. It works fine with a native solution made in VS2008. Its a C# solution. ...

Some example of __assume leading to a faster code other than "no default" in switch?

Documentation for __assume says "The most common use of __assume is with the default case of a switch statement, as shown in the following example.". Is there any other case where __assume can lead to a more efficient (or even a different) code? When inside of if / else , is compiler automatically "assuming" what is already know becau...

Problem converting VS C# 2005 to 2008

I have some projects from XNA 1.0 that I wanted to debug but when I try to convert them to VS 2008 the conversion errors out and only converts the .csproj and .sln file, all other project and resource files remain unconverted with no explanation as to why. Then I went back and tried to convert just regular C# 2005 projects and get the s...

Is there a way in Visual Studio to specify what a template class (new class) is going to look like?

I'm a long time Eclipse user trying to learn to Visual Studio. I know that Eclipse had Code Templates that would allow you to build classes with certain comments and formatting already added for a class. For example: Auto placing the copyright for the code at the top of the file Who created the file Predefined Comments, etc... Does...

Doxygen integration with (unmanaged) Visual C++ 2005

We are slowly moving towards better-standardized commenting in a large C++ project, introducing Doxygen. I personally find it a pain typing in comments, especially since Java IDEs are so good at automating this. So I wondered what tools there might be? A search turned up DoxyComment which looks quite nice, is this the best/standard tool...

Cleaning up vcproj files

We have a fairly big code base with several platform and build configurations, and our vcproj files keep growing exponentially. We are using visual studio 2005. The problem is that every time we add a build configuration or platform all file configuration needs to be multiplied for each files in project. For example: <FileConfiguration...

fscanf / fscanf_s difference in behaviour

I'm puzzled by the following difference in behaviour: // suppose myfile.txt contains a single line with the single character 's' errno_t res; FILE* fp; char cmd[81]; res = fopen_s(&fp, "D:\\myfile.txt", "rb" ); fscanf(fp,"%80s",cmd); // cmd now contains 's/0' fclose(fp); res = fopen_s(&fp, "D:\\myfile.txt",...

Name of tool for VB.NET documentation comments

What is the name of the tool that allowed VB.NET code to have embedded documentation comments (corresponding to C# documentation comments) that could be extracted by this tool? I am going through some old code; Visual Studio 2005 era. A trivial example is: 'Form overrides dispose to clean up the component list. ''' <summary> ''' Summ...

c++ rvalue passed to a const reference

I'm trying to understand exact C++ (pre C++0x) behavior with regards to references and rvalues. Is the following valid? void someFunc ( const MyType & val ) { //do a lot of stuff doSthWithValue ( val); } MyType creatorFunc ( ) { return MyType ( "some initialization value" ); } int main () { someFunc ( creatorFun...

DatetimePicker in asp.net 2005

Using C# and ASP.Net 2005 I want to add the Datetimepicker Control in my web page. I cannot able to find the control in VS 2005 How to get the DateTimePicker Control in VS2005 ...