Search:

Type: Posts; User: shadovv

Search: Search took 0.00 seconds.

  1. Thread: any leaks?

    by shadovv
    Replies
    2
    Views
    1,246

    any leaks?

    Hi,

    is this properly released? or do i need to do more?



    typedef void(Object::*Event)(void*)); //pointer to function
    Event *events = new Event[size]; //array of these pointers

    //some...
  2. Replies
    4
    Views
    1,189

    Great, it all seems to be working. Thanks a ton!

    Great, it all seems to be working.
    Thanks a ton!
  3. Replies
    4
    Views
    1,189

    ah. should all base class constructors be...

    ah. should all base class constructors be virtual too?
    i wasnt sure if it would work that way, because they technically had different names.
  4. Replies
    4
    Views
    1,189

    concerning virtual functions

    hi, this is a little complicated to explain, so i'm just going to do the best i can.

    To summarize my problem, i have a base class with a virtual function (which is overridden in a derived class)....
  5. Replies
    7
    Views
    2,087

    That solved it. I never defined it again like...

    That solved it. I never defined it again like that. Thanks a million, this has been driving me crazy.
  6. Replies
    7
    Views
    2,087

    Sorry, this is an extremely complex program, and...

    Sorry, this is an extremely complex program, and i was trying to avoid actually citing code if possible. I'll write an extremely simplified version to get the concept across. Keep in mind that...
  7. Replies
    3
    Views
    979

    something like this maybe? for(int X =...

    something like this maybe?



    for(int X = 0;X<20;X++)
    {
    if (key.substr(X,X+1) == answer.substr(X,X+1))
    {
    score++;
    }
  8. Replies
    16
    Views
    13,092

    probably. glad you figured it out. good luck

    probably. glad you figured it out. good luck
  9. Replies
    16
    Views
    13,092

    you wouldnt happen to be a Mr. Baker's class...

    you wouldnt happen to be a Mr. Baker's class would you? because i remember that exact problem from many years back.

    or could just be that its a common problem
  10. Replies
    7
    Views
    2,087

    I included them as static members of the base...

    I included them as static members of the base class in my class heirarchy. Therefore every class has access to them.

    Still, i'm getting linker errors saying that it they are "unresolved global...
  11. Replies
    7
    Views
    2,087

    global / static variables

    hi, this should be an easy one, i just havent dealt much with global variables.

    i have an unmanaged c++ project set up with many different classes. Each class has its own .h and .cpp set up...
  12. Replies
    2
    Views
    841

    subject

    i need an array of pointers to functions that can be set to a variable size.



    void (*functions[3])(void*,void*); //works, but not what i'm looking for

    void (*functions[vSize])(void*,void*);...
  13. Replies
    4
    Views
    3,010

    Interdependent Classes

    I have a complicated problem that boils down to this:

    2 classes that work together, need to have pointers to one another and complete access to all members and function.

    the challenge lies in...
Results 1 to 13 of 13