Suppose I have this function:
std::string Func1 (std::string myString)
{
//do some string processing
std::string newString == Func2(myString)
return newString;
}
how do I set a conditional break when newString has a specific value ? (without changing the source)
setting a condition newString == "my value"
didn't work ...
I'm programming in C in Visual Studio 2005. I have a multi-threaded program, but that's not especially important here.
How can I determine (approximately) how much stack space my threads use?
The technique I was planning to use is setting the stack memory to some predetermined value, say 0xDEADBEEF, running the program for a long time...
Currently Visual Studio just starts cl.exe for C++ source compilation. cl.exe needs to be in one of folders listed on the %PATH% environment variable.
Since there're separate versions of cl.exe for 32-bit and 64-bit compilation in order to compile a 32-bit project after compiling a 64-bit project it is necessary to restart Visual Studio...
I usually like to have a lot of warnings enabled when programming. However, some libraries contains code that easily causes warnings (.., python, Qt, ..). When compiling with gcc I can just use -isystem instead of -I to silence that. How can I do the same with the MS compiler? I know of the warning #pragma, but I would like a solution th...
I would like to detect whether qmake is currently building using MingW (win32-gcc) or Visual Studio (win32-msvc200X).
At the moment I am using the following construct:
windows{
contains(QMAKE_CC, gcc){
# MingW
}
contains(QMAKE_CC, cl){
# Visual Studio
}
}
This does not seem particularly robust. Is ther...
I have a rather huge .dat-file (896MB) included as a BIN resource in my project. Now I get a LNK1106 link error ("fatal error LNK1106: invalid file or disk full: cannot seek to 0x382A3920".)
I use Visual Studio 2005 under Windows XP, and have tried on a 4GB RAM machine with high Virtual Memory settings and lots of disk space.
I have tri...
We have a major body of code in Java that runs on the desktop that we want to reuse with a MS.NET user interface (desktop rather than web). Any do's or don'ts would be very welcome.
...
We have a project that was migrated from VS 2005 to 2008.
One form is using usercontrol. When I open this form I get following message from the designer:
The variable '_usercontrol' is either
undeclared or was never assigned.
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationMa...
Is there is a tool or a setting in the debugger to stop on the break point or if variable is set to a particular value? I mean if I know that value will be set to "HELLO" then the debugger will stop or do the same if it reached some break point in the loop? Any advise would be helpful!
...
I have a tool which dynamically generates .xaml and .xaml.cs files and puts them in the appropriate Visual Studio directory.
To add them to the project, I have to then:
right-click on that directory
choose "add existing item"
navigate to the matching directory on the hard drive
select the two files that were created
click ok
Is the...
In VS, it is possible to set a custom build rule at the individual file level. However, unless you change the description of the build step (which is what msbuild outputs when running the external tool), all you get is the default, which says "Performing Custom Build Step," followed by the error output of the tool.
I recently got burned...
I'm having the following problem and I want to know whether it is a Visual Studio bug or if I'm doing something wrong:
I'm using AdventureWorks database in SQL Server 2005 and Visual Studio 2008.
When defining a new DataSource (to be used in a GridView) I select the Product table, defined in the Production schema, but the generated que...
Why does the following code not give me a duplicate symbol linker error for Impl?
I ran across this problem in some code I inherited and I'm recreating a shorter version here for simplicity.
I have two classes, Foo and Bar, that each define a different version of the same struct (Impl) in each of their .cpp files. So Foo.cpp and Bar.c...
Hi everyone, I'm just trying to remove spaces from some line:
"(jan | feb | mar | apr | may | jun | jul | aug | sep | oct | nov | dec)\.(\s+),(\s+)(\d{4})"
in my solution and try to do that with find and replace and somewhat don't know how to enter space character in this dialog box.
And as I started with some regx what is the differe...
I've got a .net web site which runs on IIS. Once every few days I look at the task manager and I've got 10-15 vsjitdebugger.exe processes open. Each one ties up some connections so it causes problems with the db pool unless I manually go in and end the process.
At one point, Visual Studio was installed on this box, though it's since bee...
My Visual Studio 2008 project references two (external) assemblies (A+B) both of which happen to be referencing the same third assembly (C). However, assembly A expects assembly C to have a public key which is different from what assembly B expects it to have.
Here's an example of the obvious exception:
Could not load file or assemb...
Is there a way to convert .NET applications into Mac OS X applications? I am using Visual Basic 2008, and I want Mac users to use my application as well. Is it possible? If so please reply back with a link or source.
...
I have recently begun a new project which runs on remote computer. I usually remote debug the application. I have setup microsoft sync toy to "echo" the built exe,dll,pdb and configs to the remote computer.
However, i cant add synctoy to my visual studio build events because it might disturb some of the other programmers in my team. I w...
In the Visual Studio editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cu...
I'm trying to add my file in Visual Studio as command line parameters. I know my code works since when I use fopen("whole path here", "r"), it runs. I then add the file as a command line parameter instead, and I get no such file or directory. Any thoughts? Thanks.
...