visual-studio-2005

False sense of security with `snprintf_s`

MSVC's "secure" sprintf funcions have a template version that 'knows' the size of the target buffer. However, this code happily paints 567890 over the stack after the end of bytes... char bytes[5]; _snprintf_s( bytes, _TRUNCATE, "%s", "1234567890" ); Any idea what I do wrong, or is this a known bug? (I'm working in VS2005 - didn't t...

'Generating code' and stop in building release mode (Visual Studio 2005 )

Hi! I have a problem about release build I'm using Visual Studio 2005. The project is worked on MFC When I build the project what I working in debug mode, It builds done successfully. but in release mode, Output window shows next 1>Compiling resources... 1>Linking... 1>Generating code and then.. it doesn't pass. It seems like be stop...

Form Inheritance in Visual Studios designer implementations

I'm in the process of Moving a project from Visual Studio 2003 to 2005 and have just seen the The event Click is read-only and cannot be changed when using inherited forms regardless of the Modifier on the Base Forms Controls will make all the Controls from the Base Readonly in the designer (Though in 2003 it didn't work this way)...

Visual studio settings css

My css file does not show any color high lights for the css what are the studio setting to enable it.Also my css intellisence won't work. I am using visual studio 2005. kindly help ...

Errors in building ceplayit (directshow player sample)

I tried to build the ceplayit files (of directshow player samples). I added them to a smart device project based on the sdk for my device (named TEMP). I am using MFC in visual Studio 2005. However the following errors occurred: Error 1 error LNK2001: unresolved external symbol IID_IBasicAudio vidwindow.obj Error 2 error LNK...

Use TFS 2010 for VS2005 version control w/o TS2005?

My team is moving to TFS 2010, but all of our old projects are from our stand alone VS 2005 and VS 2008. We did not have Team Server. Can put our projects under source control in TFS 2010 without upgrading and migrating them? ...

F10 isn't working properly in VS2005

When project is stopped (not in the debugging state) and you press F10, normally the debugging session starts and VS stops at the entry point (e.g. Program.Main). That always worked for me in VS2005 and works OK in VS2008. But recently that stopped working in my VS2005 - the project just runs as if I pressed F5, so I have to place a brea...

TimeZoneInfo - why can't i seem to create an instance of it?

I'm trying to use the EWS API to access an Exchange server from a console program i'm writing. I've specified the type of exchange server i'm connecting to but when I try to execute the code i have, it gives me Error 1 The type 'System.TimeZoneInfo' is defined in an assembly that is not referenced. You must add a reference to assembly '...

Visual Studio 2005 C++ Application Wants To Run As Admin

I wrote a simple c++ application in Visual Studio 2005 but when I compile it, the executable wants to run as admin. I tried deleting the manifest but it still wants to run as admin. I am running Windows Vista Home premium. Any help would be appreciated! ...

VB.NET: how to require CheckedListBox to have at least one item selected in WinForms

With the CheckListBox in VB.NET in VS2005, how would you make it compulsory that at least one item is selected? Can you select one of the items at design time to make it the default? EDIT: What would be best way to handle the validation part of this scenario? When should the user be required to tick one of the boxes? ...

How to use Device Emulator to debug my WinCE application

I am working with an MFC application built on a WinCE platform in Visual Studio. I need to debug this application and I cannot do it using KITL and the hardware. I tried to use Device Emulator for this: I started a new Platform Builder Project (PDA Device, enterprise webpad). I built it after ensureing that KITL was enabled and so was ke...

VS2005 C#: is there a special visual-studio way to create properties or can the the code just be typed out?

Using C# in VS2005, is there special way to create properties in the IDE or can you just type out the getters and setters? ...

compiling qwt for windows mobile

Hi I have succesfully built Qwt 5.2.1 for use with Qt 4.6.2 on the Win32 platform. I can create and build projects in VS 2005 without problem. However I also want to use Qwt on a Windows Mobile 6.0 platform and I simply cannot get this to work. I have tried a shared build of Qt and Qwt, then using the QWT_DLL preprocessor command and t...

Problem finding difference between two time intervals

Hi, How can I find difference between two time intervals. Like 13:45:26.836 - 14:24:18.473 which is of the format "Hour:Min:Sec:Millisecs". Now i need to find the time difference between these two times. How can i do this in C#.? Thanks in advance. ...

ASP.Net Web Site Project - Errors Not Caught at Compile time

For the first time in my career, I'm working on an ASP.Net (v3.5) project that has been set up as a Visual Studio 2008/10 Web Site Project. I'm not keen on this way of working this way for various reasons but for the moment and until such time as the company sees the virtue in working in an environment with namespaces, designer and proj...

"(Empty)" text "literally" instead of "" in datacolumn from visual studio

Hi folks. I've always have a problem with big datasets created through the dataset designer in visual studio (2005). When the dataset many tables with many columns, the columns defined like "(Empty)" in the NULL VALUE property starts showing the text "(Empty)" literally. Is anyone aware of this? or is just me? Thanks in advance. ...

How do I find and open a file in a Visual Studio 2005 add-in?

I'm making an add-in with Visual Studio 2005 C# to help easily toggle between source and header files, as well as script files that all follow a similar naming structure. However, the directory structure has all of the files in different places, even though they are all in the same project. I've got almost all the pieces in place, but...

How to upgrade VS2008 reporting Schema from 2005 to 2008

As you all know Visual Studio using 2005 schema to create RDLC reports. SSRS 2008 use 2008 schema to create RDL reports. So I'm looking for a solution to change VS 2005 schema to 2008 schema. How to do this. will this issue fix with installing Report Viewer 2010 or not ? ...

Upgrading from Visual Studio 2005 Team Suite to Visual Studio 2010 Ultimate

What are the steps I should do and everything I should consider when upgrading from Visual Studio 2005 Team Suite to Visual Studio 2010 Ultimate? Where can things go wrong? Consider the fact I'm using TFS 2008 and have Continuous Integration and Nightly Builds on build machines. ...

Upgrade from .NET 2.0 to .NET 3.5 problems

I’m trying to upgrade our solution from VS2005 .NET 2.0 to VS2008 .NET 3.5. I converted the solution using VS2008 conversion wizard. All the projects (about 50) remained targeting to .NET Framework 2.0., moreover if I’m changing target framework manually for one of the projects, all referenced dll (i.e. System, System.Core, System.Data, ...