LenaS's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Xbox 360 Project to Windows Project
I was wondering if there is a easy way to recompile an Xbox 360 project to a Windows project, because I can't always be connected to my xbox to test out what i'm working on since the xbox is shared by the family. So can I make a change to my program an recompile it for windows so I can see if my change worked and once i'm done making changes to the program I can then build it for the xbox and try it out. Thanks That approach kind of works, but there are some gotchas that might trip you up (which is why we didn't do this by default). Stephen wrote a post explaining the issues that can come up with this. ...Show All
SQL Server How to do QTD and MTD in MDX ?
I want to use the setup as used in the "A different approach to to Time Calculations" http://www.obs3.com/A%20Different%20Approach%20to%20Time%20Calculations%20in%20SSAS.pdf But i still need Month to date and Quarter to date, as sepperate members in the Time calculation dimension (i know i can use the periods to date). As with the other members in the dimension this shall apply to every meassure that might be in the cube. Can someone give an example of how to do it in MDX The YTD looks like this: -- YTD CALCULATIONS ([Time Calculations].[YTD]= Aggregate( {[Time Calculations].&[Current Period]} * PeriodsToDate([Time].[Calendar Hierarchy].[Year], [Time].[Cale ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
SQL Server SSIS Performance Issue
Hello, I have been running massive ssis packages and testing the performance. This is my execution design: I have a main package that gets a list of packages to execute from a table. Then using a foreach loop in send the package to execute ( somewhere in the middle i delete the corresponding old log file for that package ), each of the packages configures themselves from the parent package variables. What i have been analysing tells me that for example a package runs in 2 minutes and then the time wasted from the end of the package to the start of the other task is in average 3 to 6 minutes... thats alot... since i run about 20x12 packages witch gives me of wasted time about 20 hours. My question is... what can be causing ...Show All
SQL Server SQL Select query need for following criteria. Please help, Retrieve records with independent price and its total volume per min
Time Price Volume 090048 510 6749 090122 510 2101 090135 510 1000 090204 505 2840 090213 505 220 090222 505 1260 090232 505 850 090242 505 &n ...Show All
Windows Forms ComboBox and TextChanged again (or still)
Hi, I see a couple of posts around this topic but oddly, not this exact question, at least not with an answer. I created two projects, both Windows Application, one in VB 2005, one in C#. I have .NET 2.0 installed. Each project consists of a form with a single ComboBox, and the DropDownStyle of the ComboBox is DropDown. I need to be able to catch both changes to the selection in the list or keyboard edits in the box. In both programs, I add an item to the drop down list when I load the form. Then, I try selecting and then editing. In VB, selecting the item first fires the ComboBox1_TextChanged sub and then the ComboBox1_SelectedIndexChanged sub. Editing fires only the ComboBox1_TextChanged. This is fine. In C#, however, selecti ...Show All
Software Development for Windows Vista Do unsigned apps always give a UAC warning?
We're distributing a legacy app. Do all unsigned apps in Program Files cause the UAC warning when run Is there any reason we can't just have the user install the app in C:\users\login-name so that we avoid all the UAC problems of Program Files We have the similar problem, but our package is not MSI-one. I suppose the reason covers in the type of the installation package - at present we have simple EXE-file generated by IS, but soon we'll migrate to MSI packages due to LOGO certification (this is a requirement). I'd be glad if someone could clarify if I'm right or not, but if no one can I'll inform this Forum's inhabitants as soon as I get the answer by myself. :) By the way, does anybody know why Vista marks executable files with ...Show All
SQL Server Help! Create index with substring
Good day! We had decided to migrate from Oracle to SQL Server, so faced some problems. Using Oracle we could create indexes like that create index obj_id_cnum on obj_id (substr(cnum,1,2)) But Microsoft SQL Server doesn't allow this code. How can we do the same using SQL Server. Thanks you. Is obj_id a table, I am assuming If so, then you are right, you cannot apply an index on a function directly. Two ways you can approach this: 1. If using enterprise edition, you can index a view and it will be used: create view obj_id_indexed as select obj_id_key, cnum, substring(cnum,1,2) as cnumSub, from obj_id create unique clustered index on obj_id_cnum(obj_id_key, cnumSub) Now your qu ...Show All
Windows Forms Problem Publishing to the Web
After completing my application I used VB 2005 to "Publish" to the web and supplied a website address. After the publish I copied the published files to the correct directory on my website but whenever folks access the publish.htm page all they get on their screen is a dump of XML code. Any idea what I'm doing wrong. The install works just fine on my PC (with Visual Studio 2005 installed) but doesn't work on anyone else's computer wihout VS 2005 installed. Help! Thanks, Doug Any takers This continues to happen. When friends access the publish.htm file on my website and click the "Install" button they then get a screen full of XML code. But when I go to the same website from my computer ...Show All
Software Development for Windows Vista Sub Flows within XOML based workflows
Hi, I have a workflow which is XOML based and the XOML and rules file is loaded dynamically from the DB. With this I have a server control which manages all workflows loaded into with forward and back controls. I want to implement sub flows now and am wondering how to go about this with XOML based workflows. I have a demo working with code based files but cannot get the XOML working Is it possible if so, any pointers would be greatly appreciated. Thanks! First change the StartWokflow method in CallWorkflowService to the following: public void StartWorkflow( string xomlFilePath, string ruleFilePath, Dictionary < string , object > inparms, Guid caller, IComparable qn) { WorkflowRuntime wr = this ...Show All
Software Development for Windows Vista SqlTrackingWorkflowInstance lose ActivityEvents
I'm using StateMachineWorkflow,SQL Server 2000 SP4 on different computer in local newwork,DTC on both computer is enabled, WWF Beat2.2. I used SqlTrackingQuery to track workflow instance, and I found the SqlTrackingWorkflowInstances of the workflow instances created after application start lost all its events. ActivityEvents:count =0; UserEvents:count=0; workflowEvents:count=0. But SqlTrackingWorkflowInstances of the workflow instances created before application start is ok. My code as follow: //Add WorkflowRuntime Service string connectionString = "Data Source=RemoteSQLServer;Initial Catalog=ShareService;Integrated Security=SSPI"; SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService(co ...Show All
Visual Studio Express Editions .NET 2005 - .NET 2003
OK, I just downloaded the VB.NET 2005 on my home computer, so i could do some programming assignments for school, at home. When I went to bring it to the school to bring upo on my computer, we have VS.NET 2003. Is there any way to do this at home and convert it back to a 2003 file they are pretty basic programs, nothing to fancy. I just need to be able to pull them up on the school computer. Thanks, Clint Maybe this utility on the code project web site will help. ...Show All
Visual Studio Team System Install TFS SP1 onto TFS SP1 Beta
Hi, I'm trying to install TFS SP1 on a TFS server that has previously had TFS SP1 beta installed. The update/patch package is VS80sp1-KB926738-X86-ENU.exe . The error dialog message is: "The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch." The event log also indicates the error with the following description: "Product: Microsoft Visual Studio 2005 Team Foundation Server - ENU - Update '{A212FEEC-14C4-460E-BE0E-F1DEBD14C324}' could not be installed. Error code 1642." ...Show All
Visual C++ VS .Net 2005, how to disable intellisense...
Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra I just want to join the chorus. The intellisense update is making my C++ project (hundreds of files, many hundreds of classes) unusable. Please restore the VS 2003 performance. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Learning Direct X
I have tried to learn direct x with several online tutorials, but failed. I have decied that I need to learn from a full book. I consider my self a good programmer. There are plenty of book centered around making games, but this is NOT my intention. I want to learn the basics and the advanced of direct X, from the ground up NOT from the perspective of making games. I want a book that is based on the .net 2.0, I dont wish to learn techniques that are already outdated. The book needs to include advanced topics such as how .x meshes actually work, ect. I would really appreciate any book suggestions, thanks ahead of time. You will never find a book on MDX 2.0. MDX 2.0 has now expired and never got out of b ...Show All
