This site is no longer active and is available for archival purposes only. Registration and login is disabled.

GetOwner()


GetOwner()

Postby Jeffer » Mar 12, 2006 @ 2:26am

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.
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Mar 12, 2006 @ 12:56pm

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));
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron