fuongptit-kodomo's Q&A profile
Software Development for Windows Vista Accessing workflow instance members from WorkflowInstance (runtime event handlers)
Hi All, Is there a way to retrieve a strongly typed reference to the actual running workflow from a WorkflowInstance instance More details: I have a runtime event handler (loaded, idled) that receives a WorkflowEventArgs parameter. In that method I would like to access some of the instance properties (DependencyProperties) of my own workflow class. The only object I have in that method is a WorkflowInstance with an InstanceId. So the question is, how can I get a MyWorkflowClass instance if I have an InstanceId Thanks in advance. No, you can not access the running workflow directly from the host. This is explicitly forbidden in order to pretect the integraty of the workflow state. Allowing the ...Show All
Visual Studio Team System Team Project Creation Failed
Hi I have just installed and configured the VSTS foundation Server 180 Day Trial Edition. When I create a new team project with my user credntials (which have been added to the TFS Admin group and SQL Reporting and Sharepoint) I get the error below. When I create a new team project using the TFSSetup user the project creation is successul, however I am unable to retrieve work items from the Project from Excel or Project. I get the following error "TF80066: You are not authorized to porform this operation. Please contact your Team Foundation administrator." I am not sure if the problems are related. Any help would be greately appreciated. Cheers Jock Error TF30004: The New Team Project Wizard encountered an unexpected erro ...Show All
Visual C++ class destructor not operated.
Hello, I have a question about destructor in a class. In the below code I was expecting the destructor part of the code to be executed and the message printed out. However, I only see the constructor message. This is the output: "We're in the constructor with arguments Press any key to continue . . ." Why is the destructor message not printed #include <iostream> using namespace std; class Point { public : Point( float f_x = 1.0, float f_y = 1.0, float f_z = 1.0); ~Point(); private : float x, y, z; protected : }; Point::Point( float f_x, float f_y, float f_z) { cout << "We're in the constructor with arguments" << endl; } ...Show All
Visual Studio Express Editions Encryption
I got a problem with the IO class.. i try to encrypt something but i keep get a critical error says request is not supported... what can i do thats code System.IO.File.Encrypt("D:\\Adobe\\Adobe Photoshop CS2\\Photoshop.exe"); tryed other files but stil this will only work if your computer has NTFS filing system for the OS, not FAT32: http://msdn2.microsoft.com/en-us/library/system.io.file.encrypt.aspx Do you still get this error even if the OS is not FAT32 (Is NTFS). The OS also needs to be Windows NT or higher. Can you post the exact error message ...Show All
.NET Development Regex problems
Hi all, I'm having problems with Regex, or more accurately trying to find the right expression to use. Basically I've opened up a text file, and I'm reading in the lines, and at a certain point I need to get a certain part of the line. the line I'm trying to read is: Color [Lime] Reading the line is no problem, but what I want to do is extract the word between the brackets(there are two different lines in the file that I want to read) so that I can assign it to a textbox color. I've tried some different expressions like "Color [(.* )]" and "/\Color \[(.* )\]" which have failed miserably. Does anyone have any suggestions The code I have at the moment is Regex *regex = new Regex(S"Color [(.* )]"); St ...Show All
SQL Server New to SSIS, where to research how to normalize and re-key tables and lookups?
I am just getting started studying SSIS with Kirk Haselden's "Integration Services" book. The problem I am trying to solve would seem easy enough to solve in code, but I am still early in the book and would like to be able to focus on the aspects of SSIS that would help me expedite this with SSIS, or to find out early whether what I need to do cannot be easily done. The problem itself is simple enough: I have a database of roughly 100 tables. Ignoring the poor normalization in the database for the moment, my more pressing problem is that that I need to rekey all of the main OLTP tables from a mashup of different key schemes to UNIQUEIDENTIFIERS. For example, Client table is presenrly keyed on an INT, Client Number. ClientFile ...Show All
SQL Server Recommendations for Oracle access from SSIS 64-bit server?
We're having issues with Microsoft's 64 bit Oracle OLE-DB driver... when we escalated to Microsoft PSS they recommended that we go with Oracle's OLE-DB driver since Microsoft's hasn't been modified in a few years. I've seen a lot of differing opinions on this topic (almost everyone says do not use Oracle's driver) and am wondering if there's a definitive answer here. Larry The MS provider does not support 64-bit, so that rather kills that for you. The Oracle provider does support 64-bit, so use that if you want 64-bit perfromance. The managed providers (.Net), both MS and Oracle have one, support 64-bit, so they may also be worth a try. I have seen some issues where they were better at data ty ...Show All
Visual Studio Team System TFS Warehouse Processing Error
First up, I have deviated slightly from the stock TFS install because we prefer to use Kerberos rather than NTLM for authentication. To that end, all TFS services and app pools are running under a domain account and SPN's for the HTTP service (both NETBIOS and FQDN) have been registered under that account. C:\>setspn -L DOMAIN\TFSSERVICE Registered ServicePrincipalNames for CN=tfsservice,OU=Service,OU=Generic Accounts,OU=User Environment,DC=domain,DC=company,DC=com: HTTP/SERVER1 HTTP/server1.domain.company.com All was working well, until recently when the warehouse process packed up. Processing was generating this error in the Windows Application Log: Event Type: Error Event Source: TFS Warehouse Event Category: ...Show All
Internet Explorer Development How do you distill just the Element-type nodes from a nodeList return type?
I have heard on the grapevine that there may exist a special function for basically performing the same as the following: desiredNodes = someElement.parentNode.childNodes; only instead of possibly having desiredNodes contain text nodes and other non-element type nodes, only element (ie tag name) nodes will be returned. I realize there are helper functions one may write one's self such as function getNextElemNode(nodeRef) { try { curNode = nodeRef.nextSibling; while (curNode.nodeType != 1) { curNode = curNode.nextSibling; } return curNode; // this should be next type 1 (element) node. } catch(e) { // no element nodes were found after nodeRef // do something random } } But is there a special 'distilling' prope ...Show All
Visual Studio Express Editions listbox updated display from within vb.net
bit new to vb.net and have a problem thats annoying me. I have a form with a button and listbox. in the buttons event i have a loop that calls a process with some parameters. the process runs until complete and then goes on to the next loop where it all repeats until the loop is complete. at the end of each process I add one of the process parameters to a listbox. This all runs well but the listbox display will not update until the button event is finished, which means all of the process calls are complete, so its an all or nothing on the listbox display. I want the listbox display to update as each process in the loop is completed. Ive tried the listbox.show and the me.show to update the form but they all do noth ...Show All
Windows Forms VB2005 Check cells of DataGridView for content
Hello, How do I check if the cells of a DatagridView are filled with a certain type of data or are empty Thanks in advance. thanks. I tried this but I get the error that the columname is wrong. Me .TblBetalingAanMedewerkerDataGridView.Rows( Me .TblBetalingAanMedewerkerDataGridView.CurrentRow.Index).Cells( "datum" ).Value = System.DateTime.Now 'Datum' is the exact columnname. ...Show All
Visual Basic need help saving a print image
In my program I have a print routine that prints one or more graphics pages using the PrintPage event. This works fine with print preview, page setup and all the normal things. Now I want to add the capability to create and save a bitmap of the print image instead of printing to the printer. Clearly, all the code is in place to create the print image, I just need to save it. It does not make sense to me to make a bitmap from the screen. But how do I create a bitmap from the PrintPage event Ryn, According to your description, I will give you’re a piece of code sample and an article which will help you. The following example prints the file that is specified through the command line to the default printer. ...Show All
SQL Server How to Check sequence on a set of records by grouping
i have data that tracks patterns of bus stops from one point to another. like point a, to point b, point b to point c forms one pattern. point a to point c , point c to point b should be a different pattern. Quote: create table #journeypatterns (patternid int ,points varchar(100)) go insert #journeypatterns select 1 ,'a' union all select 1 ,'b' union all select 1,'c' union all select 2,'a' union all select 2,'c' union all select 2,'b' union all select 3 ,'a' union all select 3 ,'b' union all select 3,'c' select * from #journeypatterns Quote: patternid points 1 a 1 b 1 c 2 a 2 c 2 b 3 a 3 b 3 c what i want is to get unique pattern value of sequence of points by grouping on patternid. if the sequence ...Show All
SQL Server Select Into help
I want to select from a table with the following columns ( title , firstname , surname , email, state , pcode , question1 , question1a , question1b , question3 , dob , timetocall , contactname) into another table which has a few more columns which should just have null because they don't have equivalent columns in the table i want to select from. IS this possible In the table I am selecting from the last 2 columns are timetocall which will either have (AH or BH) and contactname (which is a phone number) When timetocall is AH I want contactname to be inserted into the column HomePHone in the table I am inserting into and when it is BH I want contactname to go into the BusinessPHone field. Are these things possible in one ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detecting a controller button press?
I'm using the following code to toggle my grid on/off at runtime: if ( GamePad .GetState( PlayerIndex .One).Buttons.Y == ButtonState .Pressed) grid1.ShowGrid = !grid1.ShowGrid; But it's badly flawed, in that the Y button is "Pressed" every time the button is down (eg. if I hold it down for 1 second, it would toggle 60 times). How can I reliably find if a button was pressed (eg. it's initial down state), without having to keep track of Up/Down states for every button myself I've added feedback: https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=193299&SiteID=226 Though it did occur to me the "workaround" isn't as bad as I first thought. Because GetSta ...Show All
