is it possible to enumerate the taskbar icons(system tray) using win32 and there will be always a way to do that but which shell options to use or if somebody can link me to such topics that will nice... so i want to remove a particular taskbar icon using my own program...
So I am trying to take user input from an editbox for my dialog based app. The value should be a single float. I retrieve the value using GetWindowText() and sscanf(). I check that sscanf returns 1 to show that it in fact succesfully scanned in one
The problem is that this method of error checking is not the best. For example, if the user enters "20.5p", that will not flag an error, but instead will just take 20.5 as a valid value and ignore "p". How can I do more thorough error checking, such that I check to make sure the input is ONLY a single float and no trailing characters?
I believe fefe.wyx meant using class wizard to assign a float variable to the edit control. Then it will be restricted to that type, and to retrieve data you can call UpdateData(true). But I can't use this method because of the reason in my above reply.
You can't connect a LED on your USB port. You probably meant that you have a hardware module that is connected to your USB bus and this module contains some LED ? If that's the case then we can't really help. The only important thing to know is that a USB port is not like a serial port: you don't open the port itself and send data on it. Instead you get the handle to a driver for your device and you communicate with the driver. What you exchange with the driver is specific to the driver.