ChangNoi's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. My first game... Asteroid Defense.
In this game you are a ship protecting a planet from incoming asteroids. Controls: 360 controller: Left Joystick -- Move ship left and right. A -- Shoot Right or Left Trigger -- Change Weapon. Keyboard Left and Right Arrow Keys -- Move ship left and right. Up and Down Arrow Keys -- Change Weapon Space -- Shoot The weapon you are using is shown in the top left corner. The stronger the weapon you use, the less points you get for destroying an asteroid. Levels progress at timed intervals and more and more asteroids come down. You lose when one of them reaches the planet. Screenshot: http://www.rocketsoft.gm-school.uni.cc/uploads/ADScreen.JPG Game File: http://www.rocketsoft.gm-school.uni.cc/uploads/AsteroidDefense1.1.rar All in ...Show All
Visual Studio Team System Problems with source control
We have had recurring problems with Team Foundation Server not handling source code correctly. Changed code is being left out during the Check In process. Get Latest fails to get the latest checked-in source code. This has happened with Excel files. Some Source files have been updated and some have not been updated. Now we have a case where several days worth of work was lost after the use of: Get Specific Version, checking the "Overwrite writeable files that are not checked out" and "Force get of file versions already in workspace" Any ideas Here are some pointers :- Get Latest never work fine :) use g ...Show All
SQL Server Oracle REF CURSOR
Good day! Does SQL Server has aby analog of ORACLE's Ref Cursors ex: "type [name] is ref cursor" Thanks you! You could use the output cursors for your scenario. But there are more efficient ways to do this in SQL Server using temporary tables for example. In most cases you don't really need a cursor. So if you want to retain the exact logic, you could use output cursors but there are so many differences between PL/SQL (more richer programming language) & TSQL that it is not going to be a simple conversion. And there is no package object in TSQL so you will have to either create a schema instead of package but this just provides a namespace mechanism. You will have to handle permissions ...Show All
Visual Studio Team System TSD 1030 Error in Project
I have a number of TSD 1030 Errors in my DBPro project. However, the file (schema object) each one refers to are objects no longer in my project. For example, one of them refers to a stored proc that used to be in my project. When I go to Schema View and look for the stored proc, it's not there (because it's been removed). Can someone tell me why I am getting errors like this on schema objects that are no longer part of my schema Thanks - Amos. Hi Amos, you might check whether the .sql files are still in the file system. They shouldn't be if they were deleted. Regenerating the .dat file might be the answer to getting rid of the errors (see your other post What is in the .dat file ). However I ...Show All
Visual Studio Team System TFSSetup Account and Running SQL Server Services with Domain Account
I work for one of those large, large, large companies that has all types of work assigned to all types of groups with all types of standards. 1) In our company the DBA group installs database components with their domain user accounts and the System Admin group installs software with their domain user accounts. Instead of using an account called DOMAIN\TFSSetup, is there any issue with the DBA and System Admin installing the TFS software with their respected accounts (assuming they have all the needed permissions on the machines) E.g. DOMAIN\AppUserInstall for the Application Tier and DOMAIN\DataUserInstall for the Data Tier. 2) Our DBA's standards include running SQL Server "Service" accounts as Domain Users (DOMAIN ...Show All
.NET Development PLEASE Correct me about the Primarykeys
DataColumn [] keys = new DataColumn [1]; keys[0] = Personal_Info.Columns[ "Student_Name" ]; Personal_Info.PrimaryKey = keys; DataRow MyRow = Personal_Info.Rows.Find(STUDENT_NAME); ----------------------------------------------------------------- DataColumn [] keys = new DataColumn [1]; keys[0] = Personal_Info.Columns[ "Student_Name", "Lesson", Chapter", "Course" ]; Personal_Info.PrimaryKey = keys; DataRow MyRow = Personal_Info.Rows.Find(STUDENT_NAME, LESSON, CHAPTER, COURSE); ---------------------------------------------------------------- i am trying to set a primary keys depends on multi columns , i ...Show All
Windows Forms Datagridview and Textbox
I have a bound datagridview what i would like to find out is there a way to SUM the subtotal column and display the result in a textbox to show the sumed subtotal amount.Thanks barryt Here are 2 examples the first is where I get the SubTotal from the database. Note the SubTotal will not change if the unitprice or quantity change. public partial class Form1 : Form { DataTable dt; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { String strConn = "Server = .;Database = NorthWind; Integrated Security = SSPI;"; SqlConnection conn = new SqlConnection(strConn); SqlDataAdapter da = new SqlDataAdap ...Show All
Windows Forms Rename designed components programmatically
I'm implementing a control similar to the VS Document Outline as a TreeView object populated with components. I need to be able to change the component's name by editing the TreeNode's text. What is the correct way (so that the change registers with PropertyGrid, UndoEngine, etc) to programmatically change the name of a designed component Just changing Site.Name isn't good enough. Hi, If you do this inside of a DesignerTransaction and fire the right ComponentChanging/Changed events inside of the transaction, then things should work. Martin ...Show All
Visual Basic showing a picture on a form and storing in database
Hi all, I have created a simple form with several fields bound to a basic SQL database. I'm using Visual Basic Express and SQL Express. The normal data fields are no problem but I can't figure out how to store a photo in the database and then to show it on the form as part of the record. Any help would be appreciated! Thanks Dan 101 Samples (VS 2005) has precisely what you are looking for. There is an example titled 'Reading and Writing Images to a Database'. ...Show All
Windows Forms I don't understand Visual C# 2005 Express publish
I don't understand how publish works. In the Visual C# 2005 Express Edition IDE, instead of the old setup template like you had in Visual Basic 6.0, you have only "publish", and you can "publish" to a website, shared folder on a network, or some folder on your hard drive. Now, I have written some very simple little test apps and published them, then installed them on my PC and they do not function properly. My file dialogs don't work right because the application directory is so different from what it was when I was working on the project. It seems these setup.exe programs generated by the IDE's "publish" command install the application on my system in "C:\Documents and Settings\Owner\Local Setting ...Show All
Visual Studio Team System Design load test using
I want to design my load test to work like the following: Set load test to include webtest1 and use constant load of 3 load test users. For each load test user, I want webtest1 to create a new site only once (in my application) and 10 users. Then each user will login to this site until the load test finishes. How do I design something like this One easy solution to this can be to: 1. Create a scenario with a constant load of 3 users that creates the sites and users. 2. Create another scenario with 30 users ( or maybe 3 scenarios with 10 users each ) that logs into the three new sites. You can let this 30 user first run a "dummy" request with a long think time so you know that the sites are created before the login ...Show All
.NET Development How do I send mail using C#?
Does anyone have a code snippet that shows how to send mail from c# Dear Mohamed, I was very interested to try the code snippet using authentificated SMTP you gave us, but I cannot find and member Fields in the System.Web.Mail.MailMessage object. How come I am the only one Did I do something wrong Thanks, ...Show All
Windows Forms Binding to a Business Logic Layer
Hi, The question is more for designers and architects. The question is about working with data, specifically about Binding to a Business Logic Layer. With introduction of typed datasets in .net 1.0 and especially in .net 2.0 I started to ask myself - isthat really necessary to create a class that is a mapping for a db table. I will explain what I mean. Take for example database pubs , table authors. With basically one click VS2005 creates for you a typed dataset, let's call it authorsDataSet , which incapsulates a complete object model of authorsDataTable , authorsDataRow and even multiple tables with their relationships. Notice that authorsDataRow IS an complete object model of an author. Besides, there is a authorsTableAdapte ...Show All
Visual Studio Web project deployment options
Hi. We have a coulple of web projects that we've been building and deploying using team build & web deployment projects. We now want to switch gears and deploy these websites uncompiled so that some changes can be more easily updated. My question is how do we do this I've tried modifying the team build to copy the source directory for the website to the deployment location. The copy works, but the site now gives the error ' The directory '/App_GlobalResources/' is not allowed because the application is precompiled. ' I'm a bit of a .net newb and don't understand what constitues a precompiled vs. uncompiled site. I've considered using the 'Publish Web Site' feature, but that appears to publish from my local workstation instead ...Show All
Smart Device Development Getting Contact information from Speed Dial database entries (WM5)?
Hi, I am attempting to get information from the speed dial database in WM5. I have managed to access the "speed.db" database. I can get the DisplayName and Index for each speed dial entry (I'll post the code if anyone is interested). However I'm not sure how to get more information. I'm assuming there should be an OID in the speed dial entry that is associated with a valid Outlook Contact. However I'm not able to find this information. This webpage shows what speed.db "should" look like. There is an "object id of contacts entry", which I tried to use with "GetItemFromOid" to get the Contact, but it just returns invalid results. Does anyone have any ideas Thanks Some code: // read the r ...Show All
