visual-studio-2005

Unrolling small loops with Visual Studio 2005

How do you tell the compiler to unroll loops based on the number of iterations or some other attribute? Or, how do you turn on loop unrolling optimization in Visual Studio 2005? EDIT: E.g. //Code Snippet 1 vector<int> b; for(int i=0;i<3;++i) b.push_back(i); As opposed to //Code Snippet 2 vector<int> b; b.push_back(0)...

CrystalReports excel field cut off when using CanGrow=True

I am working on an excel report in CrystalReports, in VS2005. I have a field in the Details section which can have up to 255 characters of text, and I want the height of the row in excel to expand so that the entire text can be seen initially when the report is generated. I set CanGrow=True in the field's properties, and the field does ...

Side-by-side assemblies, Windows 7, and Visual Studio 2005

I have a Windows 7 machine with Visual Studio 2005 SP1 installed. Using this, I build an application which loads a DLL at runtime compiled with VS2005 SP1 but on Windows XP. This fails, with the following error: "...\foo.dll": The application has failed to start because its side-by-side configuration is incorrect. Please see the appl...

.NET simple app update mechanism

Environment: .NET c# VS2005 and some 3rd party components .vdproj files (setup projects inside VS 2005) for .msi building - not "one click deployment" Problem I am in a project phase where there are several updates to the project during a day. Since every change is small (two assemblies at most), it would be convenient for the u...

to run application automatically after CAB file installation in windows desktop , VC++

Hello I am creating a cab file .After installing cab file its upload exe file to the destination path whatever i given . But is it possible for run that application automatically after CAB file installation . ...

Visual Studio 2005 macro to change debug properties

I don't check-in my user option files (.user) to the source code control system. This requires me to set the Debug properties of my project every time I check-out a project from repository. I want to write a macro that would set these properties for me. I'd like to set following properties - 1)Choose 'Start external program' under Start...

How can I support source file subdirectories (with common file names) in Visual Studio?

I have a (C++) project that I originally developed under Linux using make to build it. I would like to also have it run in Windows and am using Visual Studio 2005 to build it. The problem I'm running into is that Visual Studio places all objects into the same output directory. This doesn't work for me because I have source files with the...

C++.Net compile error: "Is not a member of gui::output"

My C++-fu isn't very good and I can't seem to figure out this issue. I have a header file with a typedef in a couple namespaces like so: namespace gui { namespace output { typedef Collections::Generic::List<int> MyTypeDef; } } In a cpp file which includes that header file I have the following code: array<gui::output::MyT...

QT: reject() closing whole app? Why?

I'm running a QT app (VS2005) and have spawned a dialog from that app, but if I add a cancel button to that dialog with a reject() slot then yes, the dialog closes and returns the correct result but my whole app closes down as well. This is annoying me and I can't find any hint as to why; any suggestions gratefully recieved ...

How do I add new platform targets to VS2005

In an effort to nicely organize the 6 or so different platforms that our project covers, I'm looking for a way to extend visual studio 2005 so that I can have mare than just the standard list of target platforms for a project. VS allows you to create your own solution platform by just entering any name you want, but for projects, it see...

ASP.NET - AJAX request via jQuery to get dynamic page and insert as table row

Hello, I'm doing a jQuery AJAX request to get an aspx page in my project and inserting it into a table. The aspx page contains a single table row (as in, it starts with tr and ends with /tr). Because of this, I cannot add anything before or after those tr's. My problem is the following: If I try to type in < asp: into Visual Studio ...

Which database should I use for best performance

Hello, I am working in Visual Studio 2005, .NET 2.0. I need to write an application, which listens on COM port and saves incoming data to a database. Main feature: save incoming data (series of 13-digits numbers), if this number allready exists, then mark it as double. For example, there could be these records in database: 00000000000...

How to work around Visual Studio Compiler crashes

We have a large Visual Studio 2005 C++/Mfc solution, 1 project with around 1300 source files (so about 650 .h and 650 .cpp files). We also use Boost and a few other libraries (COM: MSXML, Office). Recently, I've added a few instances of boost::multi_index to speed up things a bit. This all compiles most of the time. But now, when I'm d...

Visual Studio 2005 build problem

Hi, I have a project Y whose build order properties states it depends on project X. I need to map project X's dll within Project Y References folder. The problem arises when the dll for Project X is not mapped within Project Y References folder. Then when I build Project Y it fails with because it can't find the reference to Project X...

std c++ container element destruction and insertion behaviour

I have made the following little Program: (basically a class that couts if it gets created, copied or destroyed and a main that does some of that) class Foo { public: Foo(string name): _name(name) { cout << "Instance " << _name << " of Foo created!" << std::endl; }; Foo(const Foo& other): _name(other._name) { cout << "Instance ...

TFS: merging a branch back to a trunk folder that's since been renamed

I'm using TFS and trying to merge a branch back to the trunk from which it was made. Trouble is, the Source Control Merge Wizard has no entries in its Target Branch dropdown list. I suspect this is because the trunk was renamed after the branch was made. Is there a simple way that I can still perform the merge and have TFS recognise tha...

Can I use the VC++ 2005 compiled DLL in not DOT-net application i,e compiled in VC++ 6.0 ?

I have a application developed using VC++ 6.0, I want to use some DLL's which are complied in VC++2005 (visual studio 2005), is this possible to use these dll in tat application? I can port my application to 2005 but there are few issues which need some time to fix, I want a fast release, Can anyone tell me is this possible to do this? ...

DataSet Editor is missing from the "Open With" dialog in VS2005

I'm using Visual Studio 2005. I normally use the DataSet Editor to design datasets. However, this option is no longer available in the Open With dialog. Visual Studio now defaults to designing datasets with the XML Schema Editor. How can I get the DataSet Editor restored as an available option when designing datasets? ...

Visual Studio - Quick way to search for an object's usage in the code behind

In Visual Studio, is there a quick way to search for an object's usage in the code behind? This is something I do constantly and the way I am currently doing it seems a little clunky. I am using VS2005, WinForms, VB and CodeRush/RefactorPro. Currently I do the following steps: In Design View Click the Object. In the Properties Dialog...

How to affect configuration of IIS properties using Web Setup Project in Visual Studio 2005

I just built a setup.msi file using the Web Setup Project template within Visual Studio 2005 to deploy my web application to another web server. While it works OK, it results in a new virtual directory on the target webserver that requires a fair bit of custom (i.e. manual) configuration steps using INETMGR on the target webserver. I'...