visual-studio-2008

Can't execute msvsmon.exe from a share for Visual Studio Remote Debugging

I understand remote debugging can be through a Windows share without installing the components on the remote machine (test server in this case) When accessing my workstation's share C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86 I can browse files fine. When I try to launch msvsmon.exe, I reveive this error...

Build Specific .cpps

Can someone please point out where in the Visual Studio 2008 configurations I can set which .cpp files are used for a given build. I'd like to use a different set(s) of .cpp files when I am doing a release vs.debug build. Thanks! ...

How to unit test generic classes

I'm trying to set up some unit tests for an existing compact framework class library. However, I've fallen at the first hurdle, where it appears that the test framework is unable to load the types involved (even though they're both in the class library being tested) Test method MyLibrary.Tests.MyGenericClassTest.MyMethodTest threw ex...

Where is the restart icon in Visual Studio 2010?

In Visual Studio 2008 I often used the "restart" button but it is missing in Visual Studio 2010, at least in Visual Web Developer 2010 Express, I assume it's the same in the standard version as well. Where is the restart icon in Visual Studio 2010? Added: Ok, I was able to add it in "Customize", but after adding it, it is greyed out...

"Debug Assertion" Runtime Error on VS2008?

I'm writing a C++ MFC program on VS2008 and I'm getting this "Debug Assertion Error" when I first run the program sometimes. When I try to debug it, it takes me to this winhand.cpp file which is not part of the program I wrote so I'm not sure how to debug this. It takes the error to this place in winhand.cpp CObject* pTemp = LookupTem...

using WrapCompressedRTFStream in C#

Hello, I am rewording this question: Csharp C# visual studio 2008 How do I use the WrapCompressedRTFStream when using DLLImport with mapi32.dll? Sample of code to import the WrapCompressedRTFStream method. (I found this, I did not figure this part out) [DllImport("Mapi32.dll", PreserveSig = true)] private static extern void...

How to File Transfer client to Server?

i try to recieve a file from server but give me error on server.Start() ERROR : In a manner not permitted by the access permissions to access a socket was attempted to How can i solve it? private void btn_Recieve_Click(object sender, EventArgs e) { TcpListener server = null; // Set the TcpListener on ...

New projects not built when target platform is set explicitly

I create a new solution with one project, and then change the target platform from "Any CPU" to "x86". After this new projects added doesn't get built by default, and their target platform doesn't follow the global settings. Why?! Looking at the configuration manager new projects added are not checked to "Build", and they get target pl...

The project file '' has been renamed or is no longer in the solution

Anyone ever had this error when trying to build a solution in Visual Studio 2008? It's driving me MAD! I've removed all the containing projects and re-added them, and it's still not letting me build or run the solution. Any suggestions? ...

how to see complete string or character array in the watch window in vc++ ?

Hi, I am working on Visual Studio 2009. While debugging, I need to see the values of the variables in the watch window of visual studio.By default, it shows only the first character. It's only after I add a "s" or "su"(for unicode) that I see the complete content. Is there any setting in visual studio that I can make, so that this values...

A Program that sits in the Notification Area

Hello, Thanks for taking the time to read my question. If I build a program, how can I get it to hide in the notifications area(windows 7, cant remember what it's called in XP or Vista) when I minimize it? Like say a Torrent program, or a AntiVirus program. Also I'd like to know, how can I hide it from the notifications area and brin...

Visual Studio 2008 project configuration changes by platform/configuration

I've got about two dozen projects here in one solution that need changes to the include paths. I can go through and change each one, but what's really annoying me right now is that it looks like I have to change each one four times (debug vs. release, win32 vs. x64). Is there an easier way to do this than changing the include paths abo...

MSI creation with Visual Studio 2008 - how to create a subdirectory?

Hello, I am using Visual Studio 2008 to create an MSI installer. I currently have all the files installed in the main directory. Is there a way to select some files to go in a subdirectory? I can find an option in Visual Studio to do that. Thanks Tony ...

Partial coverage of a return statement in C++/CLI

I have C++/CLI code and I'm using Visual Studio 2008 Team Suite Code Coverage. The code header: // Library.h #pragma once #include <string> using namespace System; namespace Library { public ref class MyClass { public: static void MyFoo(); static std::string Foo(); }; } The code implementation: #include "Libr...

visual studio 2008 , asp.net mvc

Hello I was wondering how to get the starter template for asp.net mvc showing in vs2008 I currently have mvc installed , have been working with VS2010 but need to create a separate project for VS2008. How can I get the MVC template showing up for VS2008 ...

paypal API in VB.net

Hey all, i have converted some C# PayPal API Code over to VB.net. I have added that code to a class within my project but i can not seem to access it: Imports System Imports com.paypal.sdk.services Imports com.paypal.sdk.profiles Imports com.paypal.sdk.util Namespace GenerateCodeNVP Public Class GetTransactionDetails Public Sub New...

Silverlight Toolkit - Rating Control

This is my first silverlight Application. I am trying to use Rating Control from 3.0 Toolkit with VisualStudio 2008 Here are the problems: I am unable to see designer view after adding Rating Control and few other controls. I am not getting any errors or warnings on markup or while compiling. Trying to access Property window for any ...

Error when creating ASP.NET website in Visual Studio

I'm trying to learn ASP.NET. I open Visual Studio (this happens in both 2008 and 2010) and creating a new ASP.NET website using .NET 3.5. When I attempt to run the website, a FireFox page opens up and tells me that it can't establish a connection to the server (localhost:####). There's no helpful error message, just "cannot connect." ...

is it possible to create a multi-project template that references n number of existing projects and one new project?

The situation: I need to create about 40+ solutions that all reference 3 projects and have one project that is unique to each one. I'd like to create a multi-project template that does this, but from what I've read it looks like it's very difficult or impossible (related SO question, but doesn't answer). I want my solution to look like...

Running Network Application on port Server side give me error how can i solve it?

if i run Server App. Exception occurs: on Dinle.Start() System.Net.SocketException - Only one usage of each socket address (protocol/network address/port) is normally permitted How can i solve this error? Server.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u...