GAURAVG123's Q&A profile
Visual C# input data to website
Ok right now I have to configure routers manually by inserting the exact same data into a router's configuration panel (website on router) then swap out the configured router with one that needs the exact same setup and redo this process over and over. I would like to write an application that fills in all the needed boxes,selects values from drop down menu's and fills in any other information and presses the save & restart button for me is this possible I initially though about trying to find the file on the router that its writing to thinking making its one config file maybe if thats the case I could just write to the file but im not entirely sure. right your first idea sounds like what I want to do ...Show All
Visual C++ Semaphore Help
Hi, I was wondering if you could help me. Basically i have 2 threads. A ship and a train. when the ship hits the bridge i want the bridge to open and the train to wait until the ship has passed through and the bridge has closed before the train continues. Heres my code: semaphores used: Semaphore bridgerequestopensem(0,1, "bridge request sem"); Semaphore bridgeopensem(0,1, "bridge open sem"); Semaphore bridgerequestclosesem(0,1, "bridge request close sem"); Semaphore bridgeclosedsem(0,1, "bridge closed sem"); Bridge cpp: for(;;) { bridgerequestopensem.wait(); // wait for signal to open bridge cout <<"Opening the bridge"<< endl; trainBridge->opening(); / ...Show All
Visual Studio Tools for Office Selection.Move infinite loop on Word 2007 document
I am writing a Word 2007 add-in with VSTO SE. A button in my custom task pane moves the Selection through a document in steps of one paragraph. The code is shown below. It hangs midway through the document in an infinite loop. The document I am testing is a Microsoft financial document at http://www.microsoft.com/msft/download/FY06/MSFT_3Q2006_10Q.doc . Is this a bug It does the same thing if I save the document as a .docx file. The problem is the selection keeps moving in a circle in this table (from Page 20 of the document). Three months ended March 31, Percentage Change Nine months ended March 31, Percentage ...Show All
Internet Explorer Development Info targeted to frame by host app - opening in a new Window in IE7
I have a host based application which when called from one frame, returns forms and/or information into another frame. IE5 and 6 work fine. When used in IE7, the returned html stream is sent to a new window (not tab) instead of going to the target frame in the original document. Is there a problem with IE 7 in handling these interactive streams targeting frames Thanks, Steve After some experimenting and research, I discovered the problem. There are several sites under the URL regis.state.va.us . Some of the pages that were pointing to the sites underneath using the URL www.regis.state.va.us . Apparently previous versions of IE and the other major browsers knew enough to throw out the w ...Show All
Visual C# Mnemonics unpainted with themes
With the .net 2.0 the underlines for mnemonic characters are not painted. I am not sure if this bug goes back to .net 1.0. Does someone have a workaround I'm so sorry. I didn't realize they were off. The designer fooled me into believing that they were on. Oh well, the designer needs to paint them unconditionally... Problem solved ...Show All
.NET Development can’t find System.Configuration.Configuration Class
Hi, I'm new in .net programing. I'm trying to use the System.Configuration.Configuration Class but it doesn't exist under the namespace System.Configuration. I've just installed SP1 for .NET 2005 but nothing changed. If somebody have a clue I'll appreciate it. Thanks, Rodrigo. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar first run
Being a complete newbie to all of this C# and XNA i loaded up spacewar click on build then installed the project. Then i ran it and a error window popped up, details said something about a missing something or file not found, i sent a report to MS from the window that popped up. I can see im going to have to buy a C# for dummys book cause im totaly lost as to what to do first... On my first run i get "The values used in the attempt to create the GraphicsDevice were invalid." on this line " graphics.ApplyChanges();" i have the following development/sdk apps installed (.net framework 1.1 & 2.0, DirectX SDK Aug 06, MSDN 05 Express Edtion, Visual C# 05 Express Edition & XNA G ...Show All
Visual Studio Express Editions Need help reading a file
I need a way to read the contents of a binary file up to a certain string of characters & then read x number of characters after that. Could someone kindly show me how Thanks... But I need a way to check the characters as they're being read in. The character string that I'm seeking could be anywhere in the file, not just at the 100th byte. So how do I accomplish that ...Show All
SQL Server Hosting SQL Everywhere In a Windows Service
The Sql Mobile site on MSDN recommends that you do not host SQL Everywhere when running as a service. Is this a recommendation, if so why, or is it simply not possible. My understanding is that when hosteed in a IIS hosted application a not supported exception is throw. If anyone has any ideas on this or pointers to some resources i would appreciate them. Thank You At present we have blocked hosting Microsoft SQL Server Everywhere Edition under IIS (by default). This is not a officially supported scenario. There are few techinal + business jsutifications behind this decision. You can get it working under hosted environment, but it is not officially supported. After Microsoft SQL Server Everyw ...Show All
Visual Studio 2008 (Pre-release) Trusted Subsystem Implementation
We are building an application that has multiple WCF services hosted in IIS on multiple machines within a customer's topography. The services need the ability to access network resources (hops to other WCF services, database, file system, and active directory). We have been treating public services as trusted subsytems: access to the public service is authenticated and authorized using the user's identity, but access to other resources within the service are executed under a trusted identity. Here is my question. What is the best way to access the other resources under the trusted identity Run the App Pool as Network Service and Impersonate when access to the resource is required. Seems kind of messy having to store the truste ...Show All
Software Development for Windows Vista Problem with InstanceOwnershipDuration
hello everybody, I have a little problem with understanding the InstanceOwnershipDuration. For testing I have a sequential workflow with 2 Delay Activities; and I added SqlPersistencyService with a TimeSpan of the ownershipDuration for 0 seconds... My sequential workflow looks like: codeActivity => delayActivity for 5 seconds => codeActivity => delayActivity for 10 seconds SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService (connstr, true , new TimeSpan (0,0,0,0), new TimeSpan (0,0,0,2)); workflowRuntime.AddService(persistence); When I start the application, the second codeActivity repeats and never ends like a infinite loop... Why does it behave like this thank you in ...Show All
Visual Studio Express Editions ToolTip Help
private void Label_MouseHover(object sender, EventArgs e) { ToolTip t = new ToolTip(); t.SetToolTip(xxx, "hi"); } How do i get it so when i hover the label a tooltip pops up im not sure what goes in xxx the label is inside a statusstrip Ive tried both your methods But i get this error: Error 1 The best overloaded method match for 'System.Windows.Forms.ToolTip.SetToolTip(System.Windows.Forms.Control, string)' has some invalid arguments D:\My Documents\Visual Studio 2005\Projects\App\App\Form1.cs 297 13 Form1 Error 2 Argument '1': cannot convert from 'System.Windows.Forms.ToolStripStatusLabel' to 'System.Windows.Forms.Control' D:\My Documents\Visual Studio 2005\Projects\App\A ...Show All
Visual Studio Express Editions Distance between 2 points
Hi All, How can I find the distance in terms of pixel or any other value between 2 points i.e. Point1(x, y) and Point 2(x,y) Tks in advance Cheers As in...basic math Learned in school Who'd have thunk that math would actually be useful... ...Show All
Visual Studio Suppressing a CR Box and Line object
Hi, hope someone can help. I want to set the suppress properties to true or false on a line and box object during runtime. The user checks a checkbox on a windows form as to wether they would like the line and box to be displayed. How do i pass the value of the checkbox on the form to the crystal report to change the suppress value from true or false an visa versa. I am using vb.net 2005 and cr XI Regards Darren. ...Show All
Audio and Video Development VC-1 and PEP
Given the promise of so many good things from MS's adoption of the VC-1 codec and the wonderful marketing campaign surrounding WMES , despite downloading all possible tools I still remain unable to do a simple operation : rejoin .wmv segments without glitches or artifacts showing in WM Player . I have heard a few people say that it is down to the player being unable to deal with the artifacts left behind during the splitting process, but I can see these problems even before the files are joined and whilst they are played individually. Can anyone help me solve this mistery Thanks to all in advance. Claudio Hello Ben, I do apologise for the lateness, and thank you for your reply. We have used a number of programs ...Show All
