visual-studio-2008

Operator precedence for "<<" and "++" in VS2008 with optimization

I'm stuck with a weird VS2008 C++ issue, that looks like operator precedence is not respected. My question is what is the output of this: int i = 0; std::cout << ((i != 0) ? "Not zero " : "zero ") << ++i << std::endl; Normally the ++ has precedence over the <<, right? Or is the << considered like a function call giving it a hi...

visual studio 2008 toolbars keep moving inexplicably

While I'm working, at various times that don't seem terribly random, the windows keep moving around.! This is a picture of my Visual Studio layout. It's across two screens, so the Solution Explorer is on the right side of the left screen, and the code window is full-screen on the right. When this happens, the Solution Explorer (and al...

Compact Framework: Unit tests won't hit breakpoints

Hi I'm using VS2008 and building a WinForms mobile application targetting the Compact Framework 3.5 and Pocket PC 5. I'm using the VS unit test functionality and the tests run OK but won't stop at breakpoints. I keep getting the dreaded "breakpoint will not currently be hit, no symbols have been loaded for this document" message. The so...

how to use the tortoisesvn commends in vs2008

I'm using TortoiseSVN and Visual Studio 2008. Is there any way to update my project's subversion with svn's version in every build? For example, 1.0.0.[svn's version] -> 1.0.0.12 ...

Linking Errors trying CS106B

I attempted to start a blank VS2008 project and follow along with the things being typed during the lectures, but I ran into a horrendous bunch of link errors. In the zip file for assignment 1 for the PC, there is a folder called CS106B. First I told the compiler where the header files are (they're in the CS106B folder). Next I had to t...

Test Run aborted when the option "Abort a test run if its total execution time exceeds" is unchecked in TestRunConfig file....

Hello team, We've around 5 Test Runs scheduled as part of a build (VS2008) to run nightly. I have configured timeout values of my TestRunconfig file with following values, I haven't set any "runTimeout" value - so i assume this test run will run infinite but each test run should only run for maximum of 5 mins. However, when the test...

Is there a way to embed on code snippet into another?

Let's assume that I have snippet A snippet B where snippet A contains snippet B n times with n > 1. Right now I have copied the content of snippet B into snippet A. This has the disadvantage, that whenever I change snippet B, I have to additionally change snippet A. Therefore, my question is whether there is some kind of statemen...

How can I call a function when an event happens?

I develop a website and I have this problem: The registered users on the website should put a (date & time) field, and when the current date will be the same of this date a function (that I developed) should be called. How can I do that? Your Faithfully. ...

Why has my solution stopped recognising Using Directives?

I have a solution, which I was working on yesterday without issue. Today I have opened the same solution and VS 2008 has underlined certain using directives in red. Mousing over the underlined directives brings up the tooltip: "Am I missing an assembly reference?" I am not, as I tried to add the references in and it does nothing to solve...

Visual Studio 2008 Database Project generating ALTER DATABASE during schema compare

I have a new Visual Studio 2008 Database Project (Data Dude). It was generated by pointing at our existing database. I have now made a few changes (new columns, tables, indexes, etc) and I am trying to generate the deployment (diff) script for deployment. I have a Schema Comparison setup to do the comparison and generate the diff scri...

Project reference path in source control?

Hi all, during development of our application we use a branching structure and while we are developing another team is using earlier builds of our software to create content with it. To facilitate easy swapping between builds and teams I was hoping to use empty Hintpaths in the content projects' csproj files so that they can use our GA...

cant insert data using table adapter

i'm using vb 2008 and local database sql server compact 3.5 to build a application. the problem is that i can't insert a new data to the database from the app. i'm wrote the query right at dataset and using table adapter. but when i call the query, it succeed but the data don't exist at database. for example: at table adapter, i made Add...

Code contracts slow down Visual Studio 2008

Since I started to use Code Contracts in Visual Studio 2008 (C#), building my dlls goes really slow. I haven't got static checking turned on, but apparently rewriting takes forever... Is there way to solve this and will this be improved in future versions of Microsoft Code Contracts? Update: When building in VS2008, even when Static an...

OpenGL: Crashes at random OpenGL function call

I am getting weird problem, the crash happens at random times, for example i managed to use the 3d app for a while without crashing, then most of the times it crashes always when i suddenly render a lot of objects at same time. I have recently noticed that changing the huge texture surface on this ATI card will crash my whole computer ...

Crystal Reports / VS'08 - Design, Elements floating to top

Hey, I'm trying to edit some .RPT files via VS08/Crystal Reports. Problem is, if i create new elements or delete/move existing elements, the text below (within a new section) floats up to (or above) the element i created. How do i create elements with an absolute "top-value"? Other than that, if there are there any design-essentials-t...

Most prevalent TDD packages for VS2008?

What are the most used TDD packages for VS2008? ...

Visual Studio 2008 - Custom XML Designer

Hi Folks! I'm searching for a way to implement a designer/editor like the aspx-Designer in VS2008. We use a custom XML-Format and want to edit it graphically. We already have a Designer and want to integrate in VS. Is there a good tutorial? I want to adapt to features like "switch to code" (and those tabs at bottom of the window). So ...

Visual Studio 2008 won't let go of debug ports

Hi, When I debug a web project (WCF, website etc) I find it convenient to fix the port number that the webdev.server.exe uses to server the page as I don't have to switch the port number in other config files that consume that service. My problem is that over time visual studio becomes unable to use the ports. The error message I get ...

How do I create a third table from two tables?

I have two great tables that I would like to use as foundation for an even greater third table! The output depends on date interval, like 09/01/2010 - 09/03/2010 Example of Output from TABLE A - - (ALLOCATED Testers) Date Country Allocated testers 09/01/2010 Nigeria 0 09/02/2010 Nigeria ...

Can I change the order that my symbols load in Visual Studio 2008?

I have a Windows Mobile project that runs some code before displaying the first form. If I put a breakpoint on a method I know is called before the form is displayed I get the hollow breakpoint warning symbol that tells me "the breakpoint will not currently be hit. no symbols loaded for this document". When I look in Debug -> Windows -...