RaviKanthReddy's Q&A profile
Smart Device Development Abort an Asyncronous Web Service Call
How do you abort an async web service call. If you determine that a response hasn't returned within X time frame, how do you properly abort the web service call Currently I'm throwing a time out exception, is there something further I should do to perform an abort Example below: IAsyncResult ar = WebService.BeginSendXML(XMLIN, null , null ); int secondsToWait = 0; while (!ar.IsCompleted) { // do work while waiting if (secondsToWait++ > electRecWebService.Timeout) //throw a new web service timeout exception throw new WebException("Async Failed - Timeout", System.Net.WebExceptionStatus.Timeout); else Thread.Sleep(1000); } webserviceResponse = WebService.EndSendXML(ar); ...Show All
Visual C# Callback from C++ .dll fails with "The memory could not be written"
Hi, I'm having serious problems getting code that used to work in Visual Studio 2003, to work in .NET 3.0. I'm using Microsoft Expression Interactive Designer, but I figure my question is not really related to that product at all. I have a dll that controls a USB device (an ArtLebedev Mini 3). I can call bits of the dll fine and correctly set up my USB device. The problem is using a method within my c# code for the callback when a button on the device is pressed. After setting up the callback, pressing a button on the USB device causes the whole application to crash with a "The memory could not be written" error. Which i'm assuming means the dll is trying to call my method in c# but for some reason can't (memory address has chang ...Show All
.NET Development Retrieving data from Excell 2003 - Could not find installable ISAM.
I am trying to access some data in a Excel 2003 file and import it to a dataset using a oledb provider.Here is the code : string cnxString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\TEST.xls;" + "Extended Properties=Excel 8.0;"; this.excelConnection.ConnectionString = cnxString; this.excelConnection.Open();I keep getting this error :A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dllSystem.Data.OleDb.OleDbException: Could not find installable ISAM.I have search everywhere there is a space between data and source. I have read the KB articles but nothing seems to be doing it. Any help would be greatly appreciated.Thanks. ...Show All
Visual Studio problem with new software
I recently bought 2005 Visual Studio Academic version...I installed and all seems smooth...however I click on for new project CLR console application give it a name and then the software closes...when I reopen there is a saved folder of the name of this project but I cannot open ant .h or cpp file I uninstalled and put back on...is this a bum copy I have 2003 with no problems Thanks open file ...new project...clr ...console application....box xomes up I put in name test 5... click ok and software closes I reopen and click folder and get tab test5.vcproj < xml version = " 1.0 " > < VisualStudioProject ProjectType = " Visual C++ " ...Show All
Visual Studio 2008 (Pre-release) ZIndex not always respected
Hi, It seems I hit some edge of WPF in one of my user controls, since WPF does not always render my visual tree as it should (specifically - it sometimes "forgets" to respect ZIndex). The control I am talking is a viewer of very large images. Upon startup, it is provided with a "thumbnail" image (in usual screen size) and thousands of "tiles" - small images which make together the whole image in various zoom levels. The workflow of the control is simple (I left out parts unrelated to this msg's subject): user changes zoom level or position thumbnail image is brought to foreground (zindex higher than zindex of tiles) to cover changes to tiles which are goint to happen all tiles which are needed no more are re ...Show All
Visual Basic how to add DLL to Resource
ok how can i add a DLL file (my case : Interop.SpeechLib.dll) to the Resource and use it in my code i have to imports spvoice i cant do this if i didnt refrence the Speech Lib i dont want to have a DLL file just my EXE file . and if i build a CLASS librery (DLL) so its makes this different tnx :P http://madebits.com/netz/download.php also I'm trying to remember the name of the utility. I believe it comes with the VS2005 sdk but ms makes one also. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA beta 2: Live License?
I was simply wondering if I could use the beta to build a game to be released in the beta timeframe Or would I have to wait for the final version to be released and therefore have my code refactored based on the eventual changes (for sure the Content Pipeline implementation) Thanks. Thanks Zman, that was the answer I was looking for... My bad, I should read these intallation EULA and stop keeping pressing the "accept" radio button and Next ;-) ...Show All
Windows Live Developer Forums How to connect MSN space photo album?who know the interface?
I want to do a photo album browser gadget,but I don't know the interface which our gadget connect with MSN spaces.I want to get the url or interface,then our team can do other work.Who can tell me Thank you very much! Ping We don't expose a photo album API at this time. Photo information is exposed in the RSS feed for a space though. Keep in mind that RSS feeds are only enabled for Spaces with public permissions. cheers, greg <8-) ...Show All
Visual C# [off topic] Logging from MultipleAppdomains within application
I am using a FlatFileTraceListener and the filename is set as "trace.log" in the config file. ------------------------------------------------------------------------------------------------ Here is the TestLogging class public class TestLogging : MarshalByRefObject { public TestLogging() : base() { Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write(string.Format( "Logging from AppDomain {0}", AppDomain.CurrentDomain.FriendlyName), "General"); } public void Test(string message) { Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write(message, "General"); } } --------------------------------------------------------------------------------------------------------- Here is the Main Form: OnLogFromCurrentDomainButtonClick ...Show All
Visual C++ MultiByteToWideChar of VC8 went wrong, but VC7 worked.
Dear all, For example: MultiByteToWideChar(CP_UTF8, 0, str, (int)strlen(str)+1, wstr, 1024); Assume "str" is a "bo-po-mo-fo" Chinese phonetic alphabet such as "ㄉ", in VC8, this function always failed; however, it worked fine in VC7. Does any one know how to fix it Thank you very much! Sincerely, Mike Hi b6s, how does the function fail - what is the return value If your input is chinese you should provide the correct code page as first parameter. Something like 50936 for Simplified Chinese. Have a look at Code Page Identifiers in MSDN. -- SvenC ...Show All
Smart Device Development Deploying CABs to a device via ActiveSync using an MSI with installer class
I'm trying to deploy CAB files from my application to a device using a MSI project using ActiveSync. This method requires the CAB and ini files to be in a sub directory of ActiveSync. So I'm using an installer class to copy the CAB and ini files from the default c:\programfiles etc to the ActiveSync dir. The default dir is hard coded. This method is described in the msdn "Deploying >NET Compact Framework 2.0 Applications with cab and msi file" After a bit of tweaking this method works ok as long as the user does not change the installation folder from the default to something else. If this happens the installer class fails to find the cab and ini files and consequently the deployment fails. Is there any way of ...Show All
Windows Forms Bindingnavigator replacing
Hi all I have application with 20+forms generated using visual studio 2005 with bindingnavigator in each form. I want to replace bindingnavigator with a new bindingnavigator user control that i developed at runtime. Is there is a way to replace the bindingnavigator with mine at runtime. the only way i know is drop it and placing mine at design time. thanks Hi Ken Tucker pls , Can you explain how to do that with sample of code- and what event do i write it (constructor , load event or elsewhere). I want to minimize changes. thanks ...Show All
Visual Studio How to install & use MsBuild in VS 2005
Hi all, I am new to MsBuild, I know it works under VS 2005 only. I have already installed & using VS2005. Now I want to install MsBuild. Is there separate executable available to install MsBuild if yes, please give me the link to doenload it. Please tell me any other method for installation of msBuild. Thank You. Harshal. Also, if you have VS2005 installed, you don't have to do anything to "use" it. Just create a C# or VB project inside Visual Studio, and when you select build from within VS it will use MSBuild to build it. You can also, as Steve mentioned, execute it from the command-line on the same project file that VS created. Neil ...Show All
.NET Development Framework 3.0 and System.Printing
Everything looks good in the documentation about System.Printing (PrintQueue/PrintTicket/etc.) , however it doesn't exist in the November CTP. Or at least, it is not accessible through VS2k5. You still need to use System.Drawing.Printing from Framework 2.0. Is there some setting that I've missed, is this not available yet, pending the release of Vista, or was this a "feature" that fell out during final development, but the documentation was retained I'm trying to build a "smart" little application to anticipate user needs (few options), based on the capabilities of the printer. The old way was complicated, but System.Printing provides a clean/clear/elegant approach to getting and retaining the needed information. ...Show All
Visual Basic change from vs2003 to vs2005
Hi, .Net experts, I am at the eve of go live with my first full scale dot net windows app. I developed it in vs2003. Now we are thinking about change over to vs2005, primary for its one touch deployment capability. I know there are other newer features/upgrades associated with vs2005, but for this project, they would not make too much difference. My concern is that will the change break anything. I know a lot of factors can come into place here. Here is the laundry list. And please give me your advice, thanks! Old: vs.net professional version 2003 Upgrade New: vs2005 Professional Upgrade Nature of the app: windows app, client/server with sql server 2000, up to 50 users in one physical location, d ata access layer is using Microsoft.Appli ...Show All
