Coleby's Q&A profile
Visual C# StopWatch
Hi All, Wondering if anyone is intimatley familier with the Stopwatch(). I am trying to get a precise timer using it. What I was hoping to achieve is something similar to the standard windows timer where I can call a function to process some data at a specific interval's. Not having much success so far. Thanks for any direction or help. Jeff Hi ahmedilyas, I have used both of those, not precise enough, only around 55ms at best. Need to get down to 20ms, consistantly. Thanks Jeff ...Show All
Smart Device Development How to Implement Button Click
Hi , Can anyone knows how to implement single button click event in compact framework and also how to examine whether the user made a single click or not my issue is like this private void btn_Click(object sender, EventArgs e) { if(singleclick) { do this.. } if(doubleclick) { do this.... } } Thanks Button does not expose a double-click property. You can simulate one by keeping track of the time you receive the click notification. If the second one comes in within your double-click-defined threshold, then you have a double-click. If it comes in outside your threshold, you don't. ...Show All
Software Development for Windows Vista Advise on creating Oracle Persistence
Hi Everyone, I've started to attempt an oracle persistence service as i've no choice on database. I've taken the schema scripts from the sql server persistence and mapped them into a set of oracle tables. Now its the stored procs. For now i'm not wrrying about locking or anything like that but am looking purely at getting the data in. The signature for the sql server sp is: Create Procedure [dbo] . [InsertInstanceState] @uidInstanceID uniqueidentifier , @state image , @status int , @unlocked int , @blocked int , @info ntext , @ownerID uniqueidentifier = NULL, @ownedUntil datetime = NULL, @nextTimer datetime , @result int output , @currentOwnerID uniqueidentifier output Wha ...Show All
Visual Studio Team System Error when Team Build Runs Web Service Tests: "target machine actively refused"
I get this error: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it. And it seems to be specific to the Team Build machine. When I switch and use a different team build machine for the Build Type the tests run and pass. I can also run the tests manually through VS on the failing machine....AND they pass. I am at a loss -Ken Hi Abutthara, So the build service is running under the Domain user we setup. amsa\tfsservice The user is an admin on build machine1 and it doesn't make a difference. You mention permissions on the web service Where are you talking about th ...Show All
Visual Studio Tools for Office Can't add or remove buttons of toolbars of Word/Excel/... in DSOFramer
I'm doing a project using the DSOFramer activex object control office application. I want to modify the Word's toolbars(add and remove some buttons), but found the VBA command Application.CommandBars("Standard").Controls.Add("...") is invalid(Can be executed but no change in the bar) and the menu "Tools/customs" is disenabled in the ocx. Is it really I can't modify the toolbars in DSOFramer How can I deal with it Thanks. first,you can try to use the method out of the dsoframer,and check your dsoframer's version. As we know, when we use the dsoframer,especially in a web page, maybe some vba methods/perporties will be not working. such as workbooks.open\appliction.displayalerts,shee ...Show All
Smart Device Development Regarding Downloading a file
Hi, I am developing smart device applications using CF1.0 on VS 2003. I need your help. The question is "How to download a file from net programmatically ". Please send your suggestion or codes. Note: Your code has to be based on the current connection. The connection may be proxy or gprs. Thanx M. GANESAN A VB.NET (2003) sample is available here: http://www.alexfeinman.com/download.asp doc=FileDownload.zip ...Show All
.NET Development Is an assembly the only possible target for an emitted method?
I am wondering if there is any way to emit a method and its supporting metadata without having to create a full-fledged assembly I want to be able to emit individual methods on the fly and feel that it's rather heavy handed to create a whole assembly just for one method. What I would ideally like to do is emit the byte codes into a buffer that is part of another data structure and then pass that buffer's adress along with a pointer to appropriate metadata (which could contain metadata for multiple methods and data types) to a function that will jit-compile the method and execute it. Is there an interface that will let me do this -- that will let me separate the metadata I point to from the acutal executable byte code and submit them in se ...Show All
Visual Studio Team System Source Control Disabled
I've been configuring (well trying to) security. somehow I've managed to disable the Source Control menu option under the Team project settings menu accress all projects. What have I done You shouldn't need to add users to the service users group. That group is reserved for the identities that run the services. How do you have the groups and permissions set up for the Team Project(s) The information at this link discusses administering source control permissions: http://msdn2.microsoft.com/en-us/library/ms181455(VS.80).aspx Please reply back with more details about your group(s), permissions if the problem persists. ...Show All
SQL Server Custom Connection Manager or SSIS Provided one?
Hi, I have been working with a client on a legacy application migration to SSIS and I found SSIS to be very helpful, as this is my first project using integration services I found myself in a situation where multiple solutions can work but I cannot assess the risk of using one or the other and the effort required for the implementation. The situation is as following, we cannot touch the input files that come from the other legacy systems so I need to get information that is packaged following the next multipart schema: &Header with context information from the source &BatchHeader with context information from the batch (including format N) - Data in format N &BatchHeader with context information from the batch (includi ...Show All
Visual Studio 2008 (Pre-release) LINQ and Atlas
Ok so what I am trying to do is have a form with a textbox for a search dialog. On keypress I want to query top 25 records and display them in a gridview, so as you type it refines the search etc. So I have hooked up all the atlas javascript methods etc but I am not sure if I am able to do this or not. Basically my webservice code looks like (generated with BLINQ): return from dom in db.Domains select dom; So this should return all my records (fine for now in testing) and my javascript receiving function does the following: function OnComplete(result) { var d = document.getElementById( "<%# grid1.ClientID %>" ); d.DataSource = result; d.DataBind(); } This results in an error of: System.InvalidOperati ...Show All
Visual Studio Team System A couple of issues with Load testing
I have built a webtest that runs fine when I run it from the "Test View" pane. I then added it to a load test. I have noticed a few issues when running load tests. Issue 1: On the PC's I run the load test on I get an error at the end of a test run that says; "Error occurred running test. (Computer computername )Object reference not set to an instance of an object" computername in the real world is replace by the actual machine that is running the load test. If I click "OK", which is the only option I then get asked if I want to view the detailed results of the test... which is fine. This error doesn't happen every time, but I haven't been able to put my finger on any kind of pattern either that may ...Show All
Software Development for Windows Vista Parallel execution question?
Can anyone let me know if I can develop the following scenario using WF - I have a requirement where a request has to be approved by multiple people at the same time. The catch is the number of people and who they are is determined only at runtime after looking at the request. So, I will not be able to use a fixed number of parallel branches in the designer. Is there a way to solve this problem in WF directly or do we have to do this manually ourselves like setting up one sequential workflow for each approver Thanks for the help Ashok ...Show All
SQL Server Passing parameter to Package from Scheduler
I need to have scheduler passing the latest datetime to my Package at the time it kicks it off. Also, How would I receive the argument in my package I mean, in some variable or there are some other construct in SSIS. Any help in this will sincerely be appreciated. Fahad ...Show All
Visual C++ MFC Document / View Dilemma
I have a situation where it is not clear whether to use the document or the view. I think I must split the solution between the two, and MFC makes such things quite complicated. I am reading a file that has many record formats, and showing them in a CListView. I also need to show each record in a custom form when the record (row) is selected. I have about 50 record types and I am likely to have about 100 total. I have a base class and I derive a class for each type of record. Each class has a virtual function for reading each type. Those classes are in the document of course. MFC is designed such that the document does not call the view directly; we normally use UpdateAllViews instead. Each record type has a record type code th ...Show All
.NET Development execute stored procedure on only selected rows
using inventorytableadapter.updateQuery1("itemno") I'm able to subtract Invoicedetails "Qty" from Inventory "Instock" but I need to add a where clause to this query so that only the selected rows are updated here's my query UPDATE Inventory SET InStock = Inventory.InStock - InvoiceDetails.QTY FROM Inventory INNER JOIN InvoiceDetails ON Inventory.ItemNo = InvoiceDetails.ItemNumber; where ( Itemno=@Itemno ) SELECT ItemNo, ItemDescription, InStock, Units, Cost, ItemID FROM Inventory WHERE (Itemno = @Itemno) Any Ideas Hi, Forget the new procedure. The letter “x” is were you have put t ...Show All
