AstAn's Q&A profile
SQL Server Performance Counters on Service Broker Transmission Queue
Hello, is there built-in support for monitoring the number of elements in the transmission queue via performance counters Thanks, No performance counter. See this post for an efficient query to return the number of rows in the hidden table that represents the transmission queue: http://blogs.msdn.com/remusrusanu/archive/2006/11/08/fast-way-to-check-message-count.aspx HTH, ~ Remus ...Show All
Software Development for Windows Vista Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. The call was in windbg, I used DebugBreak() to get into step by step. (Somehow I couldn't use OutputDebugStringA() to display using DbgView.exe). When I use Remote Desktop to debug, the session id is 3, however WTSQueryUserToken() failed with the same error 1008. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision - Boundingbox
Hey guys it’s me again I have one further question. How can I make Boundingboxes and Collisiondetection. I now the sample in the help documentation but i don`t understand it and it doesn`t really work. Could someone give me a sample collision class Can you also show me how to use the class boundingbox i am to stupid for it. Thanks to all Thanks for the code! I tried it on my models, which were made in 3D Studio Max and exported to .X format, but I had to add an extra foreach in there because the MeshContents are grandchildren of input instead of just children. I'm gonna go over to Connect now and submit a suggestion for this because IMHO it's something XNA should offer out of the box. ...Show All
.NET Development Easy way to combain VB.NET and C#
Hi, Is there an easy way to do that Can there be a solution with a vb project and a cs project or one must be compiled to a dll before Hi, yes - you can create a new solution, containing both - some C#, as well as some VB projects. A C# project can reference VB projects and vice versa. No need for precompiling. Andrej ...Show All
Visual C++ programming message switch
Does anyone know of a tutorial/website that explains how to program the message switch into the message loop It won't let me handle some messages inside the loop. I suggest that you rewrite your message loop to something similar to bool bRet; MSG msg; while((bRet = GetMessage(&msg, NULL, 0, 0)) != 0) { if(bRet == -1 || msg.message == WM_QUIT) { return -1; } else { TranslateMessage(&msg); DispatchMessage(&msg); } } And continue dealing with the messages in your WndProc LRESULT CALLBACK WndProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_SIZE: //... return 0; // proper return value differs between the messages case WM_ ...Show All
Visual Studio 2008 (Pre-release) Listview Editable
Hi, I have to Add rows dynamically using Listview.... And each rows should be editable. See my post here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=714418&SiteID=1 ...Show All
Windows Forms Do i understand Beginedit()?
Hi, I am trying to edit a row in my database, but the value doesn't want to stay. When I close the program and reopen it the row just reverts back to it's original value. I'm not sure if I am using begin and end edit correctly. Are they meant to save the new edited row Here's my code: Step.Email.FindByID(0).BeginEdit(); Step.Email.FindByID(0).Text = SuccessString; Step.Email.FindByID(0).EndEdit(); Step.Email.FindByID(1).BeginEdit(); Step.Email.FindByID(1).Text = FailureString; Step.Email.FindByID(1).EndEdit(); Step.Email.AcceptChanges(); (Step is my Dataset) Your FindByApplicationID and/or RemoveMatchedRow aren't working if HasChanges is returning false. Note th ...Show All
SQL Server Multi-Valued parameter output
I am trying to work on this project where I have to select multiple values from the parameter and after selecting them I have to output results for each value from the parameter on a different page. The output format is standard for all but the values are going to be different. I am able to output results for one parameter value on one page, and I also tried to change the parameter to multi-valued but it didn't work. please help... Thanks, -Rohit Mhmm, I thought I got you. Can you send over the RDL File to have an look on your code HTH; jens SUessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development .Net application Eating Memory & releases when minimized
Dear all, I have developed an application based on C#, The problem is "Garbage Collector being not called" from the application, i have not used any unmanaged code. The application is a Multithreaded application and the Memory Usages figure in Task Manager comes to minimum when i minimizes the application. Example: Task manager's Mem Usage is showing 328 MB and on minimizing the application it shows 45 MB. thanks in advance... aniruddh Hi Aniruddh Task Manager is unfortunately a very poor way to measure how much memory your application is using. What you're seeing is "working set", and Windows automatically trims an application's working set when it is minimized. T ...Show All
SQL Server how to get cap file into database
how to get the cap file into database have a card machine, when i swipe the card i am getting the details of the employee by .cap file. then i have to take those details into the sql server database tables. how it is possible. ...Show All
SharePoint Products and Technologies Workflow created in SharePoint Designer doesn't work ...
Hi, I created a custom workflow using SharePoint designer. It is okay when the system admin (the one who created the workflow in sharepoint designer) submits an InfoPath form to the library and then the workflow has been started. However, when a normal user (even with Full Control Permission) submits the InfoPath form to the library and the workflow cannot be started. Any additional security setup has to be configured when workflow is created in SharePoint Designer Thanks so much. Paul I've fixed my issue. I've added Log to action into workflow to debug and see where it fails. Basically, in sharepoint groups that I was using to send emails and assign to do's, I had option enabled "Allow members of the group see ot ...Show All
Visual C# Application and HTTP server communication [newbie]
I would like to create an automatic updater for my application. I wish to adopt WWW server to accomplished it. Here is my scenario: 1. Application opens an URL for example checkupdates.com/check.aspx id=ppp&pwd=ppp Here is check.aspx.cs which simply checks id and pwd correctness and responds with file that contains update info: string id = Request.Params["id"]; string pwd = Request.Params["pwd"]; string app = Request.Params["app"]; if (id == "ppp" && pwd == "ppp") &n ...Show All
Windows Forms c# 2.0 dataGridView
Hey guys, I have searched and there are loads of suggestions but I cant seem to apply any of them to my situation so here goes: I download an XML file from the web(server list), and go through each node and then add a row to the dataGridView, I want to show every rows backcolor red for each server that is down: Heres some code to help: System.Net.WebRequest myRequest = System.Net.WebRequest.Create(rssURL); System.Net.WebResponse myResponse = myRequest.GetResponse(); System.IO.Stream rssStream = myResponse.GetResponseStream(); System.Xml.XmlDocument rssDoc = new System.Xml.XmlDocument(); rssDoc.Load(rssStream); System.Xml.XmlNodeList rssItems = rssDoc.SelectNodes("sessionlist/server"); string servername = ""; string serverip = ""; string st ...Show All
Visual C# Problem with Keystroke Capture...
Hello, I'm having a problem in C#. I want to set up my form so that the use presses a button, then the form will capture a single keystoke and then be done. Here's what I have: private void button1_Click(object sender, System.EventArgs e) { this.KeyUp += new KeyEventHandler(OnKeyUp); } public void OnKeyUp(object sender, KeyEventArgs e) { MessageBox.Show(e.KeyCode.ToString(), "Your input"); e.Handled = true; } If I use the KeyDown the arrow keys won't be captured. What am I missing here Sorry if this is simple, I'm trying to learn C#. Thanks! Hmm, unusual code. KeyDown or KeyPress Form.KeyPreview = true I'd just set a form member vari ...Show All
Visual Studio Team System Restoring TFS on a Virtual PC: problem with Sharepoint.
Hi all, I'm making a proof of restoring our TFS on a Virtual Machine. I've managed to install TFS on the VPC, and it works ok. Then, I've followed the steps to restore TFS in another machine, and now I can't access to the Sharepoint Administration Central site, and I'm getting these errors on the event log viewer: ---------- Event Type: Failure Audit Event Source: MSSQLSERVER Event Category: (4) Event ID: 18456 Date: 04/01/2007 Time: 9:01:29 User: AVANADE-TFS\TFSSERVICE Computer: AVANADE-TFS Description: Login failed for user 'AVANADE-TFS\TFSSERVICE'. [CLIENT: 128.22.10.76] For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 18 48 00 00 0e 00 00 00 .H...... 0008: 0c 00 00 00 41 00 ...Show All
