SIMPLE system tray icon

Hey guys,

Huge programming noob here. I had a little knowledge of C++ and I couldn't find a utility to do what I needed to do (perform some automatic tasks when my xbox controller connects to the computer) so I set out to make one myself and I'm almost there: I found and implemented an xinput class, learned all about batch files and command line arguments and set some up to do what I needed to do, and now all I want is to be able to tell when my programming is running! Lol I started with an empty C++ project and have no associated windows or consoles or anything, and all I want is for an icon to show up in the system tray when it's running. All the examples I've found online are absolute alien language to me, and at least 4x as long as the actual code for my program. Is there a shorter, simpler way to just make the icon appear when the program runs, and disappear when it terminates? I don't need a menu or caption or anything like that associated with, nor a "reusable class" or anything like that, just the bear minimum number of lines it takes to get an icon in the tray.

Thanks in advance,

Andrew.

Alas, it doesn't get any simpler than what you are finding online. The reason is that an icon is itself a "window" that must respond to events. The simplest working example I could find online (in under two minutes) was this one: http://www.dreamincode.net/forums/topic/258176-putting-a-program-icon-in-the-system-tray-with-c/

You really can't break anything by trying, fixing errors, and trying again. If things get boogered badly enough just reboot and keep trying. You'll eventually get it.
Topic archived. No new replies allowed.