tjswingle's Q&A profile
Visual C# Sockets
How can I handle over 1000 live sockets each client socket is almost always reading / writing few bytes is it really practical to create a thread for each socket what is the best wat do handle this kind of a problem thanks, Shimi. Do Async and don't worry about threads. When a work item gets added to the queue, a thread from the thread pool will automatically be picked and given the work. You don't have to manage threads - it's done by the system. The url I pointed to explains this clearly. ...Show All
Visual Studio How does one chart a percentofCount of a boolean field which is true or false, but not chart both?
I am sure this is a simple trick for someone who has used crystal reports much, but I am dumbfounded. I can display a count, percent of count (which are true and false = 100%) not a lot of help... but what I wish is to show a percent of count which are true. I am using typed dataset from sql server in Visual Studio. Please email me if you have an answer to my dumbness. Thanks in Advance! Hello, You can do this with a combination of fields including; a summary field, running total field and formula field. For a basic report without groups try the following: 1. Insert a Grand Total (count) on one of the fields in the detail secti ...Show All
Windows Forms msvcp77.dll
hello people,does anybody out there know how to fix this. cause i surely dont and its playing havoc with the computer ...Show All
Smart Device Development COM port remapping on Smartphone emulator
I'm stumped, I'm trying to connect a GPS unit to the emulator by mapping COM1 on the host machine to the emulators serial 0 (COM1:). I noticed in the documentation that COM1: is used for debug output, and I've also read in this forum that it can be used for connecting external devices. When I tried it with the image that came with the Smartphone SDK CreateFile succeeded but I got nothing from ReadFile. I then tried on a debug image I’ve been building out of AKU 2.6, and I started getting some data. However the data was missing chunks and occasionally filled with chunks of garbage. I ran the same test app on the desktop that I was runnin ...Show All
SQL Server Using a Parameter for ORDER BY Clause
When I try this SELECT * FROM db ORDER BY @ord in the query builder I get the window asking me to enter in the value for @ord. When I enter the column name that I want to sort on I get a error saying 'Variable are only allowed when ordering by an expression referencing a column name.' How do I create a query where I can use a parameter for the Order By clause. Actually, too many CASE expressions is fine. In fact, that is the easiest way to handle the scenario where you are sorting on different columns with different data types. This is due to the requirement that the data type of the res ...Show All
Visual Studio More Logon Failed exceptions
Good Morning, I have been monkeying about with the CR.Net stuff, and in a normal winform client can load a report that talks to an Access database via a DSN connection. However, that same report with virtually the same code will NOT load in a web application. It constantly gives me the logon failed exception: [LogOnException: Logon failed.] . F(String , EngineExceptionErrorID ) . A(Int16 , Int32 ) . @(Int16 ) CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) CrystalDecisions.ReportSource.LocalReportSourceBase.GetP ...Show All
Windows Forms Button moves in Child Forms
Why is it that my inherited form's buttons will move to the left even though the button is marked as protected ...Show All
Visual Studio Team System TF30177: Team Project Creation Failed
I am trying to create my first Team Project and this is the error I'm receiving from the wizard: Error Unable to connect to the specified source control server on the Team Foundation Server localhost. Explanation The Team Project Creation Wizard was unable to connect to the Team Foundation Server {0}. Without a connection, the wizard was unable to create the team project root directory on the server. User Action Contact the administrator for the Team Foundation Server {0} to confirm that the server is available on the network. Also, you might find additional helpful information in the project creation log. The log shows eac ...Show All
Windows Forms Creating graphs using vb.net
How can i create graphs using vb.net. any tips, links would be helpfull. thanx I've learned to use it mostly through trial and error. I would however be happy to post the basics to get you started. First, add a reference to Excel to your project. As long as Excel is installed on the development machine you will have &quo ...Show All
Windows Forms BindingSource control problem
Can anybody tell me, how can I bind a control to my object (i mean business object) at design time (It doesn't display my object in Data Sources window and I can't add it) . In Beta 1 there are no problems. I see it in Data Sources window. I've found the way how to solve this problem. My projects written in C# was ...Show All
Software Development for Windows Vista Are the Routing Compartment API's implemented?
I am trying to use the routing compartments, and the only way to use it seems to be via the routing compartment fucntions in IP Helper api's: http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/iphlp/iphlp/ip_helper_functions.asp I downloaded the January CTP Windows SDK and looked at the IpHlpApi.h but could not find the function protoypes! - Is there a 'newer' Windows SDK out which has this implementation - Is there any other way we can use the routing compartments - Can someone please tell me where & how to report this to the appropriate team thanks, Romil Please try the Beta 2 ...Show All
Windows Forms Inherite System.Windows.Forms.TreeView
I wrote this class public class RTLTreeView : System.Windows.Forms.TreeView { const int WS_EX_LAYOUTRTL = 0x400000; private bool _mirrored= false ; [Description("Change to the right-to-left layout."),DefaultValue( false ), Localizable( true ),Category("Appearance"),Browsable( true )] public bool Mirrored { get { return _mirrored; } set { if (_mirrored != value ) { _mirrored = value ; base .OnRightToLeftChanged(EventArgs.Empty); } } } protected overr ...Show All
SQL Server How to change the storage location of templates
Hi, I am looking for a way (if there's one at all) to change the location where the templates do come from in SSMS. I would like to have the template explorer pointing to a common resource (sharepoint or shared folder) for our department. But right now the location of these templates is always my personal profile folder. Unfortunately I did not find settings in the "Tools" > "Options..." to adjust the location. Does anyone know Thanks in advance, Frank Hi Dan! thanks very much for answering. Let's hope that this suggestion will make it into one of the next service rele ...Show All
Software Development for Windows Vista A new outlook on Windows Vista
Hi! I am fascinated by the way in which Microsoft plans to change the nature of operating systems radically. Vista promises a better future -- lots of new data exchange solutions, better information organization and an easier GUI. It looks very exciting to me. However, there is still some doubt whether Vista will really be able to define the new wave of technology. I've been a user of Windows for the past 9 years, and have been accustomed to it (one reason I'll accept Vista quickly). I'd like to point out a few things that Microsoft should improve in order to gain more popularity (and market share ). Of course, I'm not a Microsoft empl ...Show All
.NET Development Compare time
Hi, Im having a lil question. Im trying to compare 2 times with eachother. One time is in an xml file. The other one is the time at this current moment. If the time is older than 1 month, it should remove a whole table from the xml file. This is the code i produced so far: static void Main(string[] args) { try { DataSet xmlFile = new DataSet(); xmlFile.ReadXml("test.xml"); foreach (DataRow dateRow in xmlFile.Tables[0].Rows) { string Date = dateRow["Date"].ToString(); DataRow[] tempXmlFileRows = xmlFile.Tables[0].Select("Date = " + Date); ...Show All
