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...
Type: Posts; User: shadovv
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...
Great, it all seems to be working.
Thanks a ton!
ah. should all base class constructors be virtual too?
i wasnt sure if it would work that way, because they technically had different names.
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)....
That solved it. I never defined it again like that. Thanks a million, this has been driving me crazy.
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...
something like this maybe?
for(int X = 0;X<20;X++)
{
if (key.substr(X,X+1) == answer.substr(X,X+1))
{
score++;
}
probably. glad you figured it out. good luck
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
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...
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...
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*);...
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...