Forum: C++ Aug 18th, 2008 |
| Replies: 6 Views: 751 Oh, you're right.
But actually, I dropped the system of using different members for red, green, blue, and alpha. I'm just using a single hex value as a member to save space.
Edit:
Just... |
Forum: C++ Aug 4th, 2008 |
| Replies: 4 Views: 2,013 the string::c_str() method converts the contents of an std::string to const char*. For example:
string str1 = "Hello";
const char* str2 = "Hello";
str1.c_str();//would return a value equivalent... |
Forum: C++ Aug 1st, 2008 |
| Replies: 22 Views: 3,692 *sigh*
Okay, you want to know where to start. I've never written an AVI loader - but here are a couple of places to start (and I don't think where you start is going to be language specific).
... |
Forum: C++ Jul 30th, 2008 |
| Replies: 10 Views: 1,089 I'm writing a program for a contest (it's a demo, not the actual thing - so I'm not cheating by asking for help - and my question isn't directly related to the algorithm they want anyway). To submit... |
Forum: C++ Jul 25th, 2008 |
| Replies: 8 Views: 764 It doesn't matter if you're using Express. I had to do the same thing. |
Forum: C++ Jul 24th, 2008 |
| Replies: 6 Views: 729 A friend of mine recently asked me how one would convert a .bmp font to a .ttf. I said I was unsure, but it got me thinking to how I would code a program to do that. How would someone who wants to... |
Forum: C++ Jul 23rd, 2008 |
| Replies: 7 Views: 2,755 It isn't bogus crap. Learn to understand it and you'll begin to be able to solve problems on your own, though its understandable that at first you'll have no idea what it means.
The compilers... |
Forum: C++ Jul 19th, 2008 |
| Replies: 6 Views: 1,949 Trying using surfaces instead of textures. link (http://msdn.microsoft.com/en-us/library/bb172900(VS.85).aspx) I believe that surfaces are supposed to be used for backgrounds, like the one you're... |
Forum: C++ Jul 14th, 2008 |
| Replies: 5 Views: 2,803 If you'd like to link to a lib through the compiler's interface rather than using #pragma, right-click on your project's name in the panel to the left, go down to properties, expand linker, go to... |
Forum: C++ Jul 14th, 2008 |
| Replies: 6 Views: 573 Depending on how much of a beginner you are, you may want to stick with console apps for a while and get a handle around pointers, classes, inheritance, and polymorphism to some degree. But, you... |
Forum: C++ Jul 9th, 2008 |
| Replies: 1 Views: 382 You would actually name the file myFile.h, not myFile.cpp. When you #include something you are basically taking the contents of the header (*.h) file and dumping them into your current .cpp file. If... |