Caitriona96's Q&A profile
Windows Forms Length of Turn - Microseconds
As my creature's code gets more complex, I start to occasionally skip turns. I tried to put in debug code to measure the time taken in various procedures so that I could optimize, unfortunately I can only get accuracy to the nearest 10 milliseconds. The message I get back from the engine is typically something like "took more than 1760  ...Show All
.NET Development Is it possible to convert XML into a Class?
Given an XML stream as below, is there any possibility to convert the same into any treditional class style with . (dots) as seperator of the nodes of the xml file... for instance bank.code.tostring() should reslut me " 5070 " and bank.description.tostring() should result " ICICI - Bangalore " bank.location.destination.code should result " MB " bank.location.zone.code.tostring() should result " 12 " etc ., And the XML file being ... < xml version ="1.0" encoding ="utf-8" > < MainBank > < bank > < code > ...Show All
Visual Studio 2008 (Pre-release) Catching bug with InvalidCastException while mapping SQL query results to object
Hi! I'm using LINQ in real product development. It is great even now!! I use public System.Collections.Generic. IEnumerable <T> ExecuteQuery<T>( string query, params object [] parameters); to obtain query results and map them to my object. It works fine until I've changed query string (changes does not affect query schema but only data). There's an System.InvalidCastException with Message="Specified cast is not valid." while trying to enumerate result. By commenting different properties of my class I've found out where the problem is. But this approach is time consuming. Here is the question: H ...Show All
Visual Studio Drillthrough report with remote processing in web report viewer
I've built a set of drill through reports using the Navigation tab. I'm rendering the reports via the Reportviewer control in an ASP.NET app (RTM). To accomlish this do I need to write code in the " Drillthrough" event to set the parameters of the drill through report and change the Report path for the reportviewer control If so, how do I capture the value from the parent report in order to pass it to the drill through report No, all you have to do in the Drillthrough event handler is supply data. In the event handler you can examine parameters being passed from the mainreport to the dril ...Show All
Visual Studio Express Editions Platform SDK
Which Platform SDK do I need to download ia64 or x86. I have a celeron D 330 processor running windows XP home. I am assuming that it has to do with the processor, because I see one that says amd, but I could be totally wrong. Fixxer - You will want to download the x86 SDK for your Celeron computer. IA64 and x64 are 64-bit processor architectures. If you want your C++ application to run on these architectures, you will need to recompile against these versions of the Platform SDK. Currently though, IA64 is primarily used only on servers, and x64 is only starting to become widely availab ...Show All
SQL Server Query Where clause not working quite correct
My query below should only do an insert if these 2 evaluate to true: a) The customer number is not currently in the DR table b) The customer number is in the list check (where customer in) a has to be true in order for b to be checked. The insert cannot happen for a customer that's already in the DCR whose number is in the IN clause So far, it is close however I'm finding a few numbers being inserted that are already in the DR table. I would also like to insert one record for the customer. It will find multiple entries per customer number since this is really a transactiosn table but I need to inse ...Show All
Windows Forms Bug: TrackBar.Maximum and large values
Hi, I've encountered a weird TrackBar issue, it seems to hang completely when the TrackBar.Maximum is set to certain large values.. what's going on Have tried this on a few different 2000/XP environments and it seems the behaviour is universal. Btw, before attempting the test below it's a good idea to make sure you haven't any unsaved work.. :) First try simply ...Show All
Visual Studio How can you provide input to AddProjectDependencyAction without a wizard?
I would like to use the AddProjectDependencyAction but I do not want to gather the project input information from the user through a wizard. I am able to derive the project names as strings in the recipe but the Action wants EnvDTE.Project types as input. I attempted to use the ProjectConverter but have been unsuccessful. Is it possible to convert a string argument into a EnvDTE.Project Argument and then pass that to the AddProjectDependencyAction You can pass the hardcoded string using a value provider, and use the ProjectConverter class. This class converts a "virtual" path to ...Show All
Windows Forms Dreaming away.
Hi. Here is my wish list. I have not had the chance to check out the 1.1 beta, so it is very possible that some of these issues have already been addressed. Also, please don't take any of this personally. I think .Net in general and the winforms/controls pieces are great. Keep up the great work! (The last couple wishes are ...Show All
SQL Server Virtual Cube Migration
What are best practices around virtual cube migration When the cube was migrated, it became a physical cube with linked measure groups. However, when I try and add a dimension to the cube, and edit the granularity within the Dimension Structure tab, I get this. Regular relationships in the current database between non-linked (local) dimensions and linked measure groups cannot be edited. These relationships can only be created through the wizard. This dialog can be used to delete these relationships. What's the purpose of a linked measure group if I cannot add a dimension to the same cube What wizard Andrew, Bas ...Show All
Windows Forms Problems with the CollectionEditor and Properties
Hi I have a simple UserControl with a property that looks like this: [ System.ComponentModel.Editor (typeof (System.ComponentModel.Design.CollectionEditor), typeof (System.Drawing.Design.UITypeEditor)), Description ("test property"), Category ("Misc"), DefaultValue ("") ] public List<Element> Elements { get { return elements; } set { elements = value; } } and the Element class looks like this: [Serializable] public class Element { private string s1, s2; public string S1 { get {return s1;} set {s1 = ...Show All
SQL Server Output in Firefox
When I run a report in firefox it only displays the report in half of the screen in a scrollable area, rather than using the whole sceen. In IE is works fine. Anyone have any ideas . Thanks. Have you gotten any feedback on this issue I am having the same problem and would like to see what you have been able to figure out on this. ...Show All
Visual C# How to Play a video (eg: .mwv) file on Pocket PC ?
Hi, I would like to play video files on the Pocket PC. How to do this Any ideas/code snippets plz Thanks, ramakrishna. Hi Swamy ...!!! Its really Great...!!! Its absolutely working fine for my expectations for PC. But i'm using the Windows CE.Net. So the function ( mciSendString ) which you 've used in the winmm.dll is not supported in the Pocket PC. So plz find me an alternative or give me a way where can i use alternative function instead of this ( mciSendString ) function. Is there any way to do so Many Thanks Once again. ramakrishna. ...Show All
SQL Server Publish the cubes on the web portal
Hi all, Is there the ability of publishing the cubes (which is built from an Analysis Services Project) on the web portal The purpose of this action is to let the BI users to do the analysis directly on the web portal. The BI users can change the measure, slide and dice data, change the dimension (just like what you've done with the Analysis Services). One of the options: You can enable HTTP access to Analysis Services 2005 and let you users to access Analysis Services directly. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Software Development for Windows Vista Inspecting a State Machine Workflow
Hi there!. I'm developing a State Machine Workflow. First, please let me put you in context: It’s like a form approval, but the form in cuestion has states (ie: Pending, OnCourse, Rejected, WaitingApproval, Approved) and if the form is Reject, the next State it’s OnCourse again doing a new iteration. I'm using Lab04 as example and I've definied the workflow until this point without problems, but now, when I'm going to code the "test host" I have some questions. In Lab04 a lot for work is done in classes StateMachineInstance and StateMachineTrackingService. Reading these classes I understand that are inspecting the Workflow ...Show All
