I actually don't know much about C++, but a programmer friend of mine said that C++ would be the easiest way to do what I want. I wanted to make a small program that all it does is have a little icon in the Window's XP/Vista Taskbar that every hour randomly spits out a quote from a text file that has quotes typed in it that I make up. I have no problem learning what I need to to do this, but I'm just wondering if C++ would be the easiest way. Thanks, and sorry if this newbie question is annoying.
C# is probably the easiest way, but C++ is probably the best way.
Yeah, and it gives me an opportunity to learn C++. Do you know what tools I'd need to build the program? I have the C/C++ Eclipse editor already, and I think I need an API. I think. This is my first foray into C, so I wanted something interesting, but small.
Dude learn the language, ****.
Although MeTh0Dz is right, I think you can still do this, but not the taskbar part. I've been doing C/C++ for four years and have never tried doing a taskbar app, although I'm sure it's not as bad as some other things. You're going to need to include windows.h and iostream.
To read from the file, use the ifstream object.
To make your application wait an hour, call Sleep(0x0036EE80). (That's one hour measured in milliseconds.)
Look on MSDN for the rest.
C#/C++
Using this as a support, both will run similarly, but C# will be much easier and since it was built for windows, it is even more easy for this certain task. C++ will have more issues to resolve, but will in the end complete the task more efficiently.
If I were writing the program in Linux, it might be easier, but I'm writing this for a friend, so it has to be used on Windows. Does anyone know what programs to use for writing the actual code than compiling into a binary? I've got Eclipse Ganymede installed, along with MinGW and MSYS, but I can't get them to compile a Hello, World. It's really annoying me. I don't think I set them up right. Can anyone help me with that, or point me towards an up to date tutorial for it? I found one that's two years old, and still on 3.0 for MinGW, even though the new version is 5.0. I might not have set up Eclipse to work with the compilers. Thanks in advance.
Also, my friend suggested I look at writing it in Python or Java, and I think that those would be able to give me the message bubble with the quote, but I'm not sure. I have a little experience with both Java and Python; using GNU/Linux requires a base knowledge of Python, which took me a little while to figure out.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks