What you are looking for is FreeImage.
Type: Posts; User: Phenom
What you are looking for is FreeImage.
In CMS.h, you should add
#include "Table.h"
right before the class definition, so the compiler can find the 'Table' class.
Also in 'Table.h' add:
I want to create a class like this:
class MyWindow
{
public:
void CreateWindow(...);
void WndProc(...);
Solved, tanks for replying.
How to fix this:
class ABC
{
private:
const int a = 5;
};
Thanks for help, I corrected the function.
I use C strings just for training.
Below there's a function that given a string of the form "../data/afile.txt" separates the path("../data/") from the file name("afile.txt"). I can get the path succesfully, but unfortunately I can't...
Thanks for advice.
What do I have to do if I want sizeof(ChunkHeader) to return 6? I think I've seen a pragma directive that can do this.
While debugging with gdb is found out that
sizeof(ChunkHeader)
returns 8(!) messing up my program.
struct ChunkHeader
{
Thank you for helping, it works!
In the actual code I don't use vectors. I just put it there to make more clear what I' m trying to do.
Another question:
I have this:
template<typename T> class ZLine
{
public:
template<typename V> double DistanceFromPoint(std::vector<V> v);
Just curious, which compilers can link template classes?
You mean something like this ?
// ZLine.h
#ifndef _ZLINE_H
#define _ZLINE_H
namespace Z_GLC {
I have the following class
// ZLine.h
#ifndef _ZLINE_H
#define _ZLINE_H
namespace Z_GLC {
The BallPair class just holds two pointers(to Ball objects). If b1, b2 are pointers then
BallPair(b1, b2) will be equal to BallPair(b2, b1).
So, no, there isn't a way to sort the list to make...
I have an std::list<BallPair> list, where BallPair is a custom class that overloads operator==. In the list there are duplicate values, which I want to remove. I tried the following:
typedef...
Really cool!:D
EDIT:
The DrawPoint struct is defined as following:
template<class T> struct DrawPoint
{
T x, y;
DrawPoint() : x(0), y(0) {}
I had the following class:
/*!
* \brief Provides text drawing-methods for OpenGL.
*/
class ZTextDrawer2
{
public:
/*
That's a very interesting possibility. However, my application is an OpenGL game. I guess i'll use fullscreen mode.
How can I hide the taskbar and expand a window over it, and after the the window has closed, restore it?
I searched MSDN about it and didnt find anything useful.
The strlen function counts until it finds an '\0' terminating character. Since your buffer is not initialized the function starts counting ans stops when it finds an '\0', which in this case is 43...
I'll try your class, but I have found a way to do what I want without all this bit stuff, although it's more complicated.
I guess it's up to me now. Thanks everyone for help.
Thanks for reply. I came up to the following:
BOOL keys[256]; // Flags for all keys
The keys array will be initialized to false.
The WM_KEYUP handler:
I use the WM_KEYDOWN message(by checking wParam for a specific key of course) in my application to start an animation and use the WM_KEYUP message to tell when the key is released and stop the...