Arslan.Ahmed's Q&A profile
Visual Studio Team System Branching bound projects and solutions does not work
Hello, While testing branching capabilities in TFS, I come to realize that for bound projects and solutions, branching does not work as expected. I hope I am wrong, and if you see any mistake with the following scenario, please tell me. Start of with a solution that has two projects c:\root\solutions\solution.sln c:\root\projects\projectA.csproj c:\root\projects\projectB.csproj Add the root directory to version control in TFS $/TeamProject/Mainline/solutions/solution.sln $/TeamProject/Mainline/projects/projectA.csproj $/TeamProject/Mainline/projects/projectB.csproj Make sure your mapping in the workspace is like so $/TeamProject/Mainline -> c:\root\ Open solution in VS 200 ...Show All
Audio and Video Development XPath - selecting an element by index
Seemingly this should be a valid XPath select for a <cue> or <par> -- why does it's inclusion cause iHDSim to report an "Unknown Exception" //div[@id=$chapter]/button[1] This should identify a specific <div> (using an XPathVariable set in script), and get the first button it contains. In fact it seems that the bracketed subscript notation doesn't work at all... Thanks Josh, that's very helpful to know. I suppose the best workaround then would be to fire an event to script which looks up the <div>, then loops through the children using element.childNodes . When the first element with .nodeName="button" is found, set an XPathVariable containing the id of the butt ...Show All
Software Development for Windows Vista Where is rsh?
Hi, I'm testing the use of Vista (Ultimate, for now) as a dev. platform in an existing complex* mixed environment. The biggest road block so far is that Vista doesn't seem to have rsh. We rely on our Windows machines to be able to run Windows scripts that rsh to Unix servers for key bits of info. (OK, maybe not the optimal method, but some of these scripts have been evolving for a LONG time.) I can see having rsh unavailable by default for security reasons, but we still need it on our intranet. What I have tried: - I have checked the KB, FAQ, and searched the internet in vain. - I have installed the SUA components and confirmed that rsh works great from a Korn shell; sadly, this is no help in a normal command window. If w ...Show All
Visual Basic How to load Sub Main?
I'm using VB.Net 2003. I want to load the splash screen then load Sub Main. How can I do that Public Class Form1 Inherits System.Windows.Forms.Form Dim WithEvents mt As Timer = New Timer Dim frmSplash as FormSplash = New FormSplash Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call mt.Interval = 2000 frmSplash.Show() mt.Start() End Sub Private Sub New_Part2( ByVal sender As Object , ByVal e As System.EventArgs) Handles mt.Tick mt.Stop() frmSplash.Hide() frmSplash.Dispose() frmSplash = Nothing ...Show All
Visual Studio Express Editions Ebay bidding program
Hi ... I am looking to write a simple Ebay automated bidding program that will place my bid at a specified number of seconds before the end of an auction. I know there are many similar programs available, but I really want to try to write my own. I have already downloaded the SDK, but I was hoping to find some sample code that I could use to get me started. Does anyone have any they could share or point me to Thanks... Once upon a time I lost a motherboard and they were only available on Ebay and competition was un beleiveable for those boards. I quickly learned how valuable the last few seconds are in an ebay competition. So in VB6, I wrote a timer program. You cut and paste the bid over time, ...Show All
.NET Development VS2005 - Passing Collection/Array as a Parameter to a Web Service
I have a web service that I'm trying to call using VS2005. I'm not understanding how to pass a collection as a parameter into my web service. (This does work in VS2003 by modifying the Reference.vb file, which does not exist in VS2005.) Here is a simple web service: <WebMethod()> _ Public Sub TestMethod(ByRef oTestItems As GlobalAccountsClasses.TestItems) End Sub Here is the TestItems collection along with the TestItem class: Public Class TestItems Inherits CollectionBase 'Retrieves an item from the collection by index Default Public Property Item(ByVal Index As Integer) As TestItem Get Return CType(List.Item(Index), TestItem) End Get Set(ByVal Value As TestItem) List.Item ...Show All
.NET Development setTimeout does not work in asp.net
On aspx.cs file: jscript += "<script language=\x22" + "javascript\x22>\n"; jscript += "var x;\n"; jscript += "x=parseInt(p.style.left);\n"; jscript += "shift_image();\n"; jscript += "function shift_image(){\n"; jscript += "x=x-10;\n"; jscript += "if(x<10)\n"; jscript += "x=500;\n"; jscript += "p.style.left=x;\n"; jscript += "setTimeout(\x22" + "shift_image()\x22" + ",100);\n"; jscript += "}\n"; jscript += "</script>\n"; this.ClientScript.RegisterClientScriptBlock(this.GetType(), "js", jscript); on aspx file: ...Show All
Software Development for Windows Vista Computer freezes when using Vista
I am testing Windows Vista RC1, and I tested Beta 2 too. In the two builds, I have the same major problem while working in Windows: unexpectedly, without doing anything special, the screen freezes completely, and I have to reset power. As far as I know, it doesn't create any report/log/debug to send. When I restart Vista, it reports some corrupted files (normally apps that I was running, shortcuts or folders). ScanDisk can't correct most of that errors, leading me to reformat the partition where Vista is installed. I have no problems installing Vista, and I have no performance problems while using it. I have no problem using XP too (XP is installed in a separate hard drive). I don't know if this is the right place to show my problem. If yo ...Show All
SQL Server Foxpro .net odbc data provider misidentifying strings as unicode
Since my foxpro OLE driver has been rendered useless by service pack 1 for sql server 2005 I am forced to use the .net data provider for odbc. I am importing a number of tables.. each time I add the DataReader Source to the dataflow and connected it to the OLE DB Destination I get a load of the good old "cannot convert between unicode and non-unicode string data types" errors... So I'm having to do derived column transforms, for each and every column that it coughs up on. Using expressions like (DT_STR,30,1252)receivedby to convert the "recievedby" column to a DT_STR, Some of these tables have 100 string columns.. so I'm getting a bit sick of the drudgery of adding all these derivations... Is there any way to tell this ...Show All
Visual Studio 2008 (Pre-release) do not find "From" statement in CTP JAN...
Hello, I am testing the CTP Jan and DLINQ. I have troubles with the following : 'Query for customers from London Dim q = _ From c In Customers _ Where c.City = "London" _ Select c "From" and others are not in the namespace system.data.dlinq - which namespace / dll do I have to use Thanks for any feedback! Regards, Fabian take a look here http://www.galcho.com/Blog/PermaLink.aspx guid=b6ea27d3-e633-42f5-8994-6e3b19ee2de3 hope this helps ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw 1 Line?
How can I draw a single line in XNA LineList dosent seem to work with a single line. Here is a simple class that should draw a single line(rest of the code missing). It gives unexpected results. If I increase the number of primatives in the DrawPrimatives call it draws more lines, even though I sent the buffer only 2 vertices. It must be using old data from the buffer. Can you just draw a single line Thanks public class Line : IGeometry { public VertexPositionColor [] vertices; private VertexBuffer vertexBuffer; public Line( VertexPositionColor vertex1, VertexPositionColor vertex2) { vertices = new VertexPositionColor [2]; this .vertices[0] = vertex1; this .vertices[1] = vertex2; } ...Show All
Visual Studio Express Editions Null reference exceptions
Hi People, I've been programming for a few years now and am still plagued with Null reference exceptions cropping up. I've nearly always managed to get round them by playing about with my code but never properly understanding HOW I've fixed it and why it works but didn't earlier... Can someone please explain in noob words why the following code returns a null reference exception :- Dim g As Graphics Dim text As String Dim font As New Font("Arial", 6, FontStyle.Bold, GraphicsUnit.Pixel) Dim returnValue As SizeF text = "abcdefg" returnValue = g.MeasureString(text, font) Many thanks in advance ...Show All
Visual C# Anonymous Methods
Hi Every body I've got a problem i wonder if you could help to solve that. I just wanna access to a control and edit it in another thread anonymously. I don't want to declare a separate delegate and then pass it as a parameter.This feature has included in .Net 2. thanks a lot. Your problem is the compiler doesn't know what kind of delegate to create. You can't just create an anonymous method of type Delegate, it has to be a specific type of delegate. That is why I often use the System.Threading.ThreadStart delegate type in these kinds of situations. ...Show All
SQL Server How to integrate Oracle with SQL Server 2005 by link server?
please tell me the best way thanks :-) ...Show All
Visual Studio 2008 (Pre-release) WCF security demos - where are them?
In WCF security model there are a lot of possibilities. Using different Tokens. (x.509, Usernames Password, Custom, Kerberos…) Using a security session. Using different authentication managers (ASP.net / others) Using different bindings with different tokens. Using different encryption and signing. Authorization in the end of the pipe (permissions) and in the beginning. Using configuration and imperative coding… All theses should be demonstrated in different demos. All I can find are very simple and few demos. Where can I find all the rest Manu (manu@sela.co.il) There are samples in the latest WinFX SDK that cover most of these scnarios. The SDK can be downlo ...Show All
