Landon Parks's Q&A profile
Software Development for Windows Vista Product kay
i just downloaded vista.and i need a product key.where do i get one I download legal and my vista is ve:5600.Please send me product key.Email is goran.ilic@sezampro.yu Thanx alot. im afraid these are the incorrect forums as these forums are for Software development on Windows Vista. Your question does not fit here but fits over at the appropriate communities: www.microsoft.com/communities However normally an email is sent out when you register to download the RC1 of Vista. ...Show All
Visual C# Debug vs. Unit Testing
I was hoping to get some opinions about using the System.Diagnostics.Debug class instead of or in addition to NUnit unit testing. What do other developers favor more, Unit Testing or Debug Also what are your thoughts on using the Trace class with TraceListeners to implement logging of an application, say versus using a framework like log4Net Thanks. There is no way you can substitute unit testing for simple use of the Debug class (I'm assuming you mean use of Debug.Assert here ). This is useful for checking that you are in the right state within a class, but does not act as a test driver. You need to unit test to try and create the conditions that could cause your assertions to fail. I tend to use Debug.As ...Show All
SQL Server Add sum column to query
What's the best way to include an amount sum in a query if I also need the individual amounts For example, I need the following columns: order number order amount total amount I tried using "with cube ", but the total number of columns in the query exceeds the allowable limit of 10. Could it look something like this create table #x( ordernum int not null, amt int not null ) insert #x select 1, 20 union all select 1, 15 union all select 2, 35 union all select 2, 10 union all select 2, 70 go select ordernum, amt, sum(amt) as total from #x group by ordernum, amt with rollup go ordernum amt total ----------- ----------- ----------- 1 15 15 1 20 20 1 NULL 35 2 10 ...Show All
Visual Studio Express Editions Can i exclude certain files from being scanned for xml document generation?
My problem is this: When designing a class, i create the .h header file like so: // foo.h ///<summary> /// This is foo ///</summary> class Foo { public: ///<summary> /// Default constructor ///</summary> Foo(); }; Then when i create the .cpp file i copy the comments into that also so i can read what the function does (at a later date) from any of the 2 files like: // foo.cpp ///<summary> /// Default constructor ///</summary> Foo::Foo() { //do something }; Now when the .xml documentation is generated, for each member it lists the summary twice ie: < xml version="1.0" > < doc > < assembly > "F00" </ assembly > < members > < mem ...Show All
SQL Server Hypertext link in a report.
hello : On a hypertext link in a report, how to open the link in a new window IE. Thank's. Im trying this in my report that returns a field in the URL - I keep getting the URI scheme is not valid error. Can anyone help My report has no globals listed, and this is confusing me since I have tried HTML as well as JAVA to get this report to jump to an open window with no luck (obviously!) - can anyone help a newbie Ever Gracious for your help Gina ...Show All
Visual Studio Catastrophic failure with Add new item
Hi All, I've created a custom project type using the MPF. The probem that I am running into is that after I create a new project of my type and try to add an item to it via the project item context menu, I get the below exeption. I've verified the project items template folder matches the [ ProvideProjectItem ] attribute that I set on the package. Any ideas on what could be the cause of the problem Or how I can solve it Thanks Drew The exception is caught in: HierarchyNode. AddItemToHierarchy ... ErrorHandler .ThrowOnFailure(addItemDialog.AddProjectItemDlg( this .hierarchyId, ref projectGuid, project, uiFlags, null , null , ref strBrowseLocations, ref strFilter, out iDontShowAgain)); /*&fDontShowAgain*/ ...Show All
Visual Studio View problem in MSDN 2005
hi there MSDN 2005 has a view problem when i search in the first time and choose the content type i would like to search in and the Technology the all components of Technology and Content type are appear but in the all the next time when I just scroll down only the components before the results page appear and the rest are hidden in spite of i scroll up again as the following image http://khiat.jeeran.com/msdnProblem.jpg help me in this plz bye Could you enter a report in http://connect.microsoft.com/visualstudio This will help us track this problem down and discover the cause. In this report, please include: - A link to this forum thread - Detailed steps that can help us reproduce this issue (e.g. ...Show All
Windows Forms How to change the icon beside a filename in windows explorer?
Can someone please tell me how to change the icon beside a filename in windows explorer I use Visual Studio to create some icons and wish I can change the icon beside these icon filenames in windows explorer to look similar to the icon themselves. Thanks! See this article : How to Change File Type Icons and File Types ...Show All
Visual Studio September CTP?
Anyone have any idea as to when the Sept CTP will be released Thanks John End of this month. Cheers. Anand.. ...Show All
Visual Studio 2008 (Pre-release) C# 3.0? Extension methods.
Are questions about C# 3.0 on-topic here I was wondering if extension methods would be applicable to interfaces as well as classes Either supplying default implementations for the contract methods and properties, or adding methods outside of the contract. So the following would be possible: public interface IThing { public void SomeMethod(); } public class Foo : IThing { public void SomeMethod() { ... } } public static class Extensions { public static void OtherMethod( this IThing ithing) { // Do stuff } } ... IThing ithing = foo as IThing; ithing.OtherMethod(); Do we know yet whether this will be possible Yes - this will be possible using extension methods in C#3.0. In fact, this is very si ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
Visual Studio Team System Source Control Toolbar issues
I have both "Source Control" and "Source Control - Team Foundation" toolbars enabled, when I open a .cs file under source control (so it's the active document I'm looking at) the "compare" button stays disabled. How can I enable this button or compare the current document to the latest version at a click of a button First, the Source Control toolbar is for VSS, and the Source Control-Team Foundation toolbar is for TFS. so For TFS, there is no compare button in this toolbar, you can do it through Context Menu in Solution Explorer. ...Show All
Visual Basic Late binding problem. I've not looked up a definition but what the code does is.>>
i have a problem about late binding. highlighted in red. anyway what is late binding Private Sub IP_input_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txt_IPinput1.TextChanged, txt_IPinput4.TextChanged, txt_IPinput3.TextChanged, txt_IPinput2.TextChanged Dim control As TextBox = CType(sender, TextBox) ' if length is 3 then focus next control If sender.Text .Length = 3 Then Call focusNext() End If End Sub Hi, Checks to see if 3 characters have been entered in each textbox and if TRUE sets the focus to the next control in the hierachy. By the nature of the Sub name above it is allowing 3 characters to be entered at the most as in inpu ...Show All
Windows Live Developer Forums More efficient way to draw a circle then this...?
I got this code form the VIAEarth website... it works great but it pretty slow to use. Does anyone know or have code that can produce the same effect but more efficiently this.circle = function(id, latin, lonin, radius, polygon) { // ref: http://viavirtualearth.com/Wiki/Draw+a+filled+Circle.ashx // returns polygon (if polygon != null) and polyline if not var locs = new Array(); var lat1 = latin * Math.PI/180.0; var lon1 = lonin * Math.PI/180.0; var d = radius/3956; var x; for (x = 0; x <= 360; x++) { var tc = (x / 90)* Math.PI / 2; var lat = Math.asin(Math.sin(lat1)*Math.cos(d)+Math.cos(lat1)*Math.sin(d)*Math.cos(tc)); lat = 180.0 * lat / Math.PI; var lon; if (Math.cos(lat1)==0) { lon=lonin; // endpoint a pole ...Show All
Architecture Factory pattern question
i am building a data access layer for some reports. this is a smart client application so the report data may be generated from a database or from a locally stored xml file, etc. i dont want my business layer to worry about how the data is retrieved. all my business layer should say is "get me the data! i don't care how! just get me it!". i thought that i could use a factory pattern - something like this: ReportFactory reportFactory = new ReportFactory(); IReport myReport = reportFactory.GetReport(StorageTypes.Database); DataTable dataTable = myReport.GetData(); ok. but in this scenario the database driven class needs some extra settings such as connection string. whereas the xml based report might need to know oth ...Show All
