OsoPolar's Q&A profile
Visual C++ How to PostMessage between 2 separate applications?
I'm trying to implement messaging between 2 different applications using PostMessage (HWND_BROADCAST, msg, 0, 0) in one, and setting a On_Message handler in the other. The idea to test this is that when PostMessage is sent from App1, App2 will receive the message with On_Message and call the appropriate handler function. Unfortunately, its seems that this setting doesnt work. I set the message ID to the same one for both applications (something like 9990) . I did a search thru MSDN and had a clue on RegisterWindowMessage but have no idea on how to implement this, especially when the messageID must be a constant for ON_MESSAGE to work. Is there any way around this problem valikac wrote: Many possibil ...Show All
Visual Studio 2008 (Pre-release) Best Practice: Large File Transfer
I am looking at a scenario that I have to transfer a large file (25-50 meg) file from a user machine over to an ASP.NET site to a WCF service and then store to a database. I am looking for some best practices, most efficent way, pitfalls when Transferring from client (IE) to ASP.NET (v2.0) site Transferring from ASP.NET (v2.0) site to WCF service Architecture, pseuocode, white papers, code examples, replies to this forum are all very much appreciated. Thanks, Dave To transfer large files from IE to ASP.NET you can use the FileUpload control. But, you have to check a few things: Make sure you have enough memory allocated to support loading the entire file into the memory stre ...Show All
Windows Forms clear a cbo selection in vb.net 2005
I have a set of combo boxes the user wants to clear the selectons and start over (they build a order by statement for a query) I cant find a way to deselect the selected item. ...Show All
Windows Forms ToolStrip Sub-Classes
I currently use the old ToolBar control throughout my application. I have a base class, MyToolBarControl, which is basically just a UserControl with a ToolBar on it. I can sub-class this control to be used for each of my various projects in the app, easily adding ToolBarButtons to my sub-class and tweaking whatever other property might need to be tweaked. Now, if I *wanted* to switch to using a ToolStrip instead of a ToolBar (which is *supposed* to be the replacement control for VS2005), it will *not* work the same way. Any sub-class of a ToolStrip has a major problem in that *none* of it's properties are accessible via the PropertySheet. NONE. What's up with that Now, perhaps the ToolStrip is supposed to work somewhat differently th ...Show All
.NET Development Update Row in MySql DB
Hi, atm i have the following code and it works: string cnnString = "..." ; MySqlConnection cnx = new MySqlConnection (cnnString); string cmdText = "SELECT anzahl FROM counter WHERE zugriffeId = 1" ; MySqlCommand cmd = new MySqlCommand (cmdText, cnx); MySqlDataAdapter adapter = new MySqlDataAdapter (); adapter.SelectCommand = cmd; adapter.Fill(dTable); DataRow row = dTable.Rows[0]; int count = System. Convert .ToInt32(row[ "anzahl" ]); count++; LabelCounter.Text = count.ToString(); But i want to update that number now and i don't know how Hope you can help me. Hi, You have to create a new MySqlComma ...Show All
Visual Studio Team System Solutions Architect role - who owns it?
Working for a small (20 person) web development compay we have been rolling out the MSF process for over a year. One element which still raises a great debate is who owns the Solutions Architect role, and what this actually means. In MSF 3 it suggestest that the Program Manager owns this, but MSF 4 has moved it to its own entity. Whilst we currently use the PM to own the Solutions Architect role, the Lead Developer (in our case the Technical Director) often feels that he is architecting the solution. My feeling is that there is an overlap where the PM will architect the solution from a high level based on; client objectives, client requirements, and end user needs (the 'why' of the project). This gives a steer to the project ...Show All
SQL Server dts only selected rows
I have to dts rows by timestamp. For example if my dts downloaded at 10 am then in the next run i want to grab rows updated in the AS400 after 10am. what is the best way to go in ssis thanks... kushpaw There is a timestamp field in both sql and as400 tables. I can select the last timestamp from the destination table and query source for that timestamp. Is that what u mean -kushpaw ...Show All
Visual Studio Team System XML Schema definition
I have tried to access the XML schema definiton so I can make changes to my template and I am getting a "not found" error for http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef What's up Kathir is correct. You can also go to this help topic and download all the process template schema files: http://msdn2.microsoft.com/en-us/library/ms194967(VS.80).aspx Thanks, Allison [MSFT] ...Show All
Visual C# InvalidCastException with Windows Media Player / IWMPPlaylist
I'm working on an audio application that makes use of the Windows Media Player COM Component. I'm using my own Playlist class because I want to be able to provide some additional functionality that the built-in WMP Playlists do not support, like the Playlist determining the Play Mode (shuffle, repeat, etc.) instead of the Player. After hitting some walls using my own Playlist class, I realized I need to use WMP's IWMPPlaylist interface, so I decide to make an Adapter class to implement all the methods that IWMPPlaylist defines without muddying up my own Playlist class. I'm not entirely sure Adapter is the right pattern name here, but that's what I'm calling it for now. My class is defined as such: class PlaylistAdapter : IWMPPl ...Show All
.NET Development A transport-level error has occurred when receiving results from the server.(Provider:TCP Provider,error:0-The handle is invalid
Hi, I am using SQL Server 2005 as backend in my Web Application, while trying to retrieve data from the database; I am getting the following error: A transport-level error has occurred when receiving results from the server. (Provider: TCP Provider, error: 0 - The handle is invalid .) But I am getting this error randomly. Can some one help me out Waiting for your response Sudhakar Hi Ryan, No its not a linked server. We have hosted a website on our client server ...Show All
Audio and Video Development Phoneme of wave file
can anyone tell me how can i find the phoneme of web file I assume you mean you want to recognize a phoneme from a .wav file, correct If so, you might want to look into SAPI (Speech API), which, I believe, allows you to do speech recognition from a WAV file (see ISpStream::BindToFile). I don't know off the top of my head whether you'll be able to get it to recognize individual phonemes, rather than words, though. That said, this forum probably won't be too much help with any follow-up questions you have, since your question isn't about Media Foundation. ...Show All
Visual Basic DecimalPlaces property missing in NumericUpDown?????
I am writing a Visual Basic application for PocketPC 2003, using Visual Studio 2005. I want a NumericUpDown control with an increment value of 0.1. If I just try to set the increment value to that, it is stored as 0 and the control doesn't work. Reading the online documentation, it looks as if I should set the DecimalPlaces property, but when I look for this property, I can't find it. If I try to change it programatically: myUpDown.DecimalPlaces=1 I get an error, that the property does not exist. Any idea what I am doing wrong, or if this is a bug and if there is a work-around Thanks I just looked at the UP control I am using, and in the properties window, there is a property called DecimalPlaces, where y ...Show All
Software Development for Windows Vista Japanese IME does not work properly with MultiUI
My program does not work properly on Windows Vista Japanese. It's using IME functions. You can recreate same problem with MultiUI sample program which is provided by Microsoft. You can see this problem with following instruction: 1. Compile and run MultiUI It's in: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vcsample98/html/vcsmpmultiui.asp 2. MultiUI has 6 input area, turn on Japanese IME on right-middle and left-middle input area. 3. Click left-middle input area, type "ai" and press Space key twice to display candidate window 4. Click right-middle input area, type "ie" and press Space key twice to display candidate window 5. Click left-middle input area, candidate window is displaye ...Show All
Software Development for Windows Vista Installing Control Panel applets on Vista/Longhorn
My immediate need is to modify registry keys during installation so that my applet gets displayed with the other "Administrative Tools". I managed to get the applet to show up under additional features in the control panel by using this key: HKLM\Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\<MyAppletName>.cpl. I also found a description for how to place the applet in other categories, but unfortunately "Administrative Tools" was not one of the choices. A side issue that may or may not be significant is that when I get the applet to show up anywhere in Control Panel its icon displays as "broken". This same executable installs fine on Windows Server 2003 and shows its icon properly ...Show All
Visual C# How-to: Read Image from database into pictureBox control using a bindingSource.
Hi all, I am a noobie to C# and have been trying to write an application using sqlce and C# for a Windows Mobile 5.0 device. After much searching, I have not been able to find any examples to assist me. I have a form that is using a BindingSource bound to a table from a SQLCE database. One of the columns in my table is of type Image. I would like to read/write an image to this column and show it in a pictureBox on the form. I understand that the Image is stored as a byte[] in the database and needs to be converted to and from this format, however, I have not been able to find any samples of how to do this with a BindingSource object. For example, I have a table Options that contains the following columns Options { optionId int, companyName ...Show All
