I have made big mistake. It is about vector.
#include <iostream>
#include <ostream>
#include <string>
#include <vector>
#include <functional>
#include <algorithm>
using namespace std;
int main() {
vector<int,greater<int>>v;
v.push_back(11);
v.push_back(22);
v.push_back(33)...
We need to adapt our application to be usable through ClickOnce. The application consists of a .exe file, and a huge set of Visual C++ libraries, some of them are in-proc COM servers used by other libraries.
Currently our installer does regsvr32 to register the COM servers, but looks like ClickOnce applications are not allowed to modify...
It's more often obvious what a build command macro like $(SolutionDir) will evaluate to, but when building complex strings of these macros, it would be nice to be able to quickly evaluate the resulting real string. Is there any way of doing this except building a custom tool that takes a string of macros as input and outputs the evaluat...
Hello again, StackOverflow!
Today's issue is a bit odd, but please bear with me. Any advice / suggestions extremely appreciated!
I've inherited an old codebase on a project with some components that date back to 2002. There is no documentation at all for this project, and the original machine which had the build set up on no longer exi...
Several articles and blogs I have read suggest placing assemblies I wish to make available to T4 in the Visual Studio Public Assemblies folder. This is supposed to be located at C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies, but I have no PublicAssemblies' folder there, onlyPrivateAssemblies. Creating...
hi, I'm using numericUpDown with C# to represent integers. But there is a problem representing "big values". For instance if I assgin 127 to numericUpDown, it's displayed correctly. However, if I assign 12912347 it gets rounded to 12912350.
How can I avoid numericUpDown rounding integers?
(numericUpDown settings are: DecimalPlaces 0; M...
Shamefully, we use TFS at work for a C# project. I wish we could move to svn or git, but we can't change that. All of us working on the project hate the automatic check-out "feature" of TFS, so we checked in our solution and project files as unbound from TFS.
Now, whenever we open the project, we get the following message:
The sol...
Hi,
When i m trying to debug the vs.net2003 application. It is throwing me error like 'unable to run the application because user does not have admin right,kindly add user in debugger user list.'
Could any one help me on this problem??
Thank you
...
I am using the debugger to step through my code. The code file I’m in has usings at the top, including for example
using System.Linq;
In Visual Studio 2008 this used to apply to the Watch window while debugging, so I could use extension methods such as .First() and .ToArray() in the watch window.
For some reason, this has stopped wor...
Hi, I'm working with VS2010 and asp.net and build a SQL Server Database with some int and char values.
My problem is, that the char(50) automatically fills the unused chars with whitespaces like:
"foo "
What can i do to get only "foo"?
...
I'm trying to compile some code that uses the intrinsic _mm_set_epi64x under Visual C++. This intrinsic is supported by VC but only when compiling for x86-64, not for x86-32. I assume this is not an actual limitation of the processor, because other compilers (GCC and Clang) support this intrinsic for both 32 and 64 bit compiles.
My firs...
I've recently stumbled across the ability to use boomarks in Visual Studio. (http://www.codeproject.com/Articles/42973/Using-Bookmark-in-Visual-Studio.aspx)
As far as I've googled, I've found out that the bookmarks are stored in the .suo file of the project, that holds userspecific information is that therefore not stored in sourcecontr...
I'm trying to open the sample Solution for the Microsoft Ribbon for WPF, but I get this error about being unable to load metadata. The solution on that site, and the one linked in the error, is How to: Use an Assembly from the Web in Visual Studio. However, I don't see any 'Unblock' option when I check the Properties dialog for RibbonC...
I'm using Microsoft Visual Studio 2008 (VC9) to compile a project that has a .dsw file. I already have the 2010 and would prefer to use it, but it seems this dsw was built for 2008.
I'd like to compile and produce a binary that's also compatible with Windows 7. My questions:
if I compile with 2008, will the resulting binary be compat...
I am using Visual Studio 2010 in debug mode and I have "optimize code" unchecked. I can't quick watch (or hover on) any variable in the debugger. I get this error "Cannot evaluate expression because the code of the current method is optimized".
Even a line like: int i = -3, doing a quick watch on i, I get "Cannot obtain value of local o...
I want to develop a application including two execute files(one as main entry,the other as upgrader).
I'm wondering if the two execute files can be generated in a VS project ?
if can't,are there better way to develop the two execute files? and how to share some Model code?
thanks in advance!
...
Possible Duplicate:
Should I learn VB.NET or C#?
Question
I have 30+ years of C experience, 15 of C++, no Java and rusty, 25 year old Basic (a bunch of other, probably not relevant, languages: PHP, Pascal, Ada, various assembers, etc).
I will be using Visual Studio Express to create both Windows applications and brower based...
Maybe I'm using unit tests in the wrong way, but I have a very large database with a lot of data.
Each set of data presents a different scenario and the number of scenarios is too large to individually test. Therefore, I've decided the best way to get adequate coverage is to run the unit test against the data as many times as I could, a...
I already have installed visual studio 2008.After that i installed IIS.so how can i configure IIS to work with .NET
...
I'm working with Visual studio 2008.
I have a form inherited from DockContent class (Weifen Luo dock panel suite if you ever heard about that library).
I can add another controls on that form. But when I tried to add an event handler via Property tab, Visual studio generated an exception "type is not marked as serializable".
What shou...