leo123's Q&A profile
Visual Studio Team System TF Utility Exit Codes
Any chance we could get these documented for those of use you need to script against the TF CLI I can't find it in the docs either. 0 - success 1 - partial success: in RTM, this means at least something failed; in beta 3, it means either at least something failed or there was a warning, such as joe has the file checked out too 2 - unrecognized command 100 - nothing succeeded Buck ...Show All
Visual C# execute something by another thread CHALLENGE!!!!!
Ok i have a main thread and a second thread.. is a possible way to execute some code from main threa with the second thread, when the thread 2 is running why do i need this I developed a strongly server class.. it uses async mode .. and as you know the asyc mode is from another thread.. And i have an event that si triggerd when the data is finish to arrive.. So in my main form on the event when i change the datagridview.. and i get that exception.. cross thread.. The real problem si that i dont want to use the BeginInvoke or Invoke methods.. why imagine that void server_OnClient_Connect(object sender, Server.Client_Connect_Args e) ...Show All
Windows Forms binding COmbo Box to database
Hi, I am having trouble populating the Combo Box with the data returned from the Query. Here is my code Can any one please help and tell me what iam doing Wrong: OleDbCommand myCommand = new OleDbCommand("SELECT Name FROM myTable",myConnection); myCommand.CommandType = CommandType.Text; OleDbDataAdapter ad = new OleDbDataAdapter("SELECT Name FROM myTable",myConnection); DataSet&nbs ...Show All
Visual Studio Implementation for IVsMultiViewDocumentView interface for "Design" and "HTML" view
Hi, [Visual Studio Integration/Extensibility in C# question this] I am looking for a sample implementation for IVsMultiViewDocumentView interface for "Design" and "HTML" view for my custom editor. Even your code instructions would be great, if not a sample. Point me in the right direction. I have an XML file which can be edited/managed using my "Design" view and "XML" view will show the current underlying XML file. I searched msdn forums, groups and so far I don't have a complete picture. To avoid receiving a similer reply, I am adding links (all google search results) here which talk about this, but ...Show All
Windows Forms CHild close when parent form closes
Hi all, I have a parent form that instatiates and shows a child form. Is it possible to have the child form close when the parent form closes Is there a setting I should set for this to occur. Thanks for your time in this. I would have to agree that the web browser control is over complicating this issue. You certainly <b> ...Show All
Visual Studio Team System Package Load Failure connecting to TFS RC from TE
Hi there, I've just finished upgrading a Beta 3 install of TFS to Beta 3 Refresh and on to RC in single server mode. The install seemed to go to plan, I completed all of the items in the installation guide but now connecting to TFS from TE (either on the server machine or another machine) yields the messagebox: "Package 'Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage, Microsoft.VisualStudio.TeamFoundation.VersionControl, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has failed to load properly ( GUID = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} ). Please contact package vendor for assistance ....&quo ...Show All
Visual C++ error CS0229: Ambiguity between 'XX.Name' and 'YY.Name'
I tried to implement the following scenario in VC++ 2005 beta2: an object implements 2 interfaces, one defining a property get and the other defining a property set. This works perfectly well when implemented in C#. However, in C++, I get the compiler error message transcripted below. Here is the C++ source code: namespace NS { public interface class INamed { public: property String^ Name { String^ get(); } }; public interface class INameable { public: property String^ Name { void set(String^); &nbs ...Show All
.NET Development SQL UPDATE - "No value given for one or more required parameters"
I've used this structure in several other C# database programs with success, until this app. Now I'm receiving this: "No value given for one or more required parameters." The key is SAMS_ID. The data is text, no numeric fields. The code I used is below. I've tried removing the single quotes from around the date field and also from around any fields that contain numbers but still receive the same error. Anyone know what I am forgetting private void buttonEdit_Click ( object sender , System . EventArgs e ) { string strEditConnect = "" ; if ( buttonEdit . ...Show All
Visual Studio Team System How to move the $root repository to other driver (or location)??
Hi All, I created new project. There 2 issues I need somebody help me. 1. How could I find out the physical path of the $root 2. Can move it to other drive or to network mapping from other server Best Regards, I think you're right, he's asking about workspace mappings. Through the VS interface, you can view the workspace mappings (which area of the repository are mapped to which areas on disk) by bringing up the Manage Workspaces dialog (in Source Control Explorer, use the Workspace: drop-down and select the "Workspaces..." choice at the bottom, or use File | Source Control | Workspaces...). Once that dialog is up, select th ...Show All
SQL Server 2 questions from a newbie who's trying to work out if Service Broker is the right thing to use
1) I have the Beta Preview of Roger Wolter's book on the subject. Has anything major changed from the beta version to the full version (of the book as well as the product) 2) I want to build a front-end that queues requests for processing that is ultimately done by a standalone console application. The console app knows nothing about SQL Server 2005, so the database will have to fork/execute this app, pass it arguments on its command line, and pick up the result (written to either standard output or standard error) when it finishes. Is this possible with Service Broker If so, how TIA Andrew ...Show All
Windows Forms Howto: Insert Default Blank Item to DataBounded ComboBox
A very classic question for databinding of Combobox, but is there any easy way to do so in ADO.NET 2.0 Thanks, Q. How can I add a “null” or “DBNull” entry to my bound ComboBox When data bound, the Windows Forms ComboBox does not provide a general way to add a “null” or “not selected” value to its items list. The only generally supported way to do this is to add a “null” item to your data source list. Building on the previous states example, this would require an additional “null” row to be manually added to the States table. Sample: Adding a “null” value to a Lookup based ComboBox (VS 2005) ...Show All
Visual C# Open Files and Reading Certain Offsets.
What I'm trying to do is create a tag editor for a game, now the problem is that I have no clue how to make an app read certain offsets, say 0x04, 0x08, 0x0C and 0x20, and then to get thoose offsets to display in a certain text box. before a tag is opened: after a tag is opened: using System.IO; StreamReader sr = new StreamReader(@"c:\myfile.ext"); char [] buffer = new char [200]; sr.Read(buffer, 20, 40); sr.Close(); This creates a 200 character buffer, then reads 40 characters out of the file, starting in position 20 ( so, up to position 60 ) into the buffer. The rest of the buffer exi ...Show All
Visual Studio Team System Error deleting work item field
We created a field incorrectly and we would like to remove the field this way we can recreate it correctly. We tried to delete the field using the command line tool witfields: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies>witfields delete /s:mtlapplication4 Incycle.Common.BugPriority Result---> Incycle.Common.BugPriority cannot be deleted - it is used by the following project(s): TestProject (Bug) The TestProject is a project which we deleted successfully using the project delete utility. Any ideas, of how we can delete this field definition Is the ...Show All
Visual C++ Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document."
I have recently install VS 2005 Pro and I cannot get breakpoints to work properly in my C++ Win32 application. After compiling for Debug and placing a breakpoint, when I run my program the breakpoint indicator becomes a hollow circle with an exclamation point and I see the above message when I hover over it. This makes no sense to me because I have verified the following: 1. Yes, I have compiled for Debug. 2. Output for my program indicates that "Symbols loaded". 3. I see the .pdb file in my \<project>\debug\ folder with the correct build date/time. Curiously, I have created other new projects under VS 2005 tha ...Show All
Visual C# Reading an XML File, Changing some values
Hi All - I have this XML Document here. What I want to do is loop through each item, possible with multiple for() loops but I'm having trouble referencing data. Perhaps it is the way I have the data structured < xml version="1.0" > - < Device Address =" 192.168.1.1 " Location =" San Francisco " xmlns =" Device " > - < System SystemModelNumber =" OPT-2VT4DATR3ETR-A2/A3-FC " xmlns =" System " > - < Card CardNumber =" 1 " Temperature =" 50 &quo ...Show All
