usm2000's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. RenderTarget2D rendered with garbage all over it
Hi I've got a 2D project where the world is rendered to a 1024x1024 RenderTarget2D texture, then that texture is drawn to the backbuffer. It works fine on my laptop. On my desktop, however, the RenderTarget2D texture is drawn with an overlay of garbage consisting partly of a frame of a DVD I was watching on the other display. I'm clearing the RenderTarget2D texture properly, and everything is drawn properly, but when this texture is drawn to the backbuffer it receives a nicely alpha blended amount of garbage that covers the entire texture. So I can see everything rendered perfectly on the RenderTarget2D texture, it's just covered with translucent garbage. Sorry, I can't get any shots now. When I get home from work I'll get right on that, a ...Show All
Smart Device Development Restart a deployed application
Hello, I would like to know how to restart an application that was deployed, executed and closed in the VS2005's emulator. By now, if I finish the application it is not possible to run it again (at least I don't know how). I've not used a real device yet. But I want to know what will happen about this subject. Thanks, Alvaro You need to make sure application is terminated and not minimized (as it normally would on WM) to start it again. You can add exit menu to your application for debugging or terminate it via memory applet. ...Show All
Software Development for Windows Vista RenderStream() to uncompressed avi
I have a push source filter which grabs images and pushes them down the graph to a file writer. When I render the stream I use the ICaptureGraphBuilder2::RenderStream interface. Following the documentation for "Recompressing an AVI File" You set a video compressor by filtering through the system encoders, and passing it to RenderStream as IBaseFilter * pIntermediate My question is if you pass NULL as the intermediate filter, does this write "uncompressed" avi, since there is no "uncompressed" filter when you enumerate all the system encoders. I ask this since the exported movies aren't being imported into a video editor called "Pinnacle Studio", and wondering whether its that particular prog ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bullet Hell Tactics - Shoot'em'up game created with XNA (video and screensots)
Hey! For the last couple of months (5 to be exact) I have been working on a shoot'em'up (shmup) game with XNA and have now come to point where I can show what it will look like and how it will play. I have screenshots and a gameplay video that can be found at http://shmup.blogspot.com . (Remember that this is work in progress, and a lot of stuff is missing). Here you can also read about the development and progress of the game. I don't yet have a playable demo for download (sorry). Later on I will have a beta for download for those of you that wish to try it. It has been a WHOLE lot of work to get this thing play (I know maybe it doesnt look like much work when you see it but trust me - it is!) Almost all the gameplay element ...Show All
Windows Forms SetColumnValueAtRow passing currency manager, row number and button text in v1.0 not working in 2.0
Got my original code from http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/datagridcolumnstyle2.asp public class DataGridButtonColumn : DataGridColumnStyle { private void DataGrid_MouseUp( object sender, MouseEventArgs e ) { ... // check to see if the cursor is within the bounds of the button if ( cursorRect.IntersectsWith( buttonBounds ) ) { object ds = this.DataGridTableStyle.DataGrid.DataSource; string dataMember = this.DataGridTableStyle.DataGrid.DataMember; // retrieve the currency manager object from the form's binding context CurrencyManager cm = ( CurrencyManager ) this.DataGridTableStyle.DataGrid.BindingContext[ ds, dataMembe ...Show All
Visual Studio Team System KB913393
Hi I have the evaluation version of VSTS (DVD) I am unable to see any folder by the name KB913393 can you tell me where will I find it.. also in one of the posts it was said that the .Net version 2.0.50727.62. is required is that so. I hv version 2.0.50727.42. with me.. Plz help I'm goin crazy looking for the .Net hotfix on the net I found that you can download a cab file for Commerce server and in it is the hotfix. You can download the cab here and then use something like winrar to open it. You will see it in there. http://go.microsoft.com/fwlink/ LinkID=63706 Hope this helps -paul ...Show All
Visual Basic Remote Connection to mdb Database?
I'm looking for a way to connect to a remote access database located on a web server (ie. http://www.blah.com/database.mdb ) I have using VB2005 and this is for a windows application not asp. So far I'm having zero luck... If anyone has any info on how to do this or another way to access a database(of any kind) on the web I would greatly appreciate any and all info you can provide. This is the only thing holding me back from completing my program. Well I managed to get a little farther but now encountering an odd error message... when I try to create the data source i get the following error: "The underlying enumerator did not support enumerating objects of type "Table". I have no clue ...Show All
Windows Forms Move to next control located in other tab
Hi all, I have 2 tabs in the tab control. When I press Tab on the last control on tab1, how to move to next tab and appropriate control in the tab order similarly in reverse way with Shift+Tab. I want a generic way to implement for all screens. Thanks This is a better solution. But practically (in my scenario), tab pages have controls inside containers like group boxes, panels, etc. and the controls might be enabled and disabled dynamically based on user inputs. also, there are other controls apart from tab pages like ok, cancel, save... I tried a couple of alterations to code snippet like looping all containers etc..., but it is not working as per my estimation. the focus is not going to correct controls and tab pages no ...Show All
Windows Forms How to reduce flickering
Hi, I have a form with a panel. The controls in the panel need to be redrawn quite a few times which causes flickering. I have double buffered set to true but that doesn't help. Can anyone suggest how I can reduce flickering Thanks! I'm not sure which control your using. But double bufering should not flicker. Do you swap the buffer right after clearing the second one You should only swap when the buffer is fully drawned. Some control have a BeginUpdate that remove flickering. ...Show All
Visual C# Loading a Text File to Crystal Reports through C#.net 2003
Hi This is Sandeep. I am not able to load the text file to the crystal reports through C#.Net. i.e., If i choose the text file from my application i have to show the data in crystal reports, i am able to work on the Crystal Reports, but i am not able to set the file name to the Crystal Reports dynamically. Thanks ...Show All
Visual C# Is there any way to implement an application that close other running application???
help me if there is any way to implement an application that close other running application... thanks in advance.. adorer wrote: is it something like this ... for (int i=0;i<checkedListBox1.Items.Count;i++) { System.Diagnostics.Process myProcesses; myProcesses = Process.GetProcessesByName(@checkedListBox1.CheckedItems.ToString()); myProcesses.CloseMainWindow(); if(!myProcesses.CloseMainWindow()) { myProcesses.Kill(); } } actually this code is not working ... could any body help me modify it... Yes thats it but you dont need to check for for MAin window, Simply do myProcessKill() it'll close that application. Best Regards, Rizwan aka ...Show All
SQL Server DatePart Function
Hi, I'm curren't writing a stored procedure for my sql server express database and need to display the year part of a date field as '04' but using the DatePart function it will only display as '2004' Is it possible to get the Year part of the date to display showing the last 2 digits of the Year only I don't require another part of the date field just the Year part. All help is well come. Code been used is shown below: DATEPART ( yy , [Date] ) Hi, The datepart function doesn't have an argument to do this. You can do the following to get the desired result: SELECT RIGHT( DATEPART ( yy , [Date] ), 2 ) Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Pe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can i obtain extra information from a File using Content importer?
How can i obtain extra information from a File using Content importer Now i already have made a content importer for my ownfile format, that is ok because i se the importer to extract the texture Infromation from my file... But the problem Is that i have very valuable information in my file format in addition to the texture infromation, This is the code that i use to import the texture content from my files (jki Files): /// <summary> /// Importador de archivos JKI al XNA Content pipeline /// </summary> [ ContentImporter ( ".jki" , DisplayName = "Imagen De Multiples Frames JKI" , DefaultProcessor = "Procesador para arc ...Show All
Visual Studio Express Editions Read a text file line by line.
I have a text file in which I would like to read line by line and display each line one at a time in message boxes. Can anyone help Text file is below. 4 113 2 A1455 00320 025 1819 122006 155 I would like the output to read in each message box: Line 1 = 4 Line 2 = 113 Line 3 = 2 etc. well you can but it would be inefficient as you have to know the number of items in the text file, create the same amount of variables (you cant create variables on the fly) and then assign the item to that variable. you could alternatively store each line in an array either by using a strong typed collection or by an arraylist.... Dim theLines as new List<string>() Dim theReader as new StreamReader("filename.txt&qu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What are the recommended books and sites for learning C# so I can then make a game using XNA?
XNA has made game development easy, but to use the XNA framework you still have to be able to develop with C#. You don't have to be an expert, but you do need to understand the basics of Object Oriented development and the general syntax for the C# language. That's great for those of us who are already developers, but there are a lot of people interested in XNA, that are not already developers (and some of them are developers who just haven't given C# a try yet). Every time a new game developer hopeful comes into the forums frustrated because they don't understand the code or where to start, we give them a generic answer about taking some development classes, find some books on C#, check out some C# tutorial sites or point them towards To ...Show All
