JohnGBunch's Q&A profile
Visual Studio Team System check out all items programatically C#
Hi, I can connect to a TFS using this TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer("adteam"); lstBox.Items.Add("AuthenticatedUserName = " + tfs.AuthenticatedUserName); lstBox.Items.Add("ClientCacheDirectoryForInstance = " + tfs.ClientCacheDirectoryForInstance); lstBox.Items.Add("Culture = " + tfs.Culture.ToString()); lstBox.Items.Add("HasAuthenticated = " + tfs.HasAuthenticated.ToString()); lstBox.Items.Add("Name = " + tfs.Name); lstBox.Items.Add("SessionId = " + tfs.SessionId.ToString()); lstBox.Items.Add("TimeZone = " + tfs.TimeZone.StandardName); lstBox.Items.Add("Uri = " + tfs.Uri ...Show All
.NET Development How do I remove empty node with attributes ?
Hi I am using the below xsl to remove all empty nodes . But it is not removing the following node (Node with empty attribute) <LandArea Unit="" /> Also How do I remove empty attributes below <TotalConsideration ChattelsAndMoveables="" Goodwill="yes" Other="" Stock="yes">6</TotalConsideration> XSL Code < xml version="1.0" > <xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform " version="1.0"> <xsl:output omit-xml-declaration="yes" indent="yes" /> <xsl:template match="node()|SDLT"> <xsl:if test="count(descendant::text()[string-length ...Show All
.NET Development Remote MSI install using c# and WMI
Hi, I having a problem whilst trying to install an application on remote machines using WMI. The code im using seems right, but it just isn't working. Can anybody,please, help point me in the right direction Or maybe post a link/script i can have a look at Just to note the strings.. _DOMAIN _USERNAME _PASSWORD _MSIPATH _ARGS _MACHINE are all set correctly before they are passed to the method... Here is the code I'm working on...The thing is it doesn't throw any Exceptions at all, but it dosen't work either. So i am at a bit of a loss as how to fix it... Any help at all would be greatly appreciated. CODE: ----- public void installMsi(string _DOMAIN, string _USERNAME, etc, etc) { ManagementScope ms = null; // Connect ...Show All
Windows Forms How to create shortcut through command prompt?
Hi i am using windows XP professional version. I want to write a batch file that creates a shortcut in Desktop. I don't know the exe or the command to create shortcut. Can you help me Have a look at following, it should help you http://www.robvanderwoude.com/index.html ...Show All
Visual Basic TCP/IP clients, listener, and servers
I was wondering if anyone had a good example of a TCP/IP server VB.Net application using TCPclient and TCPListener that you could send me. I need to develop an application that acts as a TCP/IP server waiting for TCP/IP client connections. All of the connections have to be maintained and any received command has to be processed and status information needs to be returned to the clients. Tony Is the protocol something you can modify It looks like the protocol is giving you some difficulty. For example, if a client connects, looks at the status, and disconnects, this should be a specific protocol pattern that the server knows about, and knows that the client will disconnect. This protocol is similar to, s ...Show All
SQL Server Query in dataview/update form
Question related to Visual Basic Video Lesson 09 (Databinding.wmv) by Bob Tabor. Made a table and a UI form according to this lesson (table colums: CustomerID, FirstName, LastName). Is it possible to use the same or an identical looking query form to find "Bob" by typing Bob in the Fist Name textbox or "Tabor" by typing Tabor in the Last Name textbox as in FileMaker Thanks, Yes, it is possible, and quite often done. However, you will have to engage a different 'technique' than the one used to just display all the data. You may find one of the Visual Studio forums a better source of assistance on this task. ...Show All
SQL Server crossjoin problem?
i need to calculated the number of participants during a specific period for a give club. the member table contains the following info: member id, club id, starting date, ending date, etc. i have created four named calculations: starting year, starting month, ending year, ending month. starting year and starting month are part of the hierarchy starting period while ending year and ending month belong to the hierarchy ending period. i defined a basic measure: count and a calculated measure: numberofparticipants. the calculated measure is defined as: sum(crossjoin([starting period].currentmember.parent.firstsibling.firstchild:[starting period].currentmember, [ending period].currentmember:[ending period].currentmember.parent.lastsibling ...Show All
Visual C++ Problem with Visual C++
Hi, I installed Visual Studio 2005 and it was working perfect till yesterday. I installed another SW Development (DevCpp) to study the differences. The problem is that now when I try to create a project with Visual C++ it hangs I can’t do anything. I tried to uninstall both and reinstall Visual Studio 2005 only, but still same problem. Anyone can help Thanks, regards I'm having a hard time understanding why a DevCpp-install should mess up the VS project generation. It sounds to me like a common dialog problem (or similar), more so than an issue with VS. Have you got any problems with other parts of Windows ...Show All
.NET Development How to perform nested sort?
Hello, Could someone pls help me with the xsl:sort and xsl:for-each instructions. I have an input file with sets of x,y pairs and would like to sort the <point> elements by x then y within each set. I can do simple sorts but not sure how to take to next level. Thanks, Tad < xml version="1.0" standalone="no" > <root id="theroot"> <set id="1"> <point x="3" y="3" /> <point x="1" y="2" /> <point x="9" y="2" /> <point x="6" y="0" /> </set> <set id="2"> <point x="2" y="2" /> <point x="2" y="5" /& ...Show All
SQL Server Simple flat file import
Boy, do I need HELP! Have a simple csv file that I need to import. Worked fine in sql2000; I put it into dts to execute on a monthly basis. Makes connection, db connection, table creation fine, but stops at validation of flat file Basically, I want to go out and get a flat file, drop the existing table, and create the table, and import the information from the flat file. Not a complicated table of about 30,000 records. Create table [db].[dbo].[tblPatient] ( [patientID] into not null, [chartID] varChar(15) null, [doctorID] int null, [birthdate] datetime null, [sex] varchar(1) null, [raceID] int null, [city] varchar(100) null, [state] varchar(2) null, [zip9] varchar(9) null, [patientTypeID] int null, [patName] varchar(100) null) Be ...Show All
SQL Server sp problem
hi, See the follow scenario, table names in red. first field is pk, and same field names in other table are fk. now what i need to do is some rules when setting a bill to discarded, see last table. okay i need to do that via sp. the rule is simple: A bill can be discarded as long as it does not change the costing total on which it figures , that means it need to be replaced, this is something like a chain reaction. see the structure is broken, a bill is decomposed into a lot of bills, then distrubuted on a lot of purchase orders, and then ech purchase order can have multiple costings. Bill BillID Date_ SupplierCode BillType TypeCode Total Currency ROE payment_or_bill bill_detailed BillID_Detailed BillID AmountType Amo ...Show All
.NET Development Debugging multithreaded code
I love a lot of stuff about the VS2005 IDE, but what I don't get is why it is utterly useless for debugging multi threaded code. I've reinstalled my OS a few times now on this notebook, so the IDE has been installed a few times too. My WinForms app is multithreaded, and whenever I go into multithreaded code, breakpoints take ages to work, then the variables can no longer be viewed, and restarting just hangs the app. How is this possible I'm using the MS flagship product and debugging with message boxes !!! Hmm, I'm definately not seeing what you're seeing. I debug background threads, asynchronous delegates, etc. all the time; include breakpoints and viewing variables. I don't find it any slower than debugging single-threaded code ...Show All
Microsoft ISV Community Center Forums VBA script not accessing another workbook
I have written a simple application for user that pulls information from another workbook. When my workbook is open, the source worksheet cannot be accessed, but when I shut my workbook down, the source workbook can be accessed. This was written using office 2003 but was saved in a 97 to 2003 format and the user is using windows xp. This is happening on the user's computer but not on my own which is on the same network. Sub populate() 'total reps in team a at cell 2,9 'total reps in team b at cell 2,10 Dim repsa As Integer Dim repsb As Integer Dim monthcaps As String Dim monthproper As String Dim monthint As Integer 'monthint = Workbooks("Team Competition").Worksheets("Main").Cells(2, 12) monthi ...Show All
SQL Server Installation error an error occured during move data process: -145...??
hi all.. please any one help me in installing sql sp4 in my w2k server machine having sp4 and all the other updates.i tried installing sql sp3 and newly downloaded sql sp4 but shows an error at 97 % of installation that "an error occured during move data process: -145" its really urgent ....please thanxz in advance thanxz bass for the reply..i installed sql server analysis service and installed the service packs..its now ok...Solved errors..thnk god but i want to know more about the error..i googled it...nothing meaningful... ...Show All
Smart Device Development Using FolderBroswerDialog class example in unmanaged C++ code
Hello I would like a FolderBrowserDialog in my application which is written in unmanaged C++ using wince 5.01 Smartphone SDK. I read that it's not possible to use managed code in unmanaged C++ wince projects so I wonder how I should solve my problem. My plan was to use the example from http://msdn2.microsoft.com/en-us/library/5db6b0zy.aspx but since I'm not able to use the C++ example ( I get the /clr error because it's managed ) I don't know which way to go. Is there anyway for me to perhaps create a C# or VB project containing the example code and have that compiled into a lib that I include into my unmanaged C++ project or perhaps linking it directly somehow What other options are there for me to obtain a FolderBrowserDialog in my app ...Show All
