CraigCody's Q&A profile
Software Development for Windows Vista Event raising in workflow ?
Hi Can my workflow have some events that I will handle in my application [for example windows forms code] I have application that should run in infinite while loop and stop for one hour after each succesful execution. So I would make while with with true condition and on the and of sequence I'd put Delay activity. But how do I know what's going on in my workflow if it never ends It will finally be used in Windows Service so it should be running every our do what it has to do and than go idle... But for now I'd like it to communicate with me by some messages. So if certain conditions happen I'd like to have an event raised. Can I do such thing in workflow If yes, tell me how :) Jarod Hi, The ...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
SQL Server Attaching a rs2005sbsDW.mdf
Hi all, I am trying to attach a database using the sample files that come with Microsoft SQL SERVER 2005 reporting services. When I try to attach it fails. What causes this error message TITLE: Microsoft SQL Server Management Studio ------------------------------ Attach database failed for Server 'CITS-D011'. (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServe ...Show All
.NET Development deleting dataset.table[0] row
Is there a way to delete a row in the dataset and it actually removes the row and shifts the others down: DataSet looks like: dsTemp.Tables[0].Rows[0][0] dsTemp.Tables[0].Rows[1][0] dsTemp.Tables[0].Rows[2][0] dsTemp.Tables[0].Rows[3][0] Remove a row dsTemp.Tables[0].Rows.Remove(1); DataSet should look like: dsTemp.Tables[0].Rows[0][0] dsTemp.Tables[0].Rows[1][0] dsTemp.Tables[0].Rows[2][0] hi try the datarow.Delete method http://msdn2.microsoft.com/en-us/library/system.data.datarow.delete.aspx Hope this helps you out, please close the thread if it does ...Show All
Audio and Video Development Regarding <head> </head> section of markup
Hi there!! Is the <head> section of the markup accessible from the script. Can it be modified using DOM CORE API etc Thanks in advance Thanks a lot. Another question. :) Will the ( refer Attr Interface DOMCORE API) specified for an attribute be "true" if that attribute has been applied by referential styling . ( specified ) true attribute is specified in markup false attribute is not specified in markup true attribute is set by DOMCORE API false attribute is removed by DOMCORE API true or false attribute is set through referential style false attribute is set through applicative style Thanks in advance ...Show All
Visual C# need help on designing web update wizard...
I want to add "Check Update" feature to my application, so my customers can check and update to the latest version online, if there is any like .exe,.dll, and so on, on my website. I do not have a clue how to do it. Can anyone give me some idea or reference some article Thanks in advance. ...Show All
Visual C++ BitBlt() in Child Wnd's OnPoint() failed.
Hi all, I have created a window(without title bar) class with image manipulating functionalities. Just I want to show this window as part of another window, that is with in a window just like controls. I know to display as a separate window. But I just want to show as part of parent window, like a control. I hope my question is clear. I am using Visual Studio 2005. :) Purusothaman A I think you should create your window with WS_CHILD style, but without styles specific to separate windows. When you create it with CreateWindow function, specify the parent window as a parameter. The proper place for creating child controls is the handler for WM_CREATE or WM_INITDIALOG notifications. I hope thi ...Show All
Visual C# Library help: a set class needed
Hi I need som tips about finding a library that is implements som sort of a set datatype. That is a collection where all members are unique. Something like the Java languages Hashset implementation: http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashSet.html Thanks Regards No, it's still not what I'm looking for. The Java Hashset does not collect it items through a key/value pair, just values that are unique to each other. It bases its unique list by using a hash in some way (I'm not shure about exactly how), but probably not the most efficient implementation. The meaning behind a Set is described here in the first paragraph of the Java API: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html What about something simila ...Show All
SQL Server Common Criteria certification
I see that part of SP2 is the new CC certification -- can anyone give me some more details. What level is it at EAL4 I can't seem to find the certificate on the CC Web site but it could be because it's not SP2 yet. http://download.microsoft.com/download/8/a/d/8ad9c652-4a8d-4283-9b50-a09f329e84c2/wppccc.doc HTH ...Show All
Visual Studio Express Editions VC# hangs after creating new project
Okay, this problem didn't happen the last time I installed VC# (some 6 months ago). Recently, I downloaded the VC# Express ISO (2 weeks ago), and installed it. But it hangs as soon as I create a new project. Did Microsoft change the ISO files or something Here are all the wierd things that are happening in my VC++ Express and VC# Express 1) I installed VC# Express first, it hangs immediately as soon as I try to create a new project. It just says it's creating a new project and hangs. 2) I tried uninstalling every sign of VS Express and then reinstalled first VC++ and then VC#. The problem still persists. 3) Right now, my VC++ Express install fails to install the MSDN Express Edition component. 4) Even after closin ...Show All
Visual Studio Subtract the value of 2 textboxs
Dear friends, I need to subtract the content of 2 textbox inside a ReportViewer and insert the value in another one. How can I do it Thanks Hi Pedro. Could you please tell us about the solution you found to this problem Thanks for your help Alberto ...Show All
Visual Basic SetWindowsHookEx Always returns Zero
I am using VS 2005 8.0 I do not know why the following code is always returning zero for the SetWindowsHookEx. I have unchecked the "Enable the visual studio hosting process" in the projects debug properties but it always passes the If _mouseHook.Equals(0) condition and the Hook is not initiated. Can anyone tell me why Below is all the code on the form. Thanks. Imports System.Runtime.InteropServices Public Class Form1 Inherits System.Windows.Forms.Form Private _mouseHook As Int32 = 0 Private _mouseHookProc As CallBack Private _appThreadID As Int32 Private Const WH_MOUSE As Int32 = 7 Private Delegate Function CallBack( ByVal nCode As Int32, ByVal wParam As ...Show All
Visual Studio Tools for Office Excel 2003 -The XML Maps in this workbook are not exportable
Hi, I just started using Excel 2003 XML Map functionality. I queried a table in the SQL server database, loaded the dataset in a VSTO document action pane, and saved the schema file. The XSD looks fine. I then added the XSD to the map and mapped every field to a column in the spreadsheet. So far, everything looks great. I then make a web service call that returns a dataset. I use this code to load the data into Excel : (Globals.ThisWorkbook.XmlMaps["myDS_Map"].ImportXml(ds.GetXml(),true);) This also works as planned. Excel displays the results for every column and returns the data to each cell perfectly. Now I want to get the XML data out of this spreadhseet. I first check my map's IsExportable property. It returns false! Wha ...Show All
Windows Forms Create custom Controls for Win Forms book, sample, etc
Do you know where can I find an example or tutorial (a good one) to learn (by example) how to create custom controls or derived controls I see some samples in web but I can not find something clear, simple, stright to play with OnPaint or chgange the look of the original controls. Thanks in advance for your help, Edward The best example that is very clear and concise to me is in Chris Sells' and Michael Weinhardt's book, "Windows Forms 2.0 Programming". http://www.amazon.com/Windows-Forms-Programming-Microsoft-Development/dp/0321267966/sr=1-2/qid=1163654571/ref=sr_1_2/104-8882781-4763931 ie=UTF8&s=books Also, I have a blog at www.attilan.com , where I've just developed a trackbar cont ...Show All
Smart Device Development CeFindFirstFile using VB6
Ok, my first Smart Device project and I've come to a bit of a standstill, trying to find out what files are on the device. Tried the CeFindAllFiles, but from what I have read I don't think it will function in VB6. So, on to CeFindFirstFile and and CeFindNextFile. It all looks so easy. I'm confused as to how you set up the returning information. I keep seeing references to 'CE_FIND_DATA', but what is that all about If anyone has an example or ideas it would be appreciated. Bert Ok, thanks. I will revisit the listing of files on the device next week probably. At the moment I've found an interesting new problem, when I try to use CeCreateDirectory Basically, all it creates is a mess on the pda, with folders n ...Show All
