JIM.H.'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Questions about using xbox 360 controller on my pc.
I have a few questions about using the xbox 360 controller on my computer. first of all, on the "how to test the xbox controller for windows" help page, it says when you run "joy.cpl" it should give you a game controllers window that says "xna gamepad", mine just says gamepad (controller), does that matter i want to set my controls so that x = button1 instead of 3, a = button2 instead of 1 and b = button 3 instead of 2. is there a way to do this i've been playing madden 2003 with the gamepad and some issues i've had is that the controls keep resetting and won't stay the way i want them to. it also won't let me configure the right trigger and left trigger in the game, it doesn't respond when i press them. are t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. precise collision detection
Hi, this is my first directx project and i am having some trouble with collision detection i want to detect collisions between irregular objects and using bounding boxes or spheres around the whole object isn't precise enough i need for example to detect collisions between a ball and a bowl (eg the ball hits the inner wall of the bowl, bounces off and finaly comes to rest at the bottom of the bowl) Please reply, thanx For question about math and Physic you should ask the forum of gamedev.net in that section (math and physic) This forum is more for DX question As for collision your bowl will consist of many triangle So your problem is to have a collision between a ball and a triangle first Then you do the same test for ...Show All
Smart Device Development what is native and managed applications?
May I know what is native applications and what is managed applications. What is the differences between Thanks in advance! This forum is dedicated to device emulator. Since your question is not related to device emulator, it's off topic here. If you’re having a hardware issue, please contact hardware manufacturer or reseller. If you having an issue with 3rd party software, please contact respective software manufacturer or reseller. Otherwise please post to relevant forum or news group: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic Hint: read forums titles and pick the one best matching your question, don’t post to the first one you see. Also please try search engines, they ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Terrain component source code
The terrain is split into batches, one batch from every texture type. Each batch has a vertex buffer and an index buffer. It uses quad trees to find which tiles should be rendered. Once it has the list of tiles that are visible it populates the batch's index buffer. I'm sorry for the disgraceful lack of comments in the code, but here you go, a tile-based terrain component implementation for XNA. Download the file here: http://files.filefront.com/Terrainzip/;5526129;;/fileinfo.html For more information check out my new/empty blog: http://kukyona.blogspot.com I dont have a website so Im a little at loss on how to share this with you guys... so feel free to send me any questions or comments on a better place to put this. ...Show All
Visual Studio Team System Generate list of merge conflict
Hi all, I just wonder if there is a way that I could generate list of merge conflict in text, or cvs, or excel, ...before performing merge between 2 branches. merge /candidate only shows a list of changesets merge /preview shows (1) individual files (2) the exact change that will be pended in the target ...Show All
Smart Device Development deploy pocket pc program
i can not build or deploy my program!!! my file gives a Hello World in a client rectangle. As you can see it compiles as a win32. ------ Rebuild All started: Project: dddd, Configuration: Release Win32 ------ Deleting intermediate and output files for project 'dddd' , configuration 'Release|Win32' Compiling... stdafx.cpp Compiling... davidtwo.cpp dddd.cpp Compiling resources... Linking... Generating code Finished generating code Embedding manifest... Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\dddd\dddd\Release\BuildLog.htm" dddd - 0 error(s), 0 warning(s) ========== Rebuild All: 1 succeeded, 0 failed, 0 ski ...Show All
Visual C# Make end of statement ";" optional?
I think microsoft should make the end of line statement, (i.e. the ";") optional. If you program VB.net like I do and is inevitably forced to write/read C# code, having to write the ; after each statement is annoying. I know C/C++/java etc all have it but in an enviroment like Visual studio where the IDE makes life so much easier the end of line statement is unnecessary. Who agrees with me Daticus wrote: Just look at the express versions of C# and VB, VB has two fold more traffic, which means VB is more popular with up and coming programmers. True (probably, I don't know the actual numbers). However, you're missing the big picture here. Of all the world's programmers, 90+% use some form of Visual Basic (VB.Ne ...Show All
Smart Device Development delete setup files
Hello, I was wondering, how can i delete my CAB file after installation. and also my app generate some xml and htm for help and configuration purposes. After i uninstall the program those files are still there. is there a way to get rid of them after i unstall my program Hi JR, Are you sure they are self- deleting because after i install my app, the cab is still there even after a day or two. You mention special flags. what are those can you give me an example ...Show All
SQL Server dataset with parameterized top query
I have a report based on a dataset that has a "top()" statement in it. SELECT TOP (10) name, val FROM tab ORDER BY val DESC I wanted wanted to return a report with 10 rows as the default. But allow the user to change the default and regenerate the report with more rows. I tried the following; SELECT TOP (@N) name, val FROM tab ORDER BY val DESC Normally in VS2005, the paraemeters work fine for things like the WHERE clause. But when i do the TOP(@N) the query/report parameter synchronization messes up. If i manual go to the parameter tab of the dataset and configure the matching between query and report params it works. But doing anything to the dataset resets this. Its getting very tiring. Any advice for a ...Show All
Windows Forms bindingsource.addnew and .haschanges
I have a form that loads in a new state, but the user may decide not to add a new row, but will want to edit an existing row. When the form opens with no ID for the form, my code calls: BindingSource.AddNew() Even if no changes are made to the form, calling: DirectCast (BindingSource.DataSource, DataSet).HasChanges() This will always come up as having changed. Is there any way to find if there have actually been any changes after AddNew is called. Mark Dahl Gavin, Thank you for the response. I really appreciate it. However, the following code is run when the form loads: '// Header refresh If FormHelper.DBInt(FormID) > 0 Then EmployeeTableAdapter.Fill( Me .Emplo ...Show All
.NET Development Serializing an Object into a database Column
I'm trying to serialize a custom object into my database, Heres the code: /// <summary> /// Creates new user session /// </summary> /// <returns>Guid</returns> public static Guid InsertNewUserSession(CustomPrincipal principal, string connString) { Guid token = Guid.NewGuid(); using (SqlConnection connection = new SqlConnection(connString)) { MemoryStream memoryStream = new MemoryStream(); BinaryFormatter binaryFormatter = new BinaryFormatter(); binaryFormatter.Serialize(memoryStream, principal); SqlCommand command = new SqlCommand("upInsertNewUserSession", connection); command.CommandType = CommandType.StoredProcedure; ...Show All
Visual FoxPro VFP9 ToolBox Behavior: 'oApp.oToolBar.myTextBox.Setfocus' and pMyVariable Issues ?
(Dear Experts: Thanks in advance for any complete or partial responses) 1) oApp.oToolBar.myTextBox.Setfocus: ... I'm trying to .HideSelection of .Parent.cboMyDropList in the toolbar: i.e., hide the typing cursor (blinker): The HideSelection property doesn't seem to work in toolbar mode. 2) When "pMyVariable" is declared PUBLIC by oApp.oToolBar.myTextBox.doMyprg.prg, it doesn't seem to be read by myOtherForm.Activate: E.g. If type("pMyVariable")<>'L' myOtherForm.myOtherTextBox.setfocus Endif ...Show All
Visual Basic populating an Access database using visual basic 2005
I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. This helps... but i still dont fully understand it :(... I like the datagridview way better... but seeing as how many users will be using it i dont think that my boss will like it so much... unfortunately... I am going to do it both ways and see which he likes better... however, what i dont understand is: (i am only going to be asking questions from the insert into the database from textbox b/c i am pretty sure thats how he wants it) A) how does the O ...Show All
SQL Server Unable to cast COM object of type 'System.__ComObject' to interface type 'msforms.Control'.
I have recently installed Visual Studio 2005, and since then, my Outlook 2003 has started giving me an error. I use Business Contact Manager in Outlook, and when I double click on an Account or Opportunity to view it, it gives me an error and asks me to debug. If I click on debug, Visual Studio Just-In time debugger opens up and says "An unhandled exception ('System.InvalidCastException') occurred in OUTLOOK.EXE[2924]" I click Yes to open the debugger, and Visual Studio debugger opens with the following error: "Unable to cast COM object of type 'System.__ComObject' to interface type 'msforms.Control'. This operation failed because the QueryInterface call on the COM component for the interface with IID" Does anyone kno ...Show All
SQL Server Performance probelm with large table
I have a web page to allow user to create Sales Order. For this i have 2 tables, one for the informations (Sales Order) about the order and the other table (Sales Order LineItems ) contains the details of the order. For exemple for one order if i order 2 CD i will have 2 rows for this order in the Sales Order LineItems table. When i've created the page i've made some test by creating 100 orders. Everything was working fine. Now yesterday i've tried to create 100 000 orders and 400 000 details rows. Since i 've created all thoses order the performance are not good at all. When i tried to open an order on my web page it can take up to 20sec juste to load the page. This make no sense at all since all my queries return only information for one ...Show All
