visual-studio-2005

Install driver and copying files before Installation runs

I have created installation package for my project, but before or after installation is complete i need to install some drivers and copy some files to target machine, before my software can run. Is it possible for me to do all this action in the MSI installer setup project of visual studio 2005. One option i have explored is using autoI...

visual studio anoyances

There are a couple of things I find really annoying about Visual Studio. Admittedly, I have a old version so these might be fixed in later versions. I'm writing c++ stuff. Anyway here they are: 1) Is there anyway to clear all breakpoints? If I leave breakpoints set, they seem to multiply and get attached to adjacent lines as I add m...

Is this valid C++ code?

I had the following code, which was basically, class foo { public: void method(); }; void foo::foo::method() { } I had accidentally added an extra foo:: in front of the definition of foo::method. This code compiled without warning using g++(ver 4.2.3), but errored out using Visual Studio 2005. I didn't have a namespace named ...

How do I find resource leaks in Win32?

After running some hours my application fails in creating a new font object: CreateFontIndirect() returns NULL. I know how to find memory leaks (i.e. using parallel inspector or another profiler - most of them include leak detection). But how can i locate a ressource leak in Win32? ...

Convert a MySql database to MS SQL Server 2005 with data?

I'm trying to create a completely new database from an existing MySQL database, bringing over both data and schema, but so far the only way I've been able to do this is to first import the MySQL database into MS Access, and then into SQL Server 2005? Crazy right? Surely, there is a way that doesn't involve a tedious, custom time-consumin...

administrator permission are recommended for running visual studio sp1 on windows 7 rc

I get this annoying message everytime I try to run visual studio 2005(even using "Run as Administrator" gives same message). I have VS 2005 Professional with all the latest service packs installed including vs2005 SP1 and vs 2005 update for Vista. I am part of the administrators group on my machine. Still I have this problem. Some rea...

How can I add a binary device driver in Platform Builder for Windows CE 6.0?

I need to add a device driver to a Windows CE image, I have the driver in .dll and .reg files and in a .cab package. I'm using Visual Studio 2005 with Platform Builder for Windows CE 6.0. How can I do that? ...

Source Control Association Bindings Problem

I've started working on an existing project at my company that was check into VSS 6.0 about a month ago. It was built using Visual Studio 2005 and C# and references all point to .NET 2.0. I went into VSS and set my working folder as per usual and got the latest version. I've opened this project at which point I'm prompted with this: ...

Saving the Layout of Data Grid View (width, order) in Visual Studio

I have some data Grid Views and I want the user to be able to keep changes he does to them. Not the Data changes, only the layout changes, like the width, the hight, the order of the columns and maybe the visibility of them. I don't care if it will be automatic or by clicking a button... Edit: I found a way to do this using Settings.I h...

"Save Copy of Package as..." option missing

In Visual Studio 2005 Professional, under Menu Bar "File", I do not have the option "Save Copy of Package AS..." which allows saving the package on the server. How do I get this option to display and be useful? ...

Visual Studio crashes when I add a .settings file in a C++ Windows form application

I'm trying to add a .settings file in a windows form application by adding a (whatever) file in the project and have it named smthng.settings. Right after it is created, it crashes (if I look into the project's directory the file is there, but it's not "in" the project). Am I doing it wrong or could it be that the problem lies elsewhere?...

References failing to import to a VS 2005 (VB) ASP.NET Web Service Application Project

I have this VB ASP.NET Web Service Application project running VS 2005. I'm trying to add references. To do so I click on the "Properties" icon in the Solution Explorer window which presents me with a window to add/update/remove references. I click "Add", I select the reference I want and then "OK". Lo en behold, NOTHING! It simply won't...

boost::array not compiling on VS 2005

Sorry this is probably a stupid question, as I couldn't find anything at all on google on the subject. Anyways I'm trying to compile some source code, that uses boost::array with visual studio 2005, as a Win32 console application (not clr), however for some reason that escapes me Visual Studio still considers the word array a keyword, so...

Visual Studio macros: WindowActivated handler turns clicks into double clicks

If I add a WindowEvents_WindowActivated handler to my Visual Studio 2005 Macros EnvironmentEvents module, I get a weird side-effect: when I click from one window to another in Visual Studio, that click is treated as a double click. So for instance, I put the focus in an editor window and click a file in Solution Explorer, and the file o...

QT 4.5 - How do I enable LTCG in VS2005 when linking to QT libraries?

While attempting to link with QT 4.5 release, I run into this error message fatal error C1047: The object or library file 'c:\qt\2009.02\qt\lib\qtmain.lib' was created with an older compiler than other objects; rebuild old objects and libraries I have been using the same compiler for my current projects to compile QT 4.5 ...

VS2005: separate app.config for debug and release mode

Is there a way to automatically use a separate app.config when building in release mode? In other words, I want to test with one app.config, and release with another. Currently, I keep a separate copy called app.config.production, and manually overwrite bin\Release\Application.exe.config after building for release. ...

VS2005 WebSite Project problem

I have downloaded a .net source code from the Internet. The source code has 2 projects. First is a Windows class lib. Second is a WeSite project whose name is [http://localhost/WebDemoCS]. When I run the Web Site, VS2005 searches that location and finds nothing. So the WebSite is not run. How can I change this setting so that I can...

Can't launch working Program from Visual Studio IDE

If I start my self written app from the explorer it works fine. If I try to start it in visual studio(F5), it crashes at some point. It is also not dependant on the working directory! It is quite annoying, because I cannot debug that way. (I could try attaching to the process after launch, but....) Can anyone point me into a direction...

Dump only a portion of memory in VS 2005

Does any one know if there is a way to dump only a chunk of memory to disk using VS? Basically, I want to give it an address and a length, and have it write the memory to disk. That way I can do a binary diff. Thanks. ...

Converting 2005 to 2008, System.Core project issues

Hey all! I converted my 2.0 site to 3.5 so I can take advantage of using LINQ. It converted the solution to 2008 okay, but the only project/site I can use LINQ in is the UI [web site]. All the sub projects (Business, Data, Model, Utility) can't add a reference to System.Core. It's greyed out. So, I can't add the namespace System.Linq to ...