Lee Hudson's Q&A profile
Visual Studio Pin, Share, Branch troubles
Suppose the scenario below: Project P1 has a File F1 with 5 versions ( 1 to 5 ) and version 4 is supposed to be shared, branched , modified and finally, merged into version 5. Steps 1.Version 4 of file F1 in Project P1 was pinned. 2.Project P2 shared the file, that had been branched immediately after the share operation. So far, the version of file F1 in project P2 is the 4th one of Project P1. 3.The file F1 in project P2 was checked out , changed and checked in, creating a version 2 of the file in Project P2. 4.The pinned version of the file F1 in project P1 was unppined. 5.After all, the file F1 in project P1 was selected and the Merge Branch operation was executed Normally, VSS should perform a Visual Merge be ...Show All
Visual Studio PLK Request taking a long time
Hi, I applied for a PLK yesterday at 11am. I have still not recieved a reply regarding the application. I was wondering how long it usually takes Thanks. Ben. In my experience this takes between 2-3 days. One thing you may want to do is to check the website to see if your key has been assigned, as last time I used it the website was not emailing you when this happened... HTH, -Victor. ...Show All
.NET Development Use the same instance of web service proxy or create a new one for each call
What's the general recommendation Use the same instance of web service proxy for all calls or create a new one for each call In first case the same web service proxy instance may be kept alive for hours! Thanks... Hi forum, I have a related question regarding the instancing of webservices. My question is however regarding how the webservice is instanced on the server side. I am of the understanding that a webservice class is being instanciated and disposed again with each request - is this right I am currently doing a project where i must localize a webservice classe. The culture is dictated by the calling webapplication (an asp.net application). I have considered whether to use soap headers to convey the culture information to the ...Show All
Smart Device Development GPRS Connect at Startup
Hi again (again), Last question, I promise. I'm looking to start the GPS up wen the device starts. I don't mind changing hte registry for this, or doing it programatically. All the stuff I have found is either for C#, or the registry info doesn't exist in my phone. Once again, any help would be very appreciated. Cheers, Dan. haha, I had that, but it was throwing errors. I realised later why, but never put it back in, thinking the way I created the variable would take care of the size parameter automagically. Anyways, I added that in, and it still didn't solve the problem. I didn't bother checking the HRESULT cause if it didn't work, the errors for HRESULT didn't seem like they'd be much ...Show All
Windows Forms --to attach a particular column to datagridview
Hi, Is it possible to attach a particular column ( all row values) from a datatable to the datagridview control. thanks, Venp What do you mean If you want to add the content of a data table to the grid, set the grid's DataSource property to the table (or go through a binding source) and databind the columns to the columns in the dataset. A whole bunch of good resources, including numerous books, that could really help you out: ASP.NET 2.0: http://quickstarts.asp.net/QuickStartv20/aspnet/ Winforms: http://www.windowsforms.net/ and http://samples.gotdotnet.com/quickstart/winforms/ The online MSDN Developer's Guide for Windows Form Applications is also indispensible: http://msdn2.microsoft.com/en- ...Show All
Visual C++ Converting DWORD to char*(a string)
Would be grateful if anyone could explain how to convert DWORD to char*. I have an IP Address in DWORD form,and would like to pass it to connect function using inet_addr() for which I need the IP in string format. Thank you Try using the inet_ntoa function... ...Show All
Visual Basic Selecting a TreeNode by RIGHT CLICKING on it, I m using VB.Net, VS2003
causing the AfterSelect() TreeView event by right CLICKING the TreeNode I m using VB.Net, VS2003 The AfterSelect event [say, Private Sub TreeView _AfterSelect() ] is called when we first time LEFT CLICKS a tree node in the treeView, right clicking the node doesn't selects the desired node. How can we cause the system to select the desired node when we RIGHT CLICK on it Also can we create a Node_Click event for treenodes / treeview in VB.Net [like there was one in VB6] Also if this post is not relevant to the thread topic, please guide me where should i ask questions about configuring various controls You will have to to it yourself: Private Sub TreeView1_MouseDown( ByVal sender As Objec ...Show All
.NET Development how can I show the search progress?!
hi i am using c# and ms access and i have a search functionality in my app... i am wondering what's the concept behind showing the search progress by a progress bar thanks for your help in advance pseudo: MyProgressBar . Value = CInt (( CurrentRecord * 100) / TotalRecords ) ...Show All
Visual C# Need help playing wave file.
Hi, I am building an application that play multiple wave files continuously. I learned that .NET 2.0 framework provide us with PlayLooping() from System.Media namespace. However this method does not allow me to play multiple file. Anybody know any solution or links that might help me Thanks Thanks for the suggestion. I tried using it and it works. I still have a question though. How are we able to detect when a file finish playing. I am playing the sound file with SecondaryBuffer. ...Show All
Visual Basic Need help exporting VB.Net variables/data to VBA macro
Hi I'm using VBA AutoCAD for drawing, but instead of defining parameters in VBA, I would like to take those parameters from VB.Net codes. Here is an example Sub CreateCylinder() Dim CylinderObj As Acad3DSolid Dim center(0 To 2) As Double Dim radius As Double Dim height As Double ' Define the cylinder parameters center(0) = 5#: center(1) = 5#: center(2) = 0 radius = 10#: height = 20# ' Create the cylinder in model space Set CylinderObj = ThisDrawing.ModelSpace.AddCylinder(center, radius, height) End Sub This VBA code will create a cylinder at co-ordinates (5,5,0) with radius = 10 and height = 20. I would like to know how to link or export these parameters from VB.Net to VBA AutoCAD for plotting. Many t ...Show All
SQL Server Creating Pull Subscription using T-SQL
Hello, i am trying to create a pull subscription to my publication using T-SQL. The pull subcription is created successfully but the problem is that data is not merged correctly. I mean when i run the agent ( despite of having data in subscription / publication ) the data is not merged and i get "No Data Needed To Be Merged" message. i run following sp in this sequence: At Subscrber: 1 - sp_addmergepullsubscription 2 - sp_addmergepullsubscription_agent At Publisher: 1 - sp_addmergesubscription Again at subscriber : Transaction for adding merge agent job. Regards, Dear Greg, I am doing same as what you are suggesting. That Script is so clear with proper guidance. i just run that on proper machine and D ...Show All
Software Development for Windows Vista WCS .NET 3 June CTP and IE7
I've installed the last .NET 3.0 June CTP . My installation seems ok and I can create some personal cards using the selector (with its new GUI :) Then I've tried to login to Kim Cameron's website and Microsoft Live Labs STS web site (the former one uses the HTML Object tag and the latter one the XHTML tag) Both trigger the selector... but only during 1 second and then it's closed. That's all :( Did somebody succeed in authenticating to these websites using WCS .NET 3 June CTP PS: This scenario runs well with the previous WCS version Beta 2. [updated] Here my configuration: - XP SP2 - Not fresh install of winfx (previous one was Beta 2) - IE7 b ...Show All
Visual Basic Array starting at 1
I'm redim a array to start 1 and to go to 600, does anyone know how i tryed using the "to", but never worked ReDim Preserve Array(1 to 600) In general using the 0 based arrays is recommended - VB (and for that matter C# afaik) doesn't support creating non 0 based arrays. If you really, really want to do so, you can use the array class to create an instance that isn't 0 based: Dim a As Array = System.Array.CreateInstance( GetType ( Integer ), New Integer () {600}, New Integer () {1}) Note that this array will not be strongly typed, so it will require several explicit conversions if option strict is on. ...Show All
Windows Forms Defaulting Values
Hi gang, Every once in awhile I get to ask a question instead of just answering them. I know that in my sub-classes for controls such as TextBoxes, I can avoid having the IDE stick extra code in the "IDE-generated" code for properties by setting a DefaultValue in the TextBox sub-class. Like this: public class MyTextBox : TextBox { private string m_MyProperty; public MyTextBox { this.m_MyProperty = ""; } [DefaultValue("")] public string MyProperty { get {return this.m_MyProperty;} set {this.m_MyProperty = value;} } [DefaultValue(typeof(Color), "Window")] public override Color BackColor { get {return base.BackColor;} set {base.BackColor = value;} } ...Show All
Visual Studio 2008 (Pre-release) Mixing DataContract with Serializable attributes
The documentation at http://windowssdk.msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer.aspx indicates that the DataContractSerializer will throw an exception when asked to serialize a class decorated with both the DataContract and Serializable attributes. However when attempting this myself I didn't experience any such problem. Is the documentation incorrect The reason I ask is that I need to be able to store objects retrieved from public Web services via WCF (i.e. decorated with the DataContract attribute) in the ASP.NET session state server (which requires the object to be decorated with the Serializable attribute). Has anyone (other than me) had any success o ...Show All
