Bhupathi Venkatesh's Q&A profile
Smart Device Development USB Port
Please suggest me how can I write applications for USB and Irda drivers. How can I open the USB/Irda ports, and read/write to/from the ports. Hi, I don't know what exactly you want to do with IR and bluethooth, but I suppose that OBEX (Object Exchange) API will be sufficient. It is very well described in MSDN (and recomended) . But If you determined to 'open/close USB/Irda ports' you have to deal with Virtual COMs. About Bluethooth you have deal with Bluetooth Protocol Stack. (hint look in MSDN for Bluetooth Protocol Stack and PORTEMUPortParams structure to specify attributes for the virtual COM port).In case of IR Win Ce has IR stack. In both cases you have to deal with a lot of stuff as RFcom ...Show All
SQL Server Files not creating on Win2003
I have created a package which extracts data from a table and creates several files. This works fine on my PC (WinXP SP2), but when i deploy it to the server it doesn't work. I have also tried to create the package from scratch on the server as the administrator and it still has the same problem. Anyone have any ideas Sean, The package is deployed on a Windows 2003 Standard server, SQL Server 2005 Standard. I am writing the files to a directory on C:\ and have tried giving Everyone full control on the directory and still no files are created. Is there anywhere else i can check for the correct permissions Thanks ...Show All
SQL Server Get connecting client PC's name or IP address
Hi All, Is it possible to retrieve the client PC's computer name through SQL I'm storing workstation specific data in a table and want to be able to retrieve it in order to persist the state of the application between sessions. Perhaps there's a better way to do this that I'm not aware of If so, please advise. Thx For PC name you can use HOST_NAME() for IP you can use these methods SQL 2005 you'll find it in the sys.dm_exec_connections dynamic managment view in the client_net_address column. SQL 2000 DECLARE @Hostname VARCHAR(255) SET @Hostname = host_name() CREATE TABLE #Results ( Results VARCHAR(4000) ) DECLARE @Commandstring VARCHAR(300) SET @Commandstring = 'ping ' + @Hostnam ...Show All
Visual C# Closing a form before opening another
Hi, I am trying to develop a simple application. I have a login Screen and on successful login the main screen. Now when the login is a success, I want to close the login form and show the main form. P.S. 1. login form is the startup form 2. I do not want frmLogin.Hide() 3. when I try frmLogin.Close() before frmMain.Show()..flags error (I guess this is logically correct, but then whats the work around ) Please suggest the way in which i can accomplish this. Thanks in advance Here is my solution that works for me: Normal application start: Application.Run(formMain); In the formMain Load event: I instance spash form and show it. Start some initialization like database provider, reading application settings. Hide splash form Instance ...Show All
SQL Server OLE DB Destination - Fast Load with Maximum Insert Commit Size
I'm seeing some strange behavior from the OLE DB Destination when using the "fast load" access mode and setting the "Maximum insert commit size". When I do not set the "Rows per batch" or the "Maximum insert commit size", the package I'm working with inserts 123,070 rows using a single "insert bulk" statement. The data seems to flow through the pipeline until it gets to the OLE DB Destination and then I see a short pause. I'm assuming the pause is from the "insert bulk" statement handling all of the rows at once. When I set the "Rows per batch" option but leave the "Maximum insert commit size" alone, I generally see the same behavior -- a single "ins ...Show All
SQL Server SQL Server Mobile 2005 Merge Replication Problem on Windows Mobile 5.0
Dear ppl, I am writing an application for a device (MDA Pro T-Mobile) having Windows Mobile 5.0 using -MS .NET Compact Framework 2.0 SP-1 -SQL Mobile 2005. -VS 2005 .NET The application uses Merge Replication. The error occurs in the Synchronise() Method of the SqlCeReplication object. " SQL Server Mobile encountered problems when opening the database." repl.AddSubscription( AddOption .CreateDatabase); repl.Synchronize(); I don't understand why I am having this error. It does create the database on AddSubscription() method but it is failing opening the database on Synchronise(). I have also tried uninstalling and then reinstalling all the SQL Mobile components in the following order. -sqlce30.wce5.armv4i.ca ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw a sprite with an aplha map
Is it possible to draw sprite using another sprite as an alpha map As far as I've read the only way I can do this is by first using the DirectX Texture Tool to create a DDS file. Is it wise to be talking about sprites in XNA when it's really a Texture2D How do I access more blending options for the source and destination I don't know how to do what you're saying in code. But you don't need expensive software to make a gradient transparency image. You can do that using Gimp . It's a free image creation tool with fairly decent tutorials and support out there. Maybe that will work for you to get this effect you're going for. I'm not an exceptional artist or anything, but it's the imaging tool that I use for everything I do. Hope that ...Show All
Windows Forms During installation how to show dialoge form conditionaly for dotNet Windows Application Setup
Hi, For dotnet windows application setup project, I have two dialogue forms in user interface editor section. First dialoge form has checkbox. During installation wizard on first dialoge form if checked the checkbox then second dialoge form shows otherwise not. Means i want to show second dialoge conditionaly during installation of application. Looking forward for good solution. Regards, Jawad Naeem Hi, I am still looking for the solution. I want solution not by using click once installation. If this feature is not availble in dotNet then microsoft should add this new feature in setup projects because it is very helpful Regards, Jawad Naeem ...Show All
Visual Studio 2008 (Pre-release) Reading and Writing image "Rating" metadata
I'm looking for a way to read and modify "Rating" metadata that Vista uses to rate image files. I'm able to read the rating although I noticed that the rating is written in several places in metadata... and I'm not sure which Vista is using... it looks like all of them are changed at the same time and are kept in sync... so do I have to modify all of them to keep them in sync /xmp/Rating / xmp/xap:Rating /app1/{uint=0}/{uint=18246} When I'm trying to modify the rating... nothing happens... I'm using this code Stream fileStream = new System.IO. FileStream (path.LocalPath, FileMode .Open, FileAccess .ReadWrite, FileShare .ReadWrite); BitmapDecoder decoder = BitmapDecoder .Create( this .fi ...Show All
Visual Studio Passing Parameters to Crystal Reports 10 using Visual Studio 2005
I have been looking all over the place and I am looking for a way to generate a stand alone Crystal Report using a parameter passed from a form in Visual Studio 2005. I don't want the report to be attached to a reportviewer, I just want the report to be opened with the parameters being passed to it. How would I do such a thing I have been looking for the answer and I cannot find it. Hi I figured out what was wrong with my report. In fact I consider this a bug, since in the vs 2003 version I use the same code with no problems at all and it works. The problem is when I use this line of code this .oRpt.Database.Tables[ "spGetAllMaterialForReport;1" ].ApplyLogOnInfo(oTLI); w ...Show All
Software Development for Windows Vista Huge humbnail backward compatability
Vista supports huge thumbnails and so I've taken full advantage of it in my latest applications - they look amazing. However, on Windows 2000 they do not display at all. How can you include the old style icon within the new and tell Windows 2000 how to find them in the files Or am I just making the icons incorrectly Thanks, Triple-M I don't really understand. Are you talking about icon files in Explore or are you talking about having large icons show in your applicaction's list view I think you mean the first..... An icon file is an ico and can support multipule views. Use a icon editor and create different image views for your icon. What editor are you using to make your icons If you mean the latter ...Show All
Software Development for Windows Vista VB.NET RSA Encryption on Vista
The following RSA Encryption on .Net2.0(2K/XP) and Decryption on server side JAVA always goes well. Imports System.Security.Cryptography Dim Rsa As New RSACryptoServiceProvider Rsa.FromXmlString( <XML formatted public key string> ) Dim ascii As New ASCIIEncoding Dim data() As Byte = ascii.GetBytes( <target data string> ) Dim res() As Byte = RSA.Encrypt(data, False) But when encrypted on Vista, it sometimes fails at the decryption phase on JAVA by "no blocks in data". (No changes of program at all) Does anyone guess the reason Any suggestion or comments would be helpful. Thanks. ...Show All
Windows Forms Creating a Table on a Control
Hi, I'm trying to create a table for my control that looks like this: http://i115.photobucket.com/albums/n311/ro88o/sc.gif Hi, Sorry for my first post not being to informative - I clicked post before I meant to and then couldn't edit it for some reason The data is read-only, I've managed to get what I wanted by using a datagridview and disabling add, edit and delete. Took me a while to get a hang of using the datagridview (why can't there be a simple table class !) but I've managed it now. ...Show All
Visual Basic convert hexadecimal number to floating point
Hi How can I convert hexadecimal number to floating point For example: convert &H 41E0F5C3 to 28.12 Please advice. Thanks in advance. Doron <StructLayout(LayoutKind.Explicit)> Structure conv <FieldOffset(0)> Dim f As Single <FieldOffset(0)> Dim i As Integer End Structure Dim c As conv c.i = &H41E0F5C3 Debug.WriteLine(c.f) ---> 28.12 ...Show All
SQL Server import ascii file with ssis and script
Hi, i've question about how to import an ascii-file in a sql 2005 table. I want to import this file also with an unique key. There i first have to get the last key form the table and then raise this key. Next step is to use this key during the import. How do i have to do this in ssis Thanks in advance Olaf Olaf vd Sanden wrote: Phil, First i had a data conversion before my destionation ole. After i've removed this is was possible to connect the script component. Sorry for my questions, it's new for me. But, isn't possible to use a data conversion and a script component Thanks, Olaf Sure it's possible. You must be sure that when you dropped in the script component that you selected "Transfor ...Show All
