Avesta's Q&A profile
.NET Development How to recover socket after failed SSL negotiation?
There are so few examples and direction I need to ask this question. I am implementing SSL over FTP. The FTP protocol is such that a a clear channel sequence of requests are made in clear text, and the server responds to each in clear text. Then simultaneously AuthenticateAsServer and AuthenticateAsClient are called. If there are certificate issues at the server, the server will fail. The client hangs indefinitely. I would have thought the AuthenticateAsClient would have failed as well, but this does not happen. At this point, as per FTP protocol, it is inappropriate for the server to send an unsolicited response. Yet this seems ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spectrum Analyzer for Real time Audio.
I have a directX application which reads real time audio from a sound card (mic) and calculates FFT for it. Frequency of sound per .5 second. I need to create a spectrum Analyzer kind of component. Any way I could do this using DirectX (Direct 3D maybe). I am not looking for 3rd party component. --Yatharth Hi guys, i cant remember the url but if u type 'bass .net' into google, you will get the url there, they offer a free .net wrapper, which allows you to get the audio data from it, you can also apply 3d sound effects and stuff. the wrapper is free so long, as it is not used in programs which are charged for, if you charge ...Show All
Software Development for Windows Vista WWF Beta 1.2 not installing properly
Hi, I tried today to install WWF Beta 1.2. However, after starting the setup, accepting the EULA, checking all 3 boxes, and selecting Install the GUI goes immediately to the final page telling me that the installation was succesful. However nothing is installed. I have the VS2005 RTM version/Windows XP SP2. The log file stops at [11:51:45 AM Error] c:\depotsetupv2\private\common\setup\wizard\exe\progressdlg.cpp(1109): FAILED hr = 80070422 === Logging stopped: 11:51:47 AM Tuesday, November 15, 2005 === Any clue on this will be appreciated. Thanks Doriak Finally i got it installed. The installation did no ...Show All
Smart Device Development Takes several pictures with CameraCaptureDialog ?
Is someone succeed to takes several pictures with CameraCaptureDialog I can't succeed to do this, the windows don't close itself if I do a loop... CameraCaptureDialog cameraCapture = new CameraCaptureDialog (); string PhotoPath; String PhotoName; cameraCapture.Resolution = new Size (640, 480); cameraCapture.InitialDirectory = "\\Storage Card\\Report photos\\Photos en attente" ; cameraCapture.Title = "Report Photos ASF" ; while (timer1.Enabled == true ) // This loop doesn't work; { try { if ( DialogResult .OK == cameraCapture.ShowDialog()) { PhotoName = "\\GS ...Show All
Smart Device Development Eureka
Hi, I m trying to access the internet in the asynchronous mode for wince 4.2 smartphone 2003 SE using VS2005. I have already tested the synchronous mode for operation on the emulator. However if I try to download the same URL in asynchronous mode, InternetOpenUrl() API call fails with error code as ERROR_IO_PENDING. I have tried out almost all the code samples on the internet (their happen to be only a couple of them it seems). But still this error is very unexpected as the same URL opens in the synchronous mode. Pls take a look at my code here : the url i pass to this function is http://10.20.40.1/foo.html Any help on ...Show All
Visual Studio How do I connect Crystal Reports to an SQL Express MDF file.
I want to connect to an SQL Express MDF database file. How do I set up the connection I don't see a way to set up the connection in the Database Expert. I tried to create an ODBC (RDO) data source by using the following connect string: Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Documents and Settings\dtorg.LUMINET\My Documents\Dev\OMx\Version 1.0\Source\Src\Services\DataManager\OmxDataDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True I then selected the server .\SQLEXPRESS with a user id and password that I set with sp_addlogin I get the error: --------------------------- Crystal Reports ActiveX Designer ---------- ...Show All
Visual C++ Installing a driver ?
Hi all. I have a C# program which I install with an MSI I create with 'Advanced Installer'. The version I have does not allow me to install a driver. Obviously, my app needs .NET, so I wrote a Win32 windows app, which provides a splash screen, installs the .NET framework, etc. I'd like to also install a .inf file ( a driver ) in this code. However, googling 'C++ install driver' gives a ton of useless matches ( I'm usually good at google but not this time ). Does anyone know how I can install a driver programatically Thanks This worked back in the days of NT4 (without error checking): const char* pathToDriver = "c:\my ...Show All
Windows Forms How to Create An OnError Event
I would like to have an Event fire any time an unhandled exception occurs in my control. For those familiar with ASP.NET it would in essence do the same thing as the Page classe's OnError Event. Does anyone know if this is possible Thanks, Paul yeah don't think it can be done - but then again, this is no different than wi ...Show All
Visual Basic How to display an alert message in VB.NET
I am developing an IT Asset Tracking System using VB 2005 Professional. One of the fields I have is a Warranty Start and Warranty Expiry date. I would like to be able to display some kind of informational alert to indicate that a particular asset's warranty has expired or is about to expire in 7 days. How do I go about implementing something like this and where is the best place to display this. Regards Dipendra Let's assume that you have a list of the data sorted by expiration date, which you are keeping updated. (This could be a separate list of existing objects that you are inserting into, or ma ...Show All
Smart Device Development Can't deploy project to emulator or device in Visual Studio 2005 Beta 2
When I build a C# project and try to deploy it to the emulator or device, a message box always pups up and says "No such interface supported" and the deployment fails. A error message in the output window shows: "Error: The operation could not be completed". Can someone help me to solve this problem Did you have a previous version of VS2005 installed on this same machine It sounds like there are conflicts between certains dlls. You may want to try to completly remove the betas of VS2005 using the tool from : http://go.microsoft.com/fwlink/ LinkId=47598 If the problem still happens, could ...Show All
Visual Studio Express Editions Help with databases
Hi I have a database with about 20 columns one of which is vehicleNumber and one of which is temperature. I have many different vehicleNumbers. When the user types a vehicleNumber into a text box I need to collect all the temperatures for that vehicle and find the average temperature. I am not using SQL, I'm using an access database with the dataset and all that. I found a little information suggesting a dataview. Can anyone help me Just to visualize here is a shortened example of my database: VehNum Temp 123 73 456 68 123 83 456 79 123 81 456 72 ...Show All
Visual Studio Express Editions Problems with Downloading Registration Benefits
There have been several reports of problems with accessing and downloading registration benefits. We have investigated the issue and have news to report. This sticky thread will be updated with additional information as it becomes available over the next few days. Background In order to negotiate deals with partners and authors to provide the highest value benefits, we must must be able to guarantee a secure download center that limits benefits distribution to those who have registered. We use the Microsoft Connect site to provide our secure download infrastructure, which is why you are redirected to the Connect site from ...Show All
Windows Forms Drawing in a Panel
Hi, I need to do complex drawing in a Panel to give the opportunities to the user to see the design prior to print it. I put really basic code to draw a rectangle in the panel but I don't have any scroll bar to see the rest of it. How do we tell to the panel that it's fixed display area will be ex: 900x400 and the virtual display area 3000x2000. I tried to set the autoscroll prop but without success Code sample (very basic...I know ) Dim vdesign As System.Drawing.Graphics vdesign = Panel1.CreateGraphics() vdesign.DrawRectangle(System.Drawing.Pens.Black, New System.Drawing.Rectangle(0, 0, 3000, 200)) Thanks Serge ...Show All
Visual Studio Express Editions Help with TextBoxes
Hi, I'm a Newbie. Suppose I have 20 Text Boxes; say TextBox.1 to Textbox.20. How can I access or add data to these Text Boxes by using a variable (e.g. put 5 in Box 5, put 9 in Box 9, etc.) I don't want to write a separate piece of code for each individual Text Box. Thanks, David. Hi Mattias, Could you give me a hint about how to create such an array Something like : Public MyTextBoxes (20) ... I'm familiar with simple numeric arrays but I really have no idea how to create an array of textboxes. Thanks, David ...Show All
Visual Studio Different file types between Vss6 and Vss2005
Hi, I'm currently evaluating Vss2005 client with some existing databases created with Vss6. I have detected a strange issue: a text file appears with Vss6 client as a text file (quite normal), whereas it appears as a binary file in Vss2005. In the same way a binary file appears in Vss6 as binary and has unicode8 in Vss2005 (please note that I have already tried to deactivate the automatic file file type recognition). It sounds like Vss6 and Vss2005 are not really compliant on that point ... For information I'm using Vss2005 v8.0.50727.42 (french). Thanks for sharing your experience. Cheers, Frederic. ...Show All
