visual-studio-2008

Counting gone horribly wrong

I'm trying to create a rdlc report in Visual Studio 2008 and I'm having a bit of trouble with the totals at the end. I have a string field called "Reward" that displays either 1, 2, 3 or B. At the end of the report, I need to count up how many total records, how many "B"s and how many are not "B"s. So my inclination is to have three f...

Where is msvcp90d.dll supposed to come from?

What is the story with the VC debug CRT? where is it supposed to come from? in particular, on my machine, running both VS2008 and VS2010 I dont have the amd64 version installed in c:\windows\winsxs? reading about this on the internet has been very confusing, I feel that everyone is hacking around, copying bits to C:\windows\system3...

how to get number of matched results of a query to SharePoint?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + ASP.Net + SharePoint Server Enterprise 2007 on IIS 7.0 with Windows Server 2008 Enterprise. I am currently using queryex web serivces API to get matched query results for a specific query. My question is, how to get the number of matched query results without returning the whole qu...

How to Edit an Arraylist that is already placed in a Listbox? And divide each item of the arraylist into individual textboxes?

Well it looks something like this _http://i29.tinypic.com/ib9oiu.jpg I had already posted a question on how to put an arraylist inside a listbox but that's already solved. http://picasaweb.google.se/109674614304504038591/Desktop?feat=directlink There is all my code, so I need to be able to edit the selected customer, clicking on custom...

Diagnosing why DebuggerTypeProxy attributes are not working

I'm trying to make a wrapper for a COM object easier to work with when debugging by adding a DebuggerTypeProxy attribute - the attribute appears to work some of the time (when running unit tests etc...), but doesn't work when I'm actually debugging the target process and I don't know why: I've checked to make sure that the correct asse...

LINQ Query On The Fly Evaluation When Debugging

Sometimes when I am F5ing and in the midst of debugging, I wish to apply some LINQ ( or any other kind of operation) to a collection. Is there anything like intelligent watch windows that allows me to apply LINQ operation on a collection and show me the result? The watch window that VS 2008 has is simply too unsophisticated for this pu...

Is MFC supports winsock2?

Hi all, I'm a fresher to Visual Studio. I read some where MFC supports only winsock1. Is it true that MFC doesnt support winsock2? ...

How to write TransmitPackets function in winsock2 ?

Hi all, I'm writing a file transfer application in VC++(Server) using UDP. I came to know in winsock2, there are some functions which are useful in file transfer. Can anybody help me. I'm also looking for a sample application of TransmitPackets of winsock2 but not gettng. Please help me. Thank you. ...

Can any one give a screen shot of how and where we can enable /clr:pure option in visual studio 2008?

Can any one give a screen shot of how and where we can enable /clr:pure option in C++ project visual studio 2008? Please... ...

connection to server explorer

hi, i need to connect to the server explorer in visual c# 2008 express edition.i am unable to find the server explorer.instead there is database explorer.How can i connect to the server explorer then....?? ...

Autocomment ''' in VisualStudio 2008 stopped working - how to enable it again?

Hi, The auto-comment option in my Visual Studio 2008 suddenly stopped working. o_O Does anybody know how to repair it and enable this feature again? I'm putting triple apostrophe above function and comment tags do not appear. :( I was trying to reset vs settings but it doesn't help. ...

Why does foreach skip compile time type checking on interface types?

When I use a foreach loop in C#, it appears that no compile time type checking is performed if the item type is an interface type. E.g. class SomeClass {} interface SomeInterface {} IEnumerable<SomeClass> stuff; foreach(SomeInterface obj in stuff) { // This compiles - why!? } This will happily compile and cause an exception at runti...

special characters parsed from html

I have an app that is parsing the html page and extracts some text with foreign characters for example 'Felvidék Ma'. Now I want to enter this into my database but not in this format but the original format. So can I convert it into utf 8 before writing to a sql server database or even writing to a textfile. here is the original term ...

new Breakpoints are created, unwanted!

I am running VS 2008 pro. my solution file has two project. Break points location are saved in .suo file which I delete it before opening the projects. even if I go to the debug menu, there is no active break point listed in there. but when I run the program, It goes to a breakpoint ( not an exception or anything) a break point, the same...

Windows WorkFlow Version 4 and Visual Studio 2008

Can i develop Windows WorkFlow Version 4 applications using Visual Studio 2008? ...

Batch Migration of VS 2008 Solutions/Projects to VS 2010?

Does anyone know a fast way of batch migrating VS 2008 Solutions/Projects to VS 2010? A simple test using the Migration Wizard shows that amongst others, the ToolVersion attribute is automatically changed to 4.0, the NoWarn key gets new exceptions added and a couple of other things... If there is no other way, I will have to do it manua...

register dll - GUIDs not found in registry

i've got a c#-dll and registering via regasm tells me success, but the GUIDs have not been added to the registry and therefore, the component can't be used anywhere. and i've got simply no idea why :( class attributes: [ProgId( "blup" )] [ClassInterface( ClassInterfaceType.None ), ComSourceInterfaces( typeof( blap ))] [Guid( "0CFEF92B-...

Unable to view the COM Class Attributes in VS 2010

I am adding a COMVisible(True) class to my project. In Visual Studio 2008, I am able to have the COM class active in the IDE editor and when I look at the properties tab it gives me the ' Attributes' option in the drop down box. However, when I do the same thing in Visual Studio 2010 the drop down box is empty. I have also tried right...

Is there a way to disconnect a Visual Studio 2008 Schema Compare from a database without closing the schema compare?

Let's say I want to (using Visual Studio) run a schema comparison between two databases, restore one of them from a backup, and run the schema comparison again. The schema comparison maintains a connection to the database, and SQL Server won't let me run the restore without removing all connections. Is there a way I can force the schema ...

Hide Equals and ReferenceEquals

I am creating an internal class to provide a construct for the Contract pattern. using System; using System.Runtime.Serialization; namespace DCS2000.Common35.Core { public class Assertion { public static void Ensure(bool test) { if (!test) { throw new PreconditionException("Precondition test fail...