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)...
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 ...
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...
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...
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 .
...
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...
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...
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...
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
...
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...
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 ...
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...
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...
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...
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 ...
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...
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?
...
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?
...
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...
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'...