Bill Foust-DAI's Q&A profile
Software Development for Windows Vista "WORKFLOW FAILED VALIDATION ERROR" in XOML WORKFLOWS!!!!
Hi Gurus, Pls Help..I got stucked with this error while running the XOML State machine Executable Workflow.Here is my Code where it showing error XmlReader reader = XmlReader .Create(xomlpath); WorkflowMarkupSerializer wms = new WorkflowMarkupSerializer (); Activity wf1 = wms.Deserialize(reader) as Activity ; //HERE I GET ERROR SAYING WORKFLOW FAILED VALIDATION!! NewInstance = WFRuntime.CreateWorkflow(wf1.GetType()); NewInstance.Start(); 'xomlpath' is the path of the Xoml workflow. I tried other ways of creating workflow passing (xomlreader,rulereader,parameters).That also is showing the same error. Pls help..Its soo urgent Thankz in advance Sunath My apologies, ...Show All
Visual Studio 2008 (Pre-release) The reason for the exception: Converter property is expecting a IValueConverter instance, not a string.
Hello all, I have an entity (ContactInfo) that exposes a bunch of properties and a collection of Persons (the collection is called People). Here is how I want to show it: Contact Info Name: xxxxx Created By: xxxxxxxx Creation Date: xxxxxx People: John, Jill, Jack. I have defined a datatemplate for this entity, where each property is bound to TextBlock.Text. Then, I created a value converter that would take a the people collection and return a list of comma seperated names. public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value == null) return ""; People people = value as People; //TODO error handeling ...Show All
Windows Forms HTML Based Label Component?
Hi All Does anyone know where I can find/buy a component that will display a label with HTML... so if I were to write "<b>Title</b><br/><br/>Description" it would look something like this... ************ Title Description ************ If it had the ability to use HREF's and have an event listener that would be AMAZING!!!! Thanks In Advance Mike Hi, you can use the System.Windows.Forms.WebBrowser control to display the HTML, I am not exactly sure what you mean by "display a label", can you elaborate a bit more. Thanks Mark. ...Show All
Visual C++ Computing for large matrices
I tried to write a file for 1e6 by 1e6 and it literally crashed. Double is too small to handle. How should I code so that I could begin to write and compute my matrices I am looking along the lines of computing values larger than 1e6. Is that realistic Also, how can I optimize on the memory space using MV.Net 2003 I am starting with a simple code, see below. Thanks. [code]int main() { int i, j, nmat; double *b, **a4; nmat = 1000000; Init_Matrix(a4, nmat); Init_Vector (b, nmat); for (i = 0; i<nmat; ++i) { if (i%2 == 0) a4 = 4; if (i%2 == 1) a4 = 4; if ((i-1)%1 ...Show All
Windows Forms DataGridView and C#
Hi, Does anyone know if when an item in a DataGrid Cell is altered that this action can call a separate method in my code... Though I have looked I can't find an answer - perhaps I have not looked well enough... Thanks in advance... Andrew Hi, Got the ...Validator method working O.K - it was a error in my Form-designer code. However I have one other question. The validator method picks up when I have entered an incorrect character into a field eg:Char in numeric field, but when I try to reset the value to say zero it will not do it. EG: Enter 0 in field (all O.K) Enter e in field (however clicking enter or down/up arrow does not change field value) Value stays at e If I then ( ...Show All
SQL Server ole db transformation - redirect rows problem
Hi, i have a OLE DB transformation that executes a stored procedure. The stored procedure RAISERROR when an error is caught. I have set the OLE DB transformation to redirect rows. But instead, the task turns red and fails. Did i do something wrong here ah... i compared Lookup transform and OLE DB transform. For lookup transform, you can control "ErrorRowDisposition" for both Command Input and Command Output.... But for OLE DB Transform, you can control "ErrorRowDisposition" for only input, not output !! So i guess I cannot RAISERROR in the stored proc and let OLE DB transform separate the "bad" records from the "good" records. Perhaps I need to modify the stored proc to catch al ...Show All
SQL Server SQL 2000 database upgraded to SQL 2005
Hello, We are currently testing the migration fo a SQL2000 database to SQL2005 and we seem to be having difficulties with the security. Permissions for database objects are not coming across, loginids all have their own schema (which maybe this is expected ) The database server loginids do not seem to be in sync with the individual database logins because if you pull up the security for a loginid at the server level and click mappings, none of the databases are checked that the id had mappings for. If you click the databases and then "OK" an error pops up saying the loginid exists in the databases - which they do. The only way we can get the ids to map correctly is to totally delete the loginid from every database ...Show All
Visual Studio Express Editions Selecting a dataset from user input
OK. I have an application that needs to look up various data via a dataview based on user selection of a listview and/or combobox. Obviously I can simply hard code the selections. However there has to be a way (I hope) that I can use the selection to form the dataset. For example: Suppose the user selects MachineA in the combobox not MachineB The hardcoded dataview would be Select Case combobox.selecteditem Case = "MachineA" dataview = me.MachineAdataset.table.defaultview IS there not a way to do something like this Dim strng as String = combobox.text dataview = CObj("me." & strng & "dataset.table.defaultview") Thanks. I dont know if th ...Show All
Visual Studio Visual Basic Debugger Crash
I have just recently installed Visual Studio 2005 and in my GUI Design class we have opted to use Visual Basic. The problem I am having is that whenever I try to use the debugger by setting a breakpoint, everything goes well until I actually reach the breakpoint. When my program reaches the breakpoint, everything freezes up. I am unable to force quit the program or Visual Studio, or alt-tab to any other applications. The only thing I am ever able to do is bring up the task manager with ctrl-alt-del, but I am unable to kill processes or anything from the window, as it too freezes when I click on the window with the mouse. This is on a fresh install of Visual Studio 2005 on a fresh install of Windows XP Professional SP2. I have all the updat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Framework proposal and sample code - GameComponents with component-specific "update frequencies"
Please see https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=195728&SiteID=226 and give your feedback! Currently the GameComponent class has no mechanisms for having components with a "lower priority" that are not updated as frequently. Examples could include a component that manages game resources, purging unused ones similar to a garbage collector on a less-frequent interval. I've written a rough, prototype implementation. It should be usable right now with minor modifications, provided you use your own class that inherits from GameComponent. public class IntervalGameComponent { private int updateFrequency = 0; private TimeSpan componentElapsed; [Default ...Show All
Visual Studio 2008 (Pre-release) Tier 2 GFX-card displayed as Tier 0
I have a 9800pro(128mb) gfx-card wich, according to http://windowssdk.msdn.microsoft.com/en-us/library/ms742196.aspx , should be a Tier 2 card. However, if i run a program and check the RenderCapability .Tier value, it says Tier 0. The strange thing is that if i run perforator, it says 0 software renderers. According to the link above there should ONLY be software rendering if you got a tier 0-card (wich i realy don't have, but the Tier-property says so). I've had alot of performance issues, specially with mediaelement and bitmapeffects and i think it has something with the above problem to do. I have the latest drivers and DirectX-version. Just upgraded from RC1 to Sep CTP and now i get Tier: ...Show All
Windows Forms Entering NULL datetime column
Hello everyone. How can I edit a row in a SQL Server 2005 Express database and update the datetime column to a NULL value with C# I'm trying to edit the row using the row.BeginEdit() method. Writing a null value directly to the column doesn't work..I just get an exception that it can't implicitly convert to System.DateTime. Ashish Thanks! I followed your first method even though it seemed a bit weird to me at first. I couldn't get your second method to work. I'm a new programmer...and I was wondering..why did you put a question mark after DateTime Ashish ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Driving Game Download???
Does anyone know where the XNA Racer Game can be downloaded (see this video) That will be upcoming Starter kits. In a video I saw, they mention that it's still in alpha stages or something, and that they are going to finish it off. Once done, they will be releasing it, and possibly a FPS starter kit for us developers to toy with! YAY! ...Show All
Visual C# amigious operator == when testing for null
I have data class that should be equatable in many ways. Sort of like the following: class MyObject : IEquatable<MyObject>, IEquatable<MyOtherObject> { ... private MyOtherObject otherMember; public MyOtherObject OtherMember { get { return this .otherMember; } } public bool Equals(MyObject obj) { return this .otherMember == obj.OtherMember; } public bool Equals(MyOtherObject obj) { return this .otherMember == obj; } public override bool Equals ( object obj) { ... } ... public static bool operator == ( object obj1, MyObjec ...Show All
Software Development for Windows Vista How to know the values of an activity
hi, In a Secuencial Workflow, how can i know, which is the step (activity) for a specific instance of it best regards Hi Luis You can use Windows Workflow Tracking to do this. The SDK comes with a bunch of tracking samples. You will need to create a tracking profile - tracking profiles are the mechanism by which WF Tracking Services communicate with the Tracking runtime about what events they are interested in. You can create tracking profiles declaratively in XML or by using the tracking profile OM. Since you are interested in knowing what activity is currently executing, you can track Activity events (you can also track Workflow events and User events but it looks like you might not be interested in those). Once you ...Show All
