visual-studio-2008

Why Doesn't Read() work as Expected?

I'm using Visual Studio 2008 for C#. I can't understand why this simple code does not work as expected. Any ideas? Thanks! using System; namespace TryRead { class Program { static void Main() { int aNumber; Console.Write("Enter a single character: "); aNumber = Console.Read...

Vs2008 C++: how can I make recursive include directories?

I am including a complicated project as a library in C++ using Visual Studio 2008. I have a set of include files that are scattered throughout a very complicated directory tree structure. The root of the tree has around ten directories, and then each directory could have multiple subdirectories, subsubdirectories, etc. I know that a...

How can I use SCM on linked files in VS2008 projects?

Background: I'm using Visual-SVN V. 1.7.5 with VS2008. I'm fairly new to SVN. I have a Solution that uses source files that will be shared with other Solutions. I've put these files in a folder called "Shared", and added them to my Solution using "Add -> Existing Item... -> Add As Link" which works fine as far as VS2008 is concerne...

remote debug in Visual Studio Remote Debugging Monitor on Windows Server 2008 x64 takes years to refresh process list

When I remotely "Attach to Process" in Visual Studio 2008 SP1 to WS2008 (x64) computer running remote debugging monitor (both RTM and SP1), I see a huge number (30+) of entries saying: <username> connected Both TCP and authenticated mode are affected. I think there is an entry per unique process name. Each connection attempt takes se...

Can I fix corrupt Visual Studio 2008 toolbars/windows without having to reinstall?

I think my local install of Visual Studio 2008 has gone a bit scooters. When I'm debugging I'm unable to view the "Watch" windows - I'll see one come up when I click on it but then it disappears. Nothing wants to stay where it's supposed to - the "Watch 2" window wants to stay on the other monitor, there's intermittently one or two or...

Adding Custom Controls dll to Visual Studio ToolBox From Clearcase's Dynamic Views

I have a custom control dll that I saved into my network drive. I want to add it to Visual Studio toolbox, it came back and said Access is Denied. If I placed it in my desktop then I don't have any problem. Can you tell me what am I missing? Update: After further trials, the problems appear to be the files are in ClearCase's Dynamic...

Code to handle licensing for Visual Basic 2008

Hi, Is there a license thing out there that can be used to license my application for Visual Basic 2008? Something like .Net Reactor, where the person needs to enter a license key. Any recommendations? Thanks, Kevin. ...

Display System DateTime In Output Window During Visual Studio 2008 Build

Does anyone know how to set Visual Studio 2008 to output the current date/time at the end of a build? I've set it to output verbose but that just shows the date/time at build start plus elapsed time. ...

New Data Breakpoint disabled in Visual Studio 2008 mixed project

In a DLL invoked from C++/CLI code I don't seem able to set Data Breakpoints in some pure C code. The menu option New Data Breakpoint... is disabled as is the popup in the breakpoints window. I haven't been able to find anyone else reporting this, the only similar experience is for a Mobile developer. Debugging is otherwise working fine...

VS2008 win32 project defaults - remove default precompiled headers

I have been through every option to try to find a way to get the IDE to let me create a new win32pject without precompiled headers. I have read every thread on this forum with the words "precpmpiled headers" in it and the closest I got was: http://stackoverflow.com/questions/1293538/precompiled-headers Using 2008 pro (not express, alth...

Loading a C#dll into a C# exe

Hi Members I am new to C# can any please tell how to load a dll created in C# to a exe in c# I have .NetFrameWork 3.5 and my o.s Vista ...

[myproject].dll.config files - do I need them?

If I have a project with an App.Config, and when I compile it I get a file next to my DLL called [myproject].dll.config which contains the contents of the projects App.Config. If I want to reference [myproject].dll from another project, do I need to copy the .config file as well? Can the App.Config file be compiled into the DLL so all t...

Requirements gathering with Team Foundation Server

Is it possible to use TFS 2008/VS 2008 to gather requirements and create the (top level) work items for the solution? Current our BAs use Visio and Word to scope our requirements so there is no formal UML type user story/case based design though I am looking to implement something like this. Our solutions mainly use the following techno...

Annoying: VS2008 combines class attributes

On some occasions (e.g. suppress warning), VS generates class attributes. The problem I'm facing is about the way these attributes are added. When advising Visual Studio to suppress the warning w1 and the warning w2, I expect this result: [SuppressMessage("w1")] [SuppressMessage("w2")] public class Foo Bit actually VS combines the at...

Local commits pushing to a central server

Hello, At work we use perforce and are encouraged to make regular commits to it (something I am fine with). However, I'd like to run something like mercurial so I can locally commit stuff that is work in progress and doesn't necessarily compile/run and then from this do my regular commits to the central perforce server. My question her...

ASP.Net 3.5 website project VS web application project

I have an interesting scenario: - Site has 209,000+ pages. - Evertime a user submits a new article/item a new page is generated and if it has a refernece to one of the existing pages then that page is also re-generated and saved. - A windows service is looking after the generation of pages which creates a page(file) in the site directory...

are you missing an assembly reference?

I'm getting the joyous 'type or namespace name "Something" does not exist in the namespace "Something else" (are you missing an assembly reference?)' error. What I've got is a Website project that contains the website itself along with several other custom projects upon which the website relies. The issue I'm having is with one of the ...

How to install a SSL certificate into Visual Studio?

I need to install a SSL certificate into Visual Studio for use with an Azure site. I'm successfully using a self-signed certificate for local development, but I can't figure out how to get my certificate from Comodo to show up in Visual Studio. I used IIS7 Manger to create the CSR. I then added the certificate in IIS7 Manager and it a...

vs2008: not honoring 'my documents' path setting

vs2008 (and earlier versions) always creates empty folders in c:\users\<username>\my documents every time it runs. Is there any way to get it to honor the location of 'my documents'? It's never on my c: drive. This leads to the annoying problem of 2 'my documents' folders in windows explorer. MS is not following it's own guidelines. And ...

Break points not removing while attached to process

I have a problem removing breakpoints that are set when I attach to a process. I am attaching to the aspnet_wp process and setting breakpoints. However any breakpoints I remove while debugging are only removed temporarily. when I re-attach the debugger to the process, my breakpoints that I had removed come back again. I have found that ...