Page 1 of 1

GetOwner()

PostPosted: Mar 12, 2006 @ 2:26am
by Jeffer
Anyone have a working call to GetOwner(). It seems weird that it return a char* and takes one. I could see that if it was a duel function that sets or gets the name but not just returning it.

So, I'm having trouble figuring out how to call it.

PostPosted: Mar 12, 2006 @ 12:56pm
by edge
The GetOwner() function is set up like some of the stdlib functions. The parameter is a pointer to a string that is filled with the owner name, the return value is the same pointer.

This can be useful to decrease the amount of source code. Like this:

char owner[256];
ClassEConsole::MsgWindow(ecd->reg->GetOwner(owner));