Gwyn Williams's Q&A profile
Windows Forms my own game server
Hey Guys, I wanted to create my own game where people can upload their own AI fighters similiar to how thing one is setup. I'm really new to all the assembly and dll stuff. Any suggestions on how to load and process the individual dlls that people upload, or point me to some code Essentially I want to know how to: (1) Create a set&nbs ...Show All
Windows Forms Calling MsgBox inside a TabPage's Validating event
I have a form that contains a tab control. I want to perform (multi-field) user input validation when the user changes tab. If the user input is invalid, I want to display a MsgBox. However, whenever I call MsgBox inside a tabpage's Validating event, this seems to affect the behavior of the comboboxes on that tab page. To see what I mean: 1. Create a new project 2. Create a form 3. On the form add a tabcontrol with 2 tab pages 4. On the first page add a combobox with a few items. 5. Handle the first tab page's Validating event this way: Private Sub TabPage1_Validating( ByVal sender As Object , ByVal e As System.Compon ...Show All
Smart Device Development Serialport XON/XOFF Handshake State
Hello all I found the following problem/speciallty in SerialPort I/O with XON/XOFF handshaking. When the SerielPort is opened and set to xonxoff handshaking it is ready to send files, so it is in xon state. When I send a file to the reciever and my device recieves an xoff after the transmition is complete it is then in xoff mode. After this I can't send anymore files because the port is blocked in xoff and my reciever won't send an xon to start. The other thing is I don't know wich state it's in. I have to close and reopen the port to get back into xon mode, then I can send the second file. Does anyone know if the serialport ...Show All
.NET Development Datasets aren't finalized after leaving the scope
Hi, we discovered a strange behaviour concerning garbage collection of datasets. Because our application needs a tremendous amount of memory and constantly allocates more and more of it we are counting the instances of our objects in memory. Thus we able to determinate if an object is finalized by the garbage collection. Basically most of our objects contain these code snippets in the "new" and "finalize" methods: Public Sub New () MyBase . New () TestClass.SharedCounter += 1 'Shared variable of integer End Sub Protected Overrides Sub Fina ...Show All
Visual Basic Database error when running program on a different machine
Hi I have just purchased a new computer instead of my old one, and i would of course like to continue working on my application on this machine.. So i installed vs2005 proffesional on this machine and put my program folder on the same harddrive. Theres no problem opening the program and it can easily run and show the forms and everything.. Except when it has to connect to the database. I use access and the oledb connector. When the program has to execute the command con.open() it stops and promts that there is an oledb exception unhandled and it has no error for it or something like that. But i gives this error code: REGDB_E_CLAS ...Show All
.NET Development Problem with reading XML document
I have a XML document: < xml version="1.0" encoding="utf-8" > - < rdf:RDF xmlns:rdf =" http://www.w3.org/1999/02/22-rdf-syntax-ns# " xmlns:dc =" http://purl.org/dc/elements/1.1/ " xmlns:sy =" http://purl.org/rss/1.0/modules/syndication/ " xmlns:admin =" http://webns.net/mvcb/ " xmlns:cc =" http://web.resource.org/cc/ " xmlns =" http://purl.org/rss/1.0/ " > - < channel rdf:about =" http://www.etv.ee/ " > < title > etv24.ee - online </ title > < link > http://www.etv24.ee/ </ l ...Show All
Visual C# Sorting Algorithms
Hi there, Does anybody know why the QuickSort algorithm (found at the end of the article at the below link) is substantially slower than the ArrayList.Sort() method http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnaa/html/getstart_vcsharp.asp I tried both out on about 420,000 strings (within which there were some duplicate strings) and the above algorithm took 9 seconds and the ArrayList.Sort method took just 1. Any ideas Thanks, James ArrayList.Sort() uses the same algorithm, so it's probably a matter of overhead: ArrayList.Sort() can work directly on the array (i.e. u ...Show All
Visual Studio Team System TFS Source Control Bug
If you check out a project for editing, add an object (form, control, class), then delete the object for any reason before checking project in, you will get an error that the file can't be found for the check-in process. I need a workaround for this. How do I check in my changes without that file The only solution I found was to undo all pending changes which deleted all of my code changes in the project, then check back out and re-do all my work. Not good. There will be another CTP (Community Technology Preview) in the next month or so but it won't be a "tested release" so I wouldn't use it for production deve ...Show All
.NET Development active application handle
I am trying to transport a vb6 program to vb2005. In vb6 I could use API's to do things like get a handle for the active application (enumWindows), get the location of the active application ( GetWindowPlacement ) , and the title text of the active application ( GetWindowText). I have spent several days looking but have not been able to find anyway to duplicate thes functions in vb2005. The API's don't want to work in vb2005. Am I missing something or do I need to go back to vb6 to get the same fuctionallity Does anyone have any suggestions" Thanks Dick Hi, Yes ...Show All
SQL Server BOL Profiler Event Category Duplications?
Good afternoon all I'm creating a table drawn from all the various books online for SQL Profiler event classes and have discovered seeming duplicates in the SQL 2005 BOL topic " SQL Server Event Class Reference" (which appeared AFTER the December update): Broker:Forwarded Message Sent - EventClass 190, designated as Always 190 Progress Report: Online Index Operation - EventClass 190 Data File Auto Grow event class - EventClass 92 Log File Auto Grow event class - EventClass 92 Data File Auto Shrink event class - EventClass 95 Log File Auto Shrink event class - EventClass 95 Anyone else discovered this or ...Show All
Microsoft ISV Community Center Forums Publishing Scorecard in BSM
Hi all, I installed business scorecard server and builder in the same sharepoint server and installation went well. I did a sample scorecard and published it. I clicked "Publish All" and it went through. Where do I see the published scorecard I'm sorry but I'm really new to BSM. Please help. Thanks in advance. Regards, Kenny Extra info from the support engineer... I also have a series of screen shots going through each step in the process. Since I can't post them here, please email me at budsup@microsoft.com so that I can email them to you. This is the step by step instruction for BSM 2005. W ...Show All
SQL Server Cannot connect to Database in Server Management Studio
I currently can't connecto to my database in SQL Server 2005 (enterprise) but as soon as I try to use any functions, I get cryptic errors found below. I am about to pull my hair out. Everything was working fine for around 4 days and now everything just blows up. I've tried using both sql authentification and also windows: Errors I'm getting (print screens): http: / / www. photopizzaz. biz/ junk/ sqlserver_ 2005_ errors_ and_ resolutions. doc SQL logs: http: / / www. photopizzaz. biz/ junk/ logs. txt Event log errors are: Event Type: Error Event Source: MSSQLSERVER Event ...Show All
.NET Development How to tell if a specific CultureInfo designates time with post meridiem or "military time?"
Hello, I'm looking for a boolean somewhere which tells me whether a specific CultureInfo object requires the meridiem notation (AM/PM) or uses a 24 hour designation Should I check the DateTimeFormat.PMDesignator for null There should be a better way.... I hope. Thanks! Kevin So then, it would be something like this public static bool UsesMilitaryTime(DateTimeFormatInfo dateTimeInfo) { return string.IsNullOrEmpty(dateTimeInfo.AMDesignator) && string.IsNullOrEmpty(dateTimeInfo.PMDesignator); } Seems kind of hackish to me. Thanks, Kevin ...Show All
Smart Device Development sql connection error
I am getting following error: Error 1 The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Documents and Settings\Adnan\My Documents\Visual Studio 2005\Projects\Mobile5\Mobile5\Form1.cs 20 4 Mobile5 the line which caused problem is System.Data.SqlServerCe.SqlCeConnection conn = null; following are being used as reference using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System. ...Show All
Software Development for Windows Vista Patching software under UAP/LUA
I'm not sure if this is the proper forum, so please let me know if there is a more appropriate place for me to ask these questions. We have a patching system that is written to handle patching all of our games. It handles binary differencing, and also knows about our very specific file formats, and can work with products installed years ago, before Installer 3.0 was released. According to this document ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/msi/setup/least_privileged_user_account__lua__patching.asp ), patching while in a Least Priviledge account requires installing using Installer 3.0 from removable me ...Show All
