Anonymousandmad's Q&A profile
Visual Studio Team System Code Coverage Results
Hello, I'm trying to get code coverage results from the unit tests executed in my team build. My build report states no coverage results available, and I can't figure out how to enable coverage instrumentation. Locally, I do this through my .testrunconfig file however in looking at the build log I don't see that a .testrunconfig is being used. A test list is used from the .vsmdi, but I don't see any way to enable coverage through that construct. ...Show All
.NET Development IEquatable, IComparable, operators and Object overrides
Framework Design Guidelines provides example implementations of IEquatable, IComparable, suggested operators and Object overrides as roughly: public struct MyValue : IComparable<MyValue>, IEquatable<MyValue> { int theValue; public int CompareTo ( MyValue other ) { return theValue - other.theValue; } public bool Equals ( MyValue other ) { return CompareTo(other) == 0; } public override bool Equals ( object obj ...Show All
Visual C# resource problem
I have added an xml-file (Signals.xml) containting a definition of a dataset to my project in visual studio. I then marked the xml-file as a embedded resource, and everything works fine. I read the xml-file in a class extending DataSet like: this .ReadXmlSchema("Signals3.xml") and everything works fine. When I later add another resource (for instance a background image), I get the following error message: An exception occured w ...Show All
Smart Device Development Get Current Method Name in CF 2.0?
Hi! Does anyone knows a way the get the name of the current method in CF 2.0 At the .Net Framework it works this way: System . Reflection . MethodBase . GetCurrentMethod (). Name Thanks in advanvce... Markus Hi, I am trying to use your code, but it seems that aex.StackTrace doen't exist in Compact Framework 1.0. Any other way to resolve the problem Thx, Moiss ...Show All
SQL Server Last() Function?
Greetings, I'm having some trouble to create a report. In this report I'm supposed to get the last row for each group of customers, ordered by date. Let me explain you a bit further using an example: The table contains these fields, amongst others: CustomerID, Car, LastVisit. So, for each customer there are many rows, each one with a different value in LastVisit. What I need to get, and before I started it looked quite easy, i ...Show All
SQL Server List all databases accessible by a login
Hi all. I am new to SQL-DMO so sorry if what i am asking is really easy. Is it possible to get a list of all objects (including databases) which are accessible for a particular login. So far I have: Dim oSQLServer As SQLDMO.SQLServer Dim oSQLDatabase As SQLDMO.Database Dim oSQLLogin As New SQLDMO.Login Dim oUser As New SQLDMO.User oSQLServer = New SQLDMO.SQLServer oSQLServer.Name = _oSQLServer.Host ' Check se ...Show All
.NET Development DataGridView and Dataset updating
I am working with VB 2005. Developing for windows forms. I have an input form with a monthcalendar control, a datagridview control, and a button. When I select a date on the calendar, it creates a dataset and displays it in the datagridview. The user can modify or add data, and when they either change the date or click the button the change is committed to the database. The problem is that, using the exact same code, that the button works ...Show All
Smart Device Development Junk characters when display in pocket pc through web service
I have made a small program in which there is a web service which reads an xml data and returns a dataset of it. At the same time I made a pocket pc application that consumes the web service and displays the values of the dataset on a text box of pocket pc. but problem is when it displays the data on text box the data have some junk character. I am a beginner of using this please help me this is code of web s ...Show All
.NET Development OOPing my code
I built a quick and dirty app to iron out the DCOM issues. Now I've got to make it readable, maintainable and bug-proof. 1] Currently, all database access is through a class - I'm not sure how to name this class - it doesn't seem right to simply name it 'Database'. At the moment I'm calling it 'DBAccess'. It's not that naming it is any big deal, it's just that I've learned that OOP is so elegant, particularly at facilitating self-docume ...Show All
.NET Development System.IO.FileStream steam = new System.IO.File.Create(TempFile) Question
I'm trying to figure out how to not create a file that has zero bytes. I have an FTP client that uses a stream to download the files from the server. You can see the code below. I was wondering if there was a way that we can make a stream first, then if the file exist, then create the file with the stream. Any ideas are greatly appreciated. try { System.IO.FileStream stream = System.IO.Fil ...Show All
Windows Forms Loop through checked items of CheckedListBox
For some reason I can't figure out how to do this. I want to creat a string based on the valuemembers of the checked items. How can I loop through and get the values I believe you can do this in a simpler manner, if ...Show All
Software Development for Windows Vista Workflow Designer Flexibility
I've been testing WWF for very mainstream workflow purposes, but I think a flexible embedded WWF designer in a winform itself could be potentially very useful for, well, many other things as well. In any case, the example I have in mind is using the WWF designer to create or modify a logical expression (I will need this sort of functionality in the application I'm designing). So here is ...Show All
Visual C++ Is the /GS switch working as expected in Beta 2?
Something appears a little broken in VS 2005 Beta 2. The code below will produce the expected buffer overrun dialog box when compiled retail in VS 2003 but does not in VS 2005 unless I set optimization to /Od. void causeAnOverrun( _TCHAR *badName ) { _TCHAR myNameBuffer[5] = {0}; _tcscpy( myNameBuffer, badName ); } int _tmain( int argc, _TCHAR* argv[]) { _TCHAR *name = _T("Long Name"); causeAnOverrun( name ); _tprintf( _T("I got ...Show All
Visual Studio Express Editions Network Install / Educational
If I download the .img files directly and not use the downloader, can I install without registering If it is legal, we might want to install in the school's image and deploy throught our school labs via image for educational purposes. Is this OK with Microsoft Can we also skip registering Thanks! Yes. The CD image does not reqire registering. Thanks, Luke Hoban Visual C# IDE Program Manager ...Show All
Visual Studio Express Editions Open a text file, edit it and save it
Hello I am new to Visual Basic Programming. I would like to ask, how do I open a text file with its data in a TextBox of my programme How do I edit edit and after that save the text file in the same file format - Aakarsh I tried this and it works! Dim ofd As New OpenFileDialog Dim content As String Dim newLineIndex As Integer Dim nameIndex As Integer Dim contact As String ...Show All
