Search:

Type: Posts; User: tol

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,354

    Dev C++ DLL creation.

    I have been Googling for this and searching the forums, but everything I find seems to be about USING DLLs, I was interested in learning to make them. Dev C++ has a DLL setting for projects, I simply...
  2. Replies
    7
    Views
    1,980

    Ok I *thought* I had this down but..

    Ok, I *thought* I had this, but something went horribly wrong. :(

    I am trying to straighten this mess out, but now I get errors.

    Multiple definition of `Dice::_______ for ALL methods.
    ...
  3. Replies
    7
    Views
    1,980

    Yeah

    I guess I should have figured that was childish at best. I was just kind of stuck with "I have a random from 0 to someReallyHugeNumber" and that seemed like a quick way out. Noted.
  4. Replies
    7
    Views
    1,980

    Good point

    Hrmm, I suppose it is kind of crazy looking. I apologize to everyone trying to read it, I will try to clarify and edit it as soon as I have time. And no, it doesn't seem silly at all. This stuff is...
  5. Replies
    7
    Views
    1,980

    How 'far off' is this code?

    I wrote a class for simply creating sets of dice, and rolling them. This could obviously be pretty useful for anything involving dice. I also have the concept of an open-ended roll, which is simply a...
  6. Replies
    3
    Views
    917

    Ahh

    A Vector eh.... *Googles like mad*
  7. Thread: Graphics Mode

    by tol
    Replies
    6
    Views
    2,582

    Try this engine

    http://hge.relishgames.com/ is very easy to use and friendly for full screen "game" style graphics. For GUI do WIN32.

    As far as using Haaf's, you might have to look up simple double buffering, as...
  8. Replies
    3
    Views
    917

    Question about variable no. of args

    I keep running across tutorials on how to make a function take a variable number of arguments as in myFunction(Arg1,...), where it will take any number of Arg1s. However, I have a function where it...
  9. Replies
    5
    Views
    1,356

    Ah ok

    So it's kind of like the "Why not use Goto" question: it simply won't be an issue if I make my objects properly :D
  10. Replies
    5
    Views
    1,356

    How to check what class an object is?

    I have been following some good tutorials, combined with advice from here, and have gotten pretty far. However, I can't seem to track down a bit of information(or I am mistaken and it can't be done...
  11. Replies
    6
    Views
    891

    You know, that has always made me want to try...

    You know, that has always made me want to try ASM. Most people tell me not to bother with ASM, but it occurs to me that since ASM is nearly 1-to-1 with machine code, you could actually move around...
  12. Replies
    6
    Views
    891

    Question about function pointing

    I have a function set up so that it receives a function pointer, and that works:



    #include<iostream>
    //-----------------
    //--My NODE class--
    //-----------------
    class Node
    {
  13. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Thanks

    Wow, that seems to compile, thanks
  14. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Thanks but

    The compiler seems to like that even less :D Still, thanks for the help anyhow.
  15. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    More trouble ahead :)

    Thanks! The current state of my code is:



    class Node
    {
    private:
    static Node * root;static Node * index;Node * next;
    char content;
    public:
  16. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Static Pointer problem

    Ok, I got the struct and class version working. All well and good on that, that will be good for what I am going to need it for. Now I am trying my other method just because I am interested, and...
  17. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Right but

    This might seem overly picky, but wouldn't putting the int declaration inside the for loop technically be slightly superior because of scope?
  18. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Fixed it, but need advice

    #include <iostream>

    class myNodeList
    {
    private:
    struct myNode
    {
    char value;
    myNode * next;
    };
  19. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Me too.

    Dev C++ here too. Let me know if you find out, and I'll do the same.

    Well, I have another problem. As I said before, I am trying to build up to using a FOR...EACH...NEXT style, and I am taking...
  20. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Thanks again.

    Ah ok. Now that makes more sense with New and Delete. So what it boils down to is that my variable is actually an entire myNodeList object, and not just a type of pointer to it.

    This is the...
  21. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Thanks Swoopy

    Thanks, figured that out a split second before I read your post. I need to get the assumptions beat out of me on stuff like that.

    I need some constructive criticism, if any, on my destructor as I...
  22. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Ok, I've gotten further.

    I have gotten a lot further, and I appreciate the help. This is definately something I needed to do. Special thanks for the bit about initializing Static members, even though it no longer applies to...
  23. Thread: Noobish problem

    by tol
    Replies
    25
    Views
    2,815

    Noobish problem

    Hello, I am new here(but I have lurked off and on). I finally decided to post about this. I was trying to get used to using linked list type structures and was trying to make one, but I did something...
Results 1 to 23 of 23