Arun_Adonis's Q&A profile
.NET Development Asynchronous ADO.NET wont wait for WaitHandle
SQLconn = new SqlConnection(dbConnectionString); SQLconn.Open(); SQLcmd = new SqlCommand(SPName, SQLconn); SQLcmd.CommandType = CommandType.StoredProcedure; SQLcmd.CommandTimeout = 0; // And start executing IAsyncResult iaR = SQLcmd.BeginExecuteReader(); waitHandles[SQLEVENT] = iaR.AsyncWaitHandle; int index = WaitHandle.WaitAny(waitHandles); With this code the WaitAny returns immediately with the SQLEVENT signaled, iaR.IsCompleted is also true. The code then spends 5 minutes (its a long procedure) waiting for 'SqlDataReader rdr = SQLcmd.EndExecuteReader(iaR);' duh !! w ...Show All
Software Development for Windows Vista Using XPS on non-Vista platforms
Hi I was reading the MSDN article about XPS, and I'm quite intrigued. I'd like to have a go at using XPS for a document creation system on our internal Intranet. I suppose there are 2 main questions.. 1) I've got VS2005 - can I write XPS documents now Or do I need some other SDKs (eg WPF). Would I be able to view/print them ! 2) When does v1.0 come out, or a go-live license ! Cheers Dan I think you'll need the WinFX Runtimes installed (alteast for the user) if its a non-vista machine - like XP or Win2k3. The WinFX runtimes will allow you to view the XPS documents in the xps ho ...Show All
Software Development for Windows Vista regarding installation
hai when i tried to install winfx runtime 3.0 (january CTP), i couldn't install i got some errors... before i tried to install winfx runtime i unistalled all the previous versions of frame work and SDK. Then i installed the same in the following order Visual Studio 2005 (RTM) windows SDK (january CTP) After this tried installing winfx runtime 3.0(january CTP) but couldn't continue that....i just want to know wheather the order of installations i followed is corect....I also want to know the proper order for installing Windows Presentation Foundation,Windows Communication Foundation and Windows Workflow foundation...need som ...Show All
Windows Live Developer Forums Messenger Live Call in Canada
Does anyone know when Live Call will be available in Canada I have been waiting for Messenger to have a call-out feature for a long time now and finally it arrives except it's not available in Canada!! These forums are for development questions only. Questions regarding the availability of consumer level features should be directed to consumer focused groups. ...Show All
Visual Studio 2008 (Pre-release) Data binding question (ObjectDataProvider attributes)
In working with the Feb CTP Hands-On Labs, I notice that I can set the ObjectDataProvider attributes to anything and the application still functions. When and how are these attributes used <ObjectDataProvider x:Key="ContactListDataProvider" MethodName="AddressBook.ContactList,AddressBook"/> I can changes these to anything and the binding still works: <ObjectDataProvider x:Key="Whatever" MethodName="AddressBook.WhoCares,AddressBook"/> You will find here a good explanation: http://www.beacosta.com/2006/03/why-should-i-use-objectdataprovider.html ...Show All
Visual Studio Team System Middle tier caching - Is it available? (Excess reads by prc_QueryItemsExtendedLocal)
Are there any caching options for the middle tier of TFS I work on a large system that has the following stats: 205 .sln files 342 .csproj files 22335 .cs files 5713 directories and the first time time I open a solution in a new Visual Studio session there is a request like the following: exec prc_QueryItemsExtendedLocal @identityId=27,@workspaceName=N'BS220',@localItem=N'C:\enterprise\',@deletionId=0,@depth=120,@deleted=0,@itemType=NULL This query takes 17 seconds to run and issues over 2 million reads. If a middle tier cache existed it would simply return the same result as when the query was issued earlier (s ...Show All
Visual C# Capture video stream from camera plugged to usb port
Hello all, how can i capture a video stream on a usb port on win xp using C# language only thanks in advance for any suggestion Hello all, how can i capture a video stream from a camera connected to a usb port on win xp using C# language only i would like to set a configuration file in which i fix the settings of the video such as brightness, hue, contrast... thanks in advance for any help ...Show All
Visual Studio Express Editions Getting HTML from a website
Hi guys, I have a fairly simple question reguarding connecting to the internet in a VB app. I was just wondering how i might go about getting the HTML from a website using the URL in VB.net. For instance, in perl you might just say my @data = get(http://www.google.com/); How can i do this in VB Thanks in advance -Robert One way of doing it may be. download the HTML file to a file and then read this file My.Computer.Network.DownloadFile(<URL>, <Filename>) Dim s as string = My.COmputer.FileSystem.ReadAllText (<Filename>) Not the most efficient but it should work. ...Show All
Visual Basic Trigger Access Macro From VB.NET
Hi, Is there a way to trigger or open a MS Access DB macro from a VB.NET application If so then HOW. Thanks Mike Yes there is a way. I used to do it in VB6 all the time, but haven't tried it in .Net yet, so i'm not sure of the code. Try these forums, as you may get better restults. For VBA related items. http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=74 For MS Office / .NET related items. http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=16 Dustin. ...Show All
Visual Studio Team System newbie in build automation.
Hello, in my company, we develop the software and for example after 1 week we have a release nr1 for testing, the second week release nr2 for testing, and so on. All this have to be done manually. I would like to have a way tro tack each version, in case I need to install the version from the last week. Is this possible with build automation Or its a matter only of source code version control I guess Team Build doesnt make installer but it generates versions numbers automatically If I understand the scenario correctly, you keep developing in the same branch - however, after every week, you release a build for testing. 1. ...Show All
Visual Studio Tools for Office How to load word documents from a memory stream
All, I know this has been an age old question. I personally have been dealing with this issue since office 97. But as new toolsets are made available, is there anyway to load word documents from memory stream rather than from a physical file path. I have an application that stores .dot file in a database and depending on the application that they select I generate a dynamic form for the users to fill out base on the XSD for the document. Once the user has finish with their data entry I want to pull the dot out and make the appropriate substitutions and project result to the client. What I am hav ...Show All
Smart Device Development Setting Focus during activated event doesn't work.
Hello, I have an application that has a main form which correctly sets the focus during the activate event to the control that I want, however, any new forms that I open will not retain the focus to the control I set. The focus always returns to the form after the activate event is complete. Is anyone else having this issue Thanks Figured out a workaround finally, Put a myControl.focus() call in the gotFocus event for the form. Works every time now. Thanks ...Show All
Software Development for Windows Vista Query about whether to install PSDK
Hiya, Ok. I have an XP dev box and I have VC++6 and VS2003 installed. I have some customers that require me to make modifications to existing programs using VC++6 to support v.old OSs (e.g. Win95b). I use VS2003 for just about everything else. I've downloaded and installed the VC++ Express edition, and after some examination was about to download and install the latest PSDK (Windows Server 2003 SP1 PSDK) as suggested within VC Express. Since I must retain access to the old VC++6 environment, I am somewhat concerned regarding this comment " The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on ...Show All
Visual Studio Express Editions Skipped Build: Project: Scribble
Ok, fine. http://download.microsoft.com/download/B/A/D/BADA8219-9761-498D-85B4-4565C28F4DB8/Language/General/scribble.zip.exe I exttracted the files, loaded the project, and tried to build it. The output window says ------ Skipped Build: Project: Scribble ------ ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ========== Up to date Then why does the Debug menu show neither Start Debugging nor Start Without Debugging THis happens with other samples too. Change "Solution Platforms" dropdown list, located at the top of the IDE (it's ghosted out& ...Show All
Visual Basic Dynamic Menu
I wanted to create a menu system that would load the names for the items from a text box. Could someone please help If you're using the VB Whidbey beta, you can create dynamic menu's in VB.Net using MenuStrips and adding menu items. The menu strip can be assigned to many controls. Here's some good links: Changes from VB6 menu's: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/html/267e7ce2-6c18-40d7-ac1d-d51bf8784199.htm MenuStrip control: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmclictl/html/f45516e5-bf01-4468-b851-d45f4c33c055.htm Me ...Show All
