Ted.'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Drawing just one pixel
Hello all, I'm just getting into XNA, and all I want to do at this point is create an object that will basically just represent one pixel on the screen, with a variable for RGB color that can be modified easily. Then I can simply draw the pixel to the screen, and change it's color if need be. Any help is appreciated. I haven't looked into this, but isn't there a way to get the memory of a texture and just treating that as the framebuffer like we did in the old days Then rendering that to a fullscreen quad ...Show All
Software Development for Windows Vista batching : IPendingWork.Commit
MSDN Says : " The workflow runtime engine calls the Commit method when its semantics dictate that the pending work in the work batch should be committed . When it reaches a commit point, the workflow runtime engine calls the Commit method on each IPendingWork object in its work batch; the workflow runtime engine passes the Commit method the collection of items associated with that IPendingWork object. Either all of the work in a batch succeeds or none of it succeeds. You should throw an exception if any of the work items passed to the Commit method in your implementation cannot be committed. Depending on your implementation, you may want to perform some rollback in your Commit method if it cannot commit its work items. If th ...Show All
.NET Development Please help with DES decryption - 'Length of the data to decrypt is invalid.'
Hi, I am attempting to Decrypt a file that I have, which has come from an outside source. The source says that it ' uses the 56-bit symmetric Data Encryption Standard ', and also ' The implementation was written so as to conform to MIT's libdes.' I am using the MS Patterns & Practices Cryptoblocks library to decrypt the file, but I keep getting the following exception, originating from the ' CryptographyUtility.Transform()' function, at line 10 (cs.FlushFinalBlock()). The exception thrown is 'Length of the data to decrypt is invalid.' Now, I have googled for this problem and have found some help, and typically people recommend to either use Convert.From/ToBase64, or they recommend to use ASCII.GetBytes/String(). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Earth Invaders 360 (including source)
Hi ! :) I love XNA Game Studio express, it's just great ! Thanks to the team ;) If i'm posting this topic here now, it's to present you my first (far from being complete) XNA creation. It's named "Earth Invaders 360" :p How to play : Left stick : move your ship Right stick : aim Right trigger : shoot Image : http://jvteamds.free.fr/ship1.PNG (note that the downloadable version has a background ;) ) Here's the file : http://jvteamds.free.fr/EI360_0.2.rar http://jvteamds.free.fr/EI360/EI360_0.1_source.rar For the ones doubting, I made the particle engine myself ! I didn't steal it from spacewar ! :) Please also note that this game will not simply be made of shooting asteroids, there will be ennemies....someday there will... Have fun ;) PS ...Show All
.NET Development How MDBG process Unhandled Exception
Hi All, I use MDBG to debug a .NET application, which throws Unhandled Exception from some code. MDBG could capture it easily. It give below hints. STOP: Unhandled Exception thrown Exception=... ... ... This is unhandled exception, continuing will end the process But i want to let debuggee popup up an Unhandled Exception Dialog, then give the user a choice about whether continue or quit. It is the default behavior when CLR meet Unhandled Exception. When i debug the application within VS2005, it will popup the dialog. But when i use MDBG debug the application, then type "go", the process will end immediately. So i want to know how to modify MDBG to get the same effect as VS2005 Thanks ...Show All
Software Development for Windows Vista New in Windows workflow:) please help me :):)
i have installed visual studio 2005 team suite,where windows foundation workflow is included. i have download some example from msdn which is "SimpleSequentialWorkflow: i have opened the project in the visual studio. but i dont know how to run this.or how to deploy this in any server.i am new in workflow. plz help me , how i deploy or run workflow application. download http://www.microsoft.com/downloads/details.aspx FamilyId=5DF74E3B-FB51-4A94-A11D-DFF70288A8BB&displaylang=en and try to run execute these alternativly learn more about WF on online virtual labs ...Show All
SQL Server Unable to View Cube/Dimension Data
Hello, I am new to Analysis Services. I have installed MSAS on SQL Server 2000, and am following steps described in the tutorial. I was able to create cubes and also process them. When I try to browse data in the cube or dimension, I get the error Unable to browse the cube <cubename> Unspecified error. What is the cause of the error and how to fix it Thanks Vani I am currently having the same problem. Unable to view cube data even after installing SP4. I tried unloading/loading AS and manually removing Bin content. ...Show All
Smart Device Development Regarding Storage Card Memory
Hi, I am developing smart device applications using CF1.0 on VS 2003. I need your help. I could get device memory information by using GlobalMemoryStatus() API. But i want to get Storage Card Memory information. Please send your suggestion or links. Thanx. M. GANESAN You can call the Native API GetDiskFreeSpaceEx using P/Invoke. A sample implementation should be available here . ...Show All
Visual C# Handle a meta refresh 0
I have a method of using WebRequest and WebResponse to post login info to a page and once i do i am given a response with: <meta http-equiv="Refresh" content="0;URL=http://..ADDRESS_HERE..."> To which I can not figure out how to handle using the two fore-mentioned objects! How does one handle this type of meta tag If needed I can post my code! --- william Yeah, I already have a method incorporated for handling the cookies; i also just noticed this site has different frames on the pages and I'm not sure if that has anything to do with my method not working! Another option I was looking into since this is such a pain in the butt, was to just use a WebBrowser control and have it hid ...Show All
Visual Studio 2008 (Pre-release) Adding a Home to Navication?
I have a simple browser like application, the user is navigating to different Pages. What I want to have is a Home button in the same row as the Back Forward buttons, which will return the user to the main screen. Additionally, I would like to place further controls there if it is possible, easy. How can this be done ...Show All
Microsoft ISV Community Center Forums "Bizzare" Sendkey Code in Excel
Following is my code... Range("A1").Select 'Select cell A1 Application.SendKeys "BIZZARE{ENTER}", True 'Enters BIZZARE in A1 and focus goes to B2 Application.Wait (Now + TimeValue("0:00:02")) Application.SendKeys "{UP}", True 'Again focus on A1 Application.Wait (Now + TimeValue("0:00:02")) 'Range("A1").Select 'Just in case {UP} doesnt work Selection.Copy 'Path 1 Range("B2").Select 'Path 1 ActiveSheet.Paste 'Path 1 Application.SendKeys ("^C") 'Path 2 Range("B2").Select 'Path 2 Application.SendKeys ("^V") 'Path 2 My code wanted ...Show All
Smart Device Development Beta of Microsoft Certification Exam 70-540
Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Isnt Sql 2005 Mobile Edition trhe same as SQL Everywhere Also, I ...Show All
SQL Server count function in a query
Hello SQL Experts, I have a Query which is giving me correct result. but i was interested in getting just the count of the Issues it returns. ----------------------------- select distinct T1.dbid,T1.id,T1.title,T3.name,T1.implemented_status,T69.name,T1.submit_dat-e,T1.abc_rank from ( ( ( ( ( issue T1 INNER JOIN statedef T3 ON T1.state = T3.id ) INNER JOIN project T2 ON T1.project = T2.dbid ) LEFT OUTER JOIN parent_child_links T48mm ON T1.dbid = T48mm.parent_dbid and 16780481 = T48mm.parent_fielddef_id ) LEFT OUTER JOIN testrecord T48 ON T48mm.child_dbid = T48.dbid ) LEFT OUTER JOIN sw_label T69 ON T48.available_in_version = T69.dbid ) where T1.dbid <> 0 and ((T1.issue_type = 'Defect' and T2.na ...Show All
Visual C# Visual Studio 2005 - conditionally suppress auto fomat
In VS 2005 editor, Tools --> Options --> c# --> Formatting is there a way to turn all this stuff off for a block of code I have this section of code defined, and someone goes and cuts and pasts the part of these decloration's thus reformatting them. I want to prevent this kind of stuff so its easy in the future to coloum select the constants and copy them out. is there an attribute or something that i can put around a region to prevent this kind of auto formatting or a add-in of some kind const int XAD = 15; const int XRD = 16; const int XLR = 17; const int NI = 18; const int CH = 19; const int CHE = 20; const int RECT = 21; const int RECTR = 22; const int TXR = 23; ...Show All
SQL Server Password Encryption in XML File
I am unable to encrypt password of sqlserver database in XML file by Package Configuration in SSIS. Yes in config file i have to put the password manually in config file.If i choose only connection string property in configuration wizard then it is working fine.But When i reset the server password then it fails.So i have to give the password.But unable to encrypt it for security reasons. ...Show All
