visual-studio-2008

highlighting messages in output window

I saw a screencast recently and what really got me interested is that messages in debugger output window were displayed in different colours (different color for warnings, exceptions etc).Unfrotunately I can't find this screencast anymore. Does anyone know if this is a new feature of VS2010 or is it part of 2008 and just need turning on...

Unexpected c# interface implementation compiler error

I just came across this weird behavior today: interface IFooBar { void Foo(); void Bar(); } class FooBar : IFooBar { void IFooBar.Foo() { } void IFooBar.Bar() { this.Foo(); } } The line this.Foo(); raises the compiler error 'MyProject.FooBar' does not contain a definition for 'Foo' and ...

Parsing string and making list of required data

hi, I am using **<style>..{data inside}..</style>** which is there in following code.i have taken all the data between style tags in one string ,say string tempStyle and all operations are to be done on that string only. I am looking for function which will take make a list of all "style" data. i.e. only style1,style2,style15,style20 i...

How are thread names populated in thread window of visual studio?

Especially,how the thread be named by method name like GrabberCB::BufferCB? ...

Visual Studio 2010 & 2008 can't handle source files with identical names in different folders?

Direct Question: If I have two files with the same name (but in different directories), it appears that only Visual Studio 2005 can handle this transparently?? VS 2008 & 2010 require a bunch of tweaking? Aside from my naming convention, am I doing something wrong? Background: I'm developing C++ statistical libraries... I have two fo...

Crystal Reports Page Width Rendered Incorrectly

I am having a strange issue with a VS2008 application we are distributing where the numerous Crystal Reports are all displayed in the viewer at half width, making most of the reports completely unreadable. The reports also print half page width when printing is attempted. The frustrating thing is, MOST target machines display and print...

WIX: Heat duplicate id issue with multiple features/folders

Hi, I am newbie to Wix and creating a multi feature Wix project. Our product is having 4 modules and each module has to be included as a feature in the Windows installer. But all features are sharing the same folder structure. I am using commandline to build my Wix project. After harvesting every module into different wxs fragments, t...

C++: How to prevent "potentially uninitialized warning" if im sure its not uninitialized?

Im getting this warning even though theres no possibility that it would remain uninitialized. The Visual Studio 2008 compiler fails to detect this. How do i suppress this warning at this piece of code only? ...

Threading, how to instantiate multiple threads without using a class structure

Hi, What I have is a loop reading some data and when a set of circumstances are met I need to instantiate a thread. However, the created thread might not complete before the loop criteria is met and I need to create another thread doing the same thing. This is part of an ocr app and I haven't done much thread work before. while loop ...

How to convert number to words in visual studio 2008

Can anyone teach me how to convert numbers to words? For example: 18,000.00 In words: eighteen thousand Hope anyone can help. I am using Visual Studio 2008 professional edition. ...

Is there a tutorial to tell me how to write a add-in for Visual Studio 2008

I want to write a add-in for Visual Studio 2008. It will provide a friend UI to show and edit bitmap image when I'm debugging projects about image process. I know how to access IDebugger interface in VC6, but I don't know how to do it in VS 2008. And I prefer to C/C++ guide other than C#. Thanks. I found it: Debugger Object(http://m...

Displaying two web pages on one page.

i am not saying its difficult but i would like to know what way is used professionally. what i do is declare iframes from html code and assign a scr to it, but the problems are switching the html code each time for declaration the size of frame does not change/ adjust with the page in it, scroll bars do appear but thats not it...

How to print test details in Mstest command line

I'm running 100 tests using data driven concept. My data source is a xml. When I run my test project using Mstest.exe I don't get any details except "Loading .vsmdi...staring execution". And as my test cases takes 5 hrs to complete, till that time I need to wait whether its passed or fail. I have added some console.writeline in my test...

VS 2008 - No hints when type code

Hi For some reason I started VS 2008 this morning and I wont display any hints when type. For example, If I had an object and wrote myObject. I'd expect a list of properties to show. This should be the case for other things like typing methods but they don't work either. I was wondering whether there was a setting I'd changed by accide...

Visual Studio 2008 project using incorrect version of binary reference from other project

Hi, I have a VS208 solution with several projects in it. The main WinForms client project has a project reference to a library project within the solution. The library project has three binary references to the Office 2003 interop assemblies v11. These binary references have their Specific Version property set and when I build the li...

Multiple VSS source DBs within a VS2008 project.

Is it possible at a file or folder level to tell VS2008 to reference different VSS DBs? The project in question has partial classes and I wish to split the .cs files associated with a partial class into two different source safes while supporting studio based checkouts and checkins. If it helps I can use project subdirecotries to group ...

Visual Studio 2008 using incorrect version of mscorlib

A while back a project I'm working on (and all other projects in the solution) were switched over to .Net 3.5. I'm trying to make use of Guid.TryParse which rocked up in .Net 3.5. When I try to use it I get the error: 'System.Guid' does not contain a definition for 'TryParse' The MSDN docs clearly show that TryParse exists in .Net 3.5...

Visual Studio 2008: Unit-Test methods in generic classes are not detected properly

Hi all I have a bunch of repository classes which I want to unit-test using Visual Studio 2008. They implement the following interface: public interface IRepository<TEntity> where TEntity : IEntity { /// <summary> /// Get entity by ID /// </summary> /// <param name="id">The ID</param> /// <returns></returns> TEn...

VS2008 Pro Debugger Loading ScriptResources Disables Step Menus

All being kept updated, this is a Web Forms Website Project using several Ajax controls on a Vista machine. I have searched the web of course but this is arcane and I have found nothing and seek help... I set some break points, then F5, IE loads the .aspx page of the C# source I am trying to debug but then the VS2008 Solution Explorer ...

Help with refreshed ASP.NET page clearing public array

Hey all, i am new at everything VB.net/ASP.net so i need some help with a problem i am currently having. I have an ASCX.vb page that lets the user choose someone from a table. Once they do select someone, the page reloads with that persons information into another table below that one where they can submit an order for that person or re...