Search:

Type: Posts; User: Phenom

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. What you are looking for is FreeImage...

    What you are looking for is FreeImage.
  2. Replies
    2
    Views
    741

    In CMS.h, you should add #include...

    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:
  3. Replies
    1
    Views
    880

    Need help creating window class

    I want to create a class like this:



    class MyWindow
    {
    public:
    void CreateWindow(...);
    void WndProc(...);
  4. Replies
    3
    Views
    1,007

    Solved, tanks for replying.

    Solved, tanks for replying.
  5. Replies
    3
    Views
    1,007

    Const class members

    How to fix this:



    class ABC
    {
    private:
    const int a = 5;
    };
  6. Replies
    3
    Views
    968

    Thanks for help, I corrected the function. I...

    Thanks for help, I corrected the function.

    I use C strings just for training.
  7. Replies
    3
    Views
    968

    Trouble with strings

    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...
  8. Replies
    6
    Views
    1,449

    Thanks for advice. What do I have to do if I...

    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.
  9. Replies
    6
    Views
    1,449

    Strange sizeof() behaviour

    While debugging with gdb is found out that


    sizeof(ChunkHeader)

    returns 8(!) messing up my program.


    struct ChunkHeader
    {
  10. Replies
    12
    Views
    1,186

    Thank you for helping, it works! In the...

    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.
  11. Replies
    12
    Views
    1,186

    Another question: I have this: ...

    Another question:

    I have this:



    template<typename T> class ZLine
    {
    public:
    template<typename V> double DistanceFromPoint(std::vector<V> v);
  12. Replies
    12
    Views
    1,186

    Just curious, which compilers can link template...

    Just curious, which compilers can link template classes?
  13. Replies
    12
    Views
    1,186

    You mean something like this ? // ZLine.h...

    You mean something like this ?



    // ZLine.h

    #ifndef _ZLINE_H
    #define _ZLINE_H

    namespace Z_GLC {
  14. Replies
    12
    Views
    1,186

    Template trouble

    I have the following class



    // ZLine.h

    #ifndef _ZLINE_H
    #define _ZLINE_H

    namespace Z_GLC {
  15. Replies
    3
    Views
    5,093

    The BallPair class just holds two pointers(to...

    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...
  16. Replies
    3
    Views
    5,093

    Removing duplicate values from std::list

    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...
  17. Replies
    9
    Views
    2,143

    Really cool!:D

    Really cool!:D
  18. Replies
    2
    Views
    925

    EDIT: The DrawPoint struct is defined as...

    EDIT:

    The DrawPoint struct is defined as following:


    template<class T> struct DrawPoint
    {
    T x, y;

    DrawPoint() : x(0), y(0) {}
  19. Replies
    2
    Views
    925

    Template problem

    I had the following class:


    /*!
    * \brief Provides text drawing-methods for OpenGL.
    */
    class ZTextDrawer2
    {
    public:
    /*
  20. Replies
    3
    Views
    973

    That's a very interesting possibility. However,...

    That's a very interesting possibility. However, my application is an OpenGL game. I guess i'll use fullscreen mode.
  21. Replies
    3
    Views
    973

    Hiding the taskbar

    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.
  22. Replies
    11
    Views
    1,740

    The strlen function counts until it finds an...

    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...
  23. Thread: Reading bits

    by Phenom
    Replies
    4
    Views
    1,737

    I'll try your class, but I have found a way to do...

    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.
  24. Replies
    2
    Views
    1,392

    Thanks for reply. I came up to the following: ...

    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:
  25. Replies
    2
    Views
    1,392

    WM_KEYDOWM message

    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...
Results 1 to 25 of 28
Page 1 of 2 1 2