visual-studio-2008

How does one convert from CString to unsigned char* with Unicode?

Hello everyone, I'm trying to do something simple here. When I execute the following code in Visual Studio 2008 using the unicode character set, xmlString is correct. Unfortunately I need to convert the CString to a unsigned char*. Using the code below, ucStr becomes "<" (i.e. the first character of xmlString). How should I convert th...

Visual Studio find doesn't find all possibilities

Recently, I've begun to notice that Visual Studio 2008 isn't finding all of the instances of a text I search for when I'm searching Entire Solution. It will start to search through the files to find a term, but then at some point, it stops searching other files, and starts alternating between only two files. This is very aggravating, b...

Adding columns to a DataTable bound to a DataGridView does not update the view

I have a DataTable which is populated from a CSV file then, using a DataGridView the data is edited in memory. As far as I understand the programmatic editing of the data should be done on the DataTable where the user editing is done via. the DataGridView. However when I add columns programmatically to the DataTable, it is not reflected...

hostname not translated into an IP address using Winsock

Question: The getaddrinfo() does not translate a hostname into an IP address and consequently does not connect() to server. Is something wrong with my implementation - compiles with no warning messages? EDIT: Is this function call to connect correct? ... connect(client, result->ai_addr, result->ai_addrlen) ... Full implementa...

Is anyone using the built in code-generation in VS2008 (.tt files)?

Is anyone using the built-in code generation provided via text templates (using .tt files)? If so what are the main pro's/con's over other solutions like codesmith? ...

nunit is not an available test framework in vs2008

I have been running Visual Studio 2008 Team Edition for some time now and need to start using nunit. I loaded nunit 2.4.8 but nunit is not showing as a selection for a testing framework. This is the selection you see when starting a new project and it asks if you want to setup a testing project and which framework you wish to use (only...

Visual Studio Extension to map Solution Folders to Real Folders

In an earlier question, I've found out that sadly Solution Folders are not real folders inside a directory. I wonder if there is an AddOn or Macro that adds this functionality? i.e. when I create a Solution Folder, it created a real folder. When I Create a new Item (Right Click => Add => New Item) it automatically moves them into that f...

How do I remove a project configuration in Visual Studio 2008?

I have a Visual Studio 2008 solution into which I have imported a number of pre-existing projects. The projects are mixed-language sample code (C#, VB, C++/CLI). They currently have multiple configurations, but I want each project only to have only a single "Debug" configuration. In the configuration manager, I deleted the other confi...

Windows 7 Beta Visual Studio 2008 Problems

I installed Windows 7 Beta (clean install) a week ago. I installed VS 2008, Resharper 4.1 and AnkhSVN without any problems. Everything runs smooth for a while then the application hangs or at least that is what event viewer says. It seems to happen when I run unit tests and close two or more files quickly. I've sent the data to Microsoft...

Include Data in my Unit Tests

I have some files I want to use in my unit tests but I want to make those files relative to location of the dll which contains the unit tests, is this possible? In other words I have included a Resources folder which contain some files for my unit tests to use in testing, I marked the files "Build Action" = "Content" and "Copy to Outpu...

Problem using Add View dialog in ASP.NET MVC RC1 for strongly typed view

I like the new Add View dialog that was released with RC1. If you specify a view data class, it generates a scaffolded view for you. It seems to work fine with classes defined in projects within my solution. Some of my domain classes inherit from a base class that is defined in an external assembly (and referenced in my web project). ...

IntelliSense not working VS2008 VB.Net

I realize this question has been asked before, but I was not able to find anything that worked for me yet. Things I have tried: Switched settings back to default (mulitple ways) Project Builds/Compiles fine Closed VS and restarted The only thing I haven't been able to try is deleting the ".ncb" file, but that's only because I can't ...

Visual Studio 2008 Auto Save

I just lost about an hour's of work when my computer crashed. Is there a timed autosave feature in Visual Studio 2008? If yes, where is it configured. It's probably obvious, but I'm not finding it. ...

Why does my service reference only generate asynchronous methods?

I have a Service Reference (not a web reference) in VS2008 to a web service that I did not write. The reference works, but only asynchronous versions of each method are available for me to use. In the "Configure Service Reference" dialog, the "Generate asynchronous operations" is checked and grayed out. First of all, I thought checking...

Where Can I Find Visual Studio Tools for Office Add-in Project Template for Expression Web 2

I am trying to build a VSTO add-in for Expression Web 2. There are Add-in templates for Word, Excel, Project, PowerPoint and so on but nothing that I can find for an add-in project template for Expression Web 2. I have hacked together my best guess of what it would look like, but Visual Studio 2008 keeps erroring out with the message...

Why doesn't Visual Studio 2008 show you the value of const variables when you hover over them in C#?

My question title explains it all. This is extremely frustrating, especially when working with lots of similar constants. It works for Visual Basic projects but not Visual C#. In general, why do the IDEs seem to be so different for the different languages (e.g. super-charged Intellisense in VB but not in C#)? To me it doesn't make sense...

Can I open a VS2008 professional project in Express

I am planning to do some extra coding at home on a project from work, and rather than try and justify them giving me a copy of VS2008 pro, am I able to open VS2008 Professional created C# projects from C# Express? Any changes I make, I will simply load the changed .cs files to VSS, so I don't need the project to save back to a valid VS...

WPF Designer exception while trying to edit UI in Visual studio 2008

I have VS2008 with .net 3.5 SP1 installed on my machine, I have written one simple application with two listviews and databinding, My application compiles fine and I am able to run it, but when I try to open designer to edit controls, I get following error. I am not getting why this is happening. Any idea...see xaml below this error mes...

In Visual Studio can i plot my variable in breakpoint ?

In Visual Studio for my native C++ program I want to get a plot of some variables during debug. Mostly I use textual representation of the objects by editing autoexp.dat. But for some of the variables it is better to have a plot rather than having values in textual form. So far I have used a function plot(const void* address,const char*...

How to update common control in windows 2000 to version 6

How can I update the common control dlls to version 6 on windows 2000. I have built a MFC application using new features available in version 6 of windows common control. The default version of the dll in windows 2000 is 5.80. I need to support windows 2000, I am unable to find a way to update the common control dll. The Microsoft websit...