Jassim Rahma's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Moving the view in 2D games
Hello, I'm not sure if this will make sense but hopefully it will. Essentially I working on a 2D platformer as a way to develop a small 2D engine I'm working on that will hopefully help me when creating games in the future with XNA. The game is much like Mario, and like in Mario I need the view to follow the main character while moving non-player characters/enemies off the screen. I was wondering if anyone has developed a view-handling class or other code that would allow for a view to follow my main character on the X axis atleast while moving other objects off the screen while still allowing them to move relative their location. So while my character is running to the right of the screen, all objects are being pushed to the left until ...Show All
Visual Studio 2008 (Pre-release) RC1 with .NET 3.0 install error
I am getting two errors when trying to install the 3.0 WinFX runtime...I either get that I need to adjust in control panel because it is already installed or I get that I am running the wrong version of windows. In control panel I don't see any kind of WinFx check box and all available check boxes are checked...I want to use the xaml from wpf this is just getting in the way. Thank you for your time, Steve Scheberle I ran into some problems with the install as well. I receive an error message related to the windows communication part of the install. I finally got it to work using these steps: I ran the uninstall tool I rebooted I disabled my anti-virus, symantec anti-virus corporate edition I disabl ...Show All
SQL Server can'd find SSIS for installation in Server2003SBS-PR
I bought a new HP server with Windows 2003 SBS Premium. I also was told buy the company how installed the server, that they installed all the components of SQL. When another company came to install a new business software for us, they told me that the Integration services is not installed. We tried together to install the SSIS with no luck. When we run the Setup(or used Add/Remove software) we couldn't find the Integration services check box in the list of the setup. I also asked assistans from the company that i bought the server fromk, and they also couldn't understand where is it. We have an HP Proliant server, Windows server 2003 small business preminum SP1, SQL server 2005. I was told that without the ...Show All
SQL Server TRyign to extract Top 3 records using Partitioning
Hello, I have a table containing 3 columns Department Name, RiskScenario and Cost. I am trying to create a data extract that contains the top 3 Risk Scenarios (sorted by Cost) per Department. I tried using this sql statement in MSQuery but it doesn't work. Any ideas where I'm going wrong or if there is a simpler way to do this Select * from ( Select DepartmentName, `Risk Scenario`, Cost, row_number() OVER (PARTITION BY DepartmentName order by Cost) rn FROM 'Departmental Risks`) where rn <=3 Please help. Just can't figure this out! Meera Select * from ( Select DepartmentName, `Risk Scenario`, Cost, rank() OVER (PARTITION BY ...Show All
SQL Server Dynamic FTP Connection
Hello , I have a table having different ftp url,user name, passwod, port no.I want to copy the file from all the location on my server at. How can I change the connection string/ FTP location for FTP connection manager at rum time in SSIS. Thanks Al C. wrote: The way I do it is in a Script Task. I first use a SQL Task to load the values from a table into variables I defined. Then I use those variables in code. Here is my code: Public Sub Main() Dim ftpConn As ConnectionManager ftpConn = Dts.Connections( "ftp" ) ftpConn.Properties( "ServerUserName" ).SetValue(ftpConn, Dts.Variables( "User_NM_FTP" ).Value) ftpCo ...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 Totaling of the represented values (but not dataset values)
Hello! I have a problem with totaling. There is table below which represents what exactly I need. Each cell value in the table is field multiplied by a coefficient. Totals should sum all row values as represented below : Tasks User1 value User 2 value ... Column Totals task 1 =field1_1*coef1 =field2_1*coef2 ... =field1_1*coef1 + field ...Show All
Visual Basic printing a hard copy
So i have an app that has text boxes, labels, and comboboxes. the program populates a database. What i need to do now is Print a hard copy of the data (from a command button on the form) and send an email to someone (through Outlook).. Can anyone point me in the right direction on how to do this Thanks. Ian. ok so i got it to print. However, it is not printing the text in the text box... it prints the code in the code window :(... how do i have it print the data the user enters do i need to send the data to a different file or is there a way the streamreader will read the textboxes ...Show All
SQL Server Frustrated with Nested Groups/Lists subtotals
I have a set of three nested lists. Office_List header sum(fields!Cost.value,"Office_List") sum(fields!Access.value,"Office_List") Clerk_List header sum(fields!Cost.value,"Clerk_List") sum(fields!Access.value,"Clerk_List") Order_List header sum(fields!Cost.value,"Order_List") sum(fields!Access.value,"Order_List") Order_ List detail: Fields!Cost.value Fields!Access.value Fields!Total.value Order_List Detail: Table_Detail Order_List footer Clerk_List Footer Office_List footer Order_list groups by order id Clerk_list groups by clerk id Office_list groups by office id Using the sample above for the list header Or ...Show All
Visual Studio 2008 (Pre-release) Displaying DataTable in run-time
Hi, I've got the following issue: My application is intended to show any table from the database. It means that the structure of the table is only known in run-time. I looked through the samples, but all the examples contain DataTemplate definition in XAML file that is not my case. I browsed the documentation but did not manage to fing the way how to create DataTemplate programmatically. Are there any ideas how can I display a table when its structure is only known during runtime. TIA you can create the listview/gridview in the code behind, add the GridViewColumns at the runtime. you can programmatically create a template from a string or a memory stream using the Load method of the XamlRea ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XBox 360 Controller + Windows 2003 Server?
Hi, My day development job means I have Windows 2003 Server as my primary development machine. I have XNA, DX and all that working fine, Space Wars works great. I've not got an XBox 360 yet (saving up for Christmas / whenever XNA gets released so I can get my hobby games on the XBox) - but was going to buy a XBox 360 Wired Controller for now. I know there is no *official* support for such devices on the Windows 2003 box - but has anyone got the wired XBox 360 controller working on their Win2k3 box and nicely accessible by XNA Thanks, Paul I gave it a try. The 360 controller's driver installer gives an error about how only the only supported operating systems are Windows XP SP1 and SP2. Just for the hell ...Show All
Visual C# reference object not updated
i send a class variable string into a nested class by "ref" ( using a constructor). inside this nested class i operate a thread and change the string variable value inside the thread. from this thread i call a delegate function which points into the main (not the nested) class function, why can't i see the change in the string there why didn't the variable string changed in the thread but the class variable string itself didn't i passed it by reference! example : // main class sealed public class TCPIPComm { private String outStr = "Out"; clientSearch = new ClientSearch(ref outStr); // base nested class abstract class ConnectionSearch { protected String MainString = ""; // constructor protected ...Show All
Visual Studio Team System VS crashes when using unit tests
Hello, When I'm running unittest in visual studio I often get the following error msgbox: COM object that has been separated from its underlying RCW cannot be used. After I click OK it's impossible to start any other test. So I use the X on the right top corner to close vs.net but then I get the following message 3 times in a row: Unexpected error encountered. It is recommended that you restart the application as soon as possible Error: HRESULT: 0x80131527 File: vsee\internal\inc\vscomptr.inl Line number: 473 After closing these 3 msgboxes the app shuts down. When I reboot everything works again, but that doesn't last long usually. any ideas ( I already tried reinstalling visual studio, no luc ...Show All
SQL Server Dimension and Hierachy
Hi, I am new in AS2005 I builded a Dimension "ShipToState" with Hierarchy "ShipToState", "ShipToCity", "ShipToZip"... When I browse my cube from Excel I see "ShipToState", "ShipToCity", "ShipToZip"... as 3 different dimensions and a new dimension named "Hierachy".....I think I am doing some mistakes..... Someone can help Thx Mcrisf I understand your confusion. You can put attribute hierarchies in a separate folder. Right click on the attribute and choose properties. You do this in the dimension editor.After that you can find a property called something like AttributeDisplayFolder. Write the name of the dis ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ModelMesh / BasicEffect rendering order
Hello all, I've been doing some standard 3d stuff with XNA, and I found an odd problem of some sort. Whenever I draw 2d sprites after my 3d rendering code, the model I am loading seems to be displayed in the wrong order. I've been using one of the spacewar ships like the documentation suggests. And I'm using the Font class (spacewar) to draw the sprites. I have removed alphablending for the sprites, no luck Changed the drawing order (before and after the 3d scene) Still can't figure out the problem though, any of you know Thanks! Rendering sprites also disables the depth buffer, so this might be the reason your mesh looks wrong. The easiest solution is to tell the spritebatch to preserve th ...Show All
