visual-studio-2008

Visual Studio won't open solution file

Hi, I have a VS project (made by someone else), and when I try to open it on Visual Studio 2008, I get the following error message: "The selected file is a solution file, but was created by a newer version of this application and cannot be opened" I would have thought VS was backwards compatible. Is there any way I can open this? ...

function pointers error C2373: redefinition; different type modifiers

Hi there, I'm trying to compile some function pointers assignment code. I tried different variations of pointer assignments and __cdecl as well. But without success, after a while I gave up... maybe you'll see something what i can not. I compile with visual express 2008, with flags: /Gd __cdecl calling convention /O2 maximiz...

How to call a member function on a parameter with std::for_each and boost::bind?

I want to add a series of strings to a combo box using std::for_each. The objects are of type Category and I need to call GetName on them. How can I achieve this with boost::bind? const std::vector<Category> &categories = /**/; std::for_each(categories.begin(), categories.end(), boost::bind(&CComboBox::AddString, &comboBox, _1); The c...

Skip unit tests that take a long time

Hi, I'm working with MS-Test for my unit tests writing. most of my tests have a duration of less than 0.1 seconds. I want to somehow tell VS "ignore the tests that take a long time to run when i'm running the tests manually, and when you run them on the build do not ignore them. I know that in nunit there is an "explicit" attribute tha...

How to create a Loading Window?

Ok, in my app there are times when loading the DataGridView can take a minute or two. What I want to do is show a GIF in a form with no border until it reaches the end of the loading function. However, if I do: Views.Loading ldw = new Views.Loading(); ldw.Show(); ... ldw.Close(); ...it never actually draws it to the screen and I ca...

Adding a dynamic image to my Crystal Report

Hello, I am using the version of Crystal Reports that is bundled with Visual Studio 2008. I'd like to pass in an image as a parameter, but I can't seem to figure out how to do this. Can somebody point me in the right direction? Thanks! ...

Visual Studio 2008 - Compile problem

I am getting this error msg: Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\LODE\Web\web.config 21 I checked IIS on my XP machine and it is configured as an appli...

Visual Studio 2008 C++ misreporting memory address location

I'm attempting to debug a stack overwrite (no pun intended) corruption problem with some c/c++ code in Visual Studio 2008. When I compile the solution in win32 debug mode, I'm able to run the debugger and see a class get instantiated. In the constructor call, we initialize some fixed length char[] member variables using memset. If I u...

How to find code which is only called by tests

Occasionally I am looking at some code, I search for usages of a method (using resharper) and find that it is only called by tests. So it's effectively redundant and I can delete it and the methods that call it. Obviously there's no point in having unused code lying around the place, slowing down the build and the test run. What I'd lik...

Memory access time slow with VirtualAllocExNuma on Windows 7/64

In our application we are running on a dual Xeon server with memory configured as 12gb local to each processor and a memory bus connecting the two Xeon's. For performance reasons, we want to control where we allocate a large (>6gb) block of memory. Below is simplified code - DWORD processorNumber = GetCurrentProcessorNumber(); UCHAR ...

I've got a project that won't open with VS2008, it's a Windows CE 5.X app - something with .net

I've got a project that won't open with VS2008, it's a Windows CE 5.X app - something with .net I keep trying to open the project and it keeps saying it's not compatible with the installation. I thought it might have been because i'm using VS2008 Standard and not Pro, but I read that Standard supports Windows CE. I was told that it mig...

Increase debug item count in Visual Studio

I routinely have to look at byte [1024] and longer in the debugger (VS 2008). At least by default, it shows 15 items. I have 23" widescreens that could display 3 or 4 times that vertically. Does anyone know how to get more items to display (if it is possible)? Clarification This is primarily for C# code and I am mostly interested in t...

Entity Framework Tools for VS 2008 RTM (.net 3.5 sp1)

I'm trying to add ADO.NET Entity Data Model in my project but i can't access/find it. I found this link text but it requires VS2008 Beta 3.5 version while mine is vs2008 RTM 3.5, is there a way i could install this? ...

Which are the best free Visual Studio 2008 plugins?

Hi, I am new to Visual Studio 2008 (not 2010). What do you think are the best free Visual Studio 2008 add-ins or plugins? Is it there some LINT one? Thanks ...

microsoft installer vs2008

I am trying to add 2 functionalities to my windows installer (setup project, vs2008) It installs a windows service and I want it to: 1. if the service is already installed, then it should ask if the user wants it removed 2. if the service does not exist, it should install it, then start it automatically ...

Visual Studio "project" reference synchronization problem

I'm not really sure how to phrase my issue, so I hope this isn't a repeat. The problem I'm seeing is with Visual Studio 2008. When I directly reference a project within my solution, I notice that the dependent reference occassionally gets out of synch, and my top-level project ends up holding on to an old build of the DLL (most obvio...

Bin DLL's target different .NET frameworks possible?

I have a website that is currently running under .NET 3.5. I am thinking of making it run under 4.0, but I use many 3rd-party DLL's for compressing, Bit.ly, Twitter, XML, etc. If these DLL's were created for .NET 3.5 (in VS2008), will they continue to run under 3.5? Or is 4.0 somehow backwards compatible for old libraries? ...

Add keys/values to Dictionary at declaration.

Very easy today, I think. In C#, its: Dictionary<String, String> dict = new Dictionary<string, string>() { { "", "" } }; But in vb, the following doesn't work. Public dict As Dictionary(Of String, String) = New Dictionary(Of String, String) (("","")) I'm pretty sure there's a way to add them at declaration, but I'm not sure how. ...

How to fix "Root element is missing." when doing a Visual Studio (VS) Build?

How to fix "Root element is missing." when doing a Visual Studio (VS) Build? Any idea what file I should look at in my solution? Actually, I am getting this error message inside of "Visual Build Pro" when using using the "Make VS 2008" command. This command works just fine when building other solutions (like about 20) and I am not real...

Visual Studio 2008 - Program exits immediately with F5 (start debugging)

I'm having a strange issue with Visual Studio where if I start debugging it exits immediately. This started happening after changing the assembly name in the project properties. If I change the assembly name back to the previous name then the program runs fine. How can I fix this? Here is the output when running after changing the assem...