Nick Tompson's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XFileLoader.cs
Hi, I wrote a little class for parsing X-Files (text mode only). It currently reads: - frame hierarchy - frame transforms - meshes (position,normals,texcoords) It's only tested with x-files from the Panda Exporter and 3ds MAX. http://markus.rubicon-net.de/code/XFileLoader.cs and I used this here for test rendering http://markus.rubicon-net.de/code/XFileRenderer.cs Feel free to use it Very nice job, thank you very much. Some ideas/question/report: - Please make code load and show texture too. - Can we use DirectX Managed and it's Mesh/AnimationController/.. class with XNA If yes I did a class to load/show/anim mesh that we can use. - I try tiger.x from August 2006 DirectX SDK: at line 284 of X ...Show All
Windows Live Developer Forums .Net Web Control + Operation Aborted
I am trying to create a .Net Web Control, embedding the VE control + javascript within the control, exposing some clean properties/methods etc. so I can host from other pages. When I run the simplest of maps, I see the map appear then I get an "operation aborted" exception from the browser. Presumably this is caused by some VE Javascript running before the entire page hosting the control is complete or something Anyone have any ideas Hi Dave, Yup, I'm surprised there isn't more on this out there. The key is to make sure that everything is loaded before invoking the map stuff. I use the following Javascript: function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'func ...Show All
Windows Forms How to create window controls using database values
Hello everyone, my name is Brandon M. Hunter and I'm a programmer...(AAA introduction humor). Anyways I need to find a way to create controls at run-time (checkbox,radio buttons,etc) that is based off the number of records I have in my database. So for example, I have a 5 records that are defined as subjects that a school teaches, I need to create 5 checkboxes for each of those records Does anyone know I tried using this piece of code for example: Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 Dim stringTest As String For i = 1 To 4 Select Case i Case 1 stringTest = "checkboxvalue1" Case ...Show All
Windows Forms Problem validating a bound text control
I have a text box that is bound to a class property. I want to do the validation in the Validating handler of the text box. However if I set the e.cancel = true in the case of invalid data, the validated handler is not called which is correct, but the data is passed over to the bound control. This should not happen. The msdn help at http://msdn2.microsoft.com/en-us/library/ms229603(VS.80).aspx States the following. "When you use data binding, the data in your control is synchronized with the data source during execution of the Validating event. If you cancel the Validating event, the data will not be synchronized with the data source." ------------------------- So it should work as I expected. Here is the test c ...Show All
Visual Studio GetMethods from AuthoringScope is never called
Hi there, I'm working on MPF package containing the language service. I need to implement MethodTips feature. I've created the class inherited from the AuthoringScope class from MPF and override following methods: GetDataTipText, GetDeclarations, GetMethods, Goto. All of these except GetMethods are called ok but GetMethods is never called. Could you please propose the reason for such weird thing Hi John, As I understand we need to call these 4 methods - StartName, StartParameters, NextParameter, EndParameters - from our parsers. Managed Package Framework doesn't do it because it doesn't know how you parse the sources. Is it Yacc based parser or ANTLR or whatever else... See "Supporting IntelliSense P ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Speech / Voice API?
I'm sorry, I don't have the documentation in front of me at the moment, but if I recall correctly, XNA does not have any speech recognition capabilities at the moment. Will that be something that might be made available Since there is already a managed version of SAPI5 it seems like it could be done fairly easily. I suspect Managed SAPI is a wrapper over native code which means it won't run on the 360. Also XNA does not give any access to the microphone so the also won't work on the 360. On the PC you can use otehr APIs to get the microphone and yes you should be able to connect that to SAPI somehow. However XNA doesn't have anything built in to help you. ...Show All
Visual Basic Getting a task queued on a secondary thread to run on the main thread
I have a msg queue that runs on it's own thread that receives msg commands. Does anyone know of a way to launch a task or raise an event on the main thread from the queue thread My goal is to receive task on the queue and execute them one at a time on the main thread. Thank you for you time and kindness. You can just use the form instance to call Invoke, it will ensure that the delegate runs on the main GUI thread. You'll need different delegates for each distinct callback. ...Show All
SQL Server How to release large unused/allocated space
Hi, I have 6 filegroups that contain over 30 gigs of data. I manage the transaction log space efficiently by using a script and 'shrink database'. But, the allocated unused space of the data files are very large, over 30 gigs. The configuration is standard for all files: - Automatically grow file by percent - Maximum file size - Unrestricted How do I release the unused space Thanks, - gshaf Hi Gshaf, You can issue the DBCC SHRINKDATABASE statement with TRUNCATEONLY. This will shrink the database the maximum amount possible, and release the space back to windows. If you want to control how much space in the db left for growth, you'll need to issue DBCC SHRINKFILE and specify the amo ...Show All
SQL Server SQL Express Database Script
Hi all, I am totally new with this, so this might be a stupid question. But, I need to load a script for a database, and was told I could use SQL Server 2000 by running a new query. I downloaded SQL Server express, hoping I could use this too. But, what are the commands for loading this script, and where do I do that Is it at the C prompt I'd greatly appreciate your help! Thanks, Steve Go to the microsoft downloads site and download the Sql Management Studio for Express, it will give you a UI to run what you need. Other then that the command tools are located in the main directory for the SQL System under the Program Files directory... Called sqlcmd SQL Express Home Page SQL Expr ...Show All
Visual C# Running a console app from Windows Service
I'm building an application which uses the console interface of the Nokia Multimedia Converter and passing in switches to control the resultant file. I can currently run this in 2 ways: 1. Straight from the command line (manually). Using this method it takes about 4 seconds to complete. 2. Running an application which starts the Converter as a new Process and passes in the switches through the command line arguments method. This requires a similar amount of time to 1. However, I actually want to run the app as a Windows Service. When I start the Converter off as a new Process from within the Service and pass the switches/arguments (exactly the same code as used in 2) it can take up to a minute to return the resultant file. Can ...Show All
.NET Development Appending to the byte array
Hi, A Novice here. I am converting the unicode character into its integer value and converting it to a byte array. I want to append this array to my existing byte array Eg: Dim byffer() As byte Dim myString as String = "abcd" Dim I as Integer = 0 While I < myString.Length Dim charValue As UInt16 = Convert.ToUInt16(myString.Chars(I)) Dim temp() as byte = System.BitConverter(charValue) 'buffer = buffer + temp <--- How to do this part I += 1 End While Thanks in Advance, Noorul Hi, I am using .Net 2.0 and using List(Of Byte). Now, after filling all my bytes in the list, I want to copy to byte array so that I can send it over the the network. For that, I create another arr ...Show All
Windows Forms Tabs like VS2005
I wanted to ask if anybody knows any control I can use in order to have the same "tabs" as VS2005. I mean the tabs which appears when we are opening a form or a class on the top of the window which is displaying the code or the form. If you didn't understand about what i am talking, i will try to draw them here :) They look like: _________ _________ / Form1.cs |/ Form2.cs |_________________ And we are using them to navigate between the classes / forms which are open. Thank you. You can host all your current MDI child forms inside one of the TabControl's pages. Start with a main form that contains just a TabControl. Change the FormBorderStyle of all y ...Show All
SQL Server Problems with disconnected recordsets i Yukon
We have a VB6 application using ADO 2.8 connecting to SQL Server. We use disconnected recordset to load data to client-side. The client does updates in the recordset and then sends it back to server-side component that converts the recordset into SQL to update the database. No problems in SQL 2000 but on Yukon we get error when trying to update the disconnected recordset on the client. Error: -2147217887 Multiple-step operation generated errors. Check each status value. Error only occurs on recordsets which obviously won't work it was a connected recordset; for example a UNION sql. Is this the way Yukon is supposed to work Is there anyway to disable this new functionality to really get a ...Show All
Visual Studio Express Editions Need help for reading seiral port
Hi every one, I need help on hoe to makeCOM port for Visual C++ Express works. I am a beginner for Visual C++ Express. I have trouble for reading data from serial port. I would like to ask if any one could show me the way or give me some examples for reading data from in_buff. I have no probleme with sending out, the only problem is reading. Thanks mman06 Errrrrrrrr Actually the forum contains the words Visual C++ Express Edition in the title ...Show All
SQL Server Restart package automatically
Hi there, I would like to be able to automatically restart a package if it fails with a certain error. This is due to a job that fails every now and then due to a loss in connectivity to the database (when run again no issues). I know how to catch the message, but is there i way that i can in a script task or some other task restart the whole package when moving into the OnError event for the whole package. I know this isn't a great way to do it, but its just temporary until we can isolate the network issue that is causing the loss in connectivity. Thanks You would have to restart the packge host, not from within the package itself. A quick way of doing this would be to use a SQL Agent Job ...Show All
