hello guys...im newbie and wanted to learn pocketpc 2003 programing using c++ (using MS VS 2008), but could not find the appropriate book (may be could not find porper key words for query to google). I will be thankful if you suggest me one. Also, I wanted to learn MFC using MS VS 2008, a book on this topic will also be appreiated (i found books on MFC but not MFC using VS 2008).Thanks in advance.
Sending a UDP package to the universal broadcast address 255.255.255.255 should work on all network interfaces... at least on Windows. Broadcasting is only guaranteed to work within the LAN, in case you have a bigger (company) LAN the broadcast could be limited to your network segment. UDP is commonly used for service discovery in the LAN, once peers have found each other you can switch to another protocol, because UDP is not the most reliable transport available.
When you say it should work on all network interfaces, when i open a socket how do i know which adapter/port it will do it on? Im assuming it wont broadcast it on all ports, or will it?
The issue comes in is this...
The testing machine would be on two networks, the corporate and then this "link" to the other machine under test(neither of which have an IP address assigned on that link).
I absolutely can not be sending broadcast packets across the corporate network, it must go over the other port im just confused looking at the inputs for the Winsock functions how you would specify which port to use if there was no IP address on either end.
I would like to create something similar to the Windows Media Player miniplayer in the task bar. I don't expect many problems with coding the desk band (plenty of documentation about that), but I'm still wondering how to start with coding the skinned UI.
The first image is obviously a mask, and then there are images for normal, disabled, hottracked and pressed states. I guess that I should take the different parts of the 'state' images (according to the state of each part), and merge these into a single image that shows the current UI. But how can I do this?
I would prefer not to use any libraries, just C++ and the plain Windows API.
Thanks for the link, but that tutorial only shows how to create non-rectangular windows with a bitmap background. I don't need a non-rectangular window, but a normal window with non-rectangular buttons on it, by using a colored mask (the top image in http://img130.imageshack.us/img130/5195/wmpbandimages.png[^]).
Sorry, but your title asked for information on "skinned UI". I'm not sure how to do the buttons you are asking for, but probably something similar. Try the articles here on CodeProject, it's quite likely some other CP member has written about it.
OK, I've done some more searching, but unfortunately, I couldn't find any examples of how to use such a multi-colored mask.
However, I think that I should take the following approach: for each color in the multi-colored mask, create a 2-color mask with the current color replaced by black, and all other colors replaced by white (by using something like ReplaceColor at How to replace a color in a HBITMAP[^]). Then, those 2-color masks can be used to BitBlt the individual segments (that might come from different state images) into one single image.
Is this the right approach? I want to be sure that I haven't missed anything before starting to implementing this.
I cant understand why you are going towards complicity. Just use SkinCrafter or some other Skining library like DSkin which has Vista, Windows MPlayer skins and lots more. you just need to use their .dll and .cpp and .h in your project and a few lines of coding.