|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] another clogger problem
Hi chummers,
it's time for another question ^_^:
in my Class Logger described some mails before i want to return the
filename in which is logged. This filename is saved in a private
member variable of char * called m_LogFileName.
If i want to return this i use following code:
char *CLogger::GetLogFileName() {
if(m_LogFileOpen)
return m_LogFileName;
else
return "";
}
While m_LogFileOpen is a flag if the logfile opening is successful
or not.
If i use this function in my program to get the filename like that:
char *filename = Logger.GetLogFileName;
(Logger is a instance of CLogger)
the compiler stops with following error:
"error C2440: 'initializing' : 'char *(__thiscall CLogger::*)(void)'
cannot be converted into 'char *'. There is no context to convert"
Is anybody able to explain me how i am get rid of that???
btw, i tried everything out, using arrays, pointers and also to
return not directly the private member variable, but it doesn't
work...
Please help me...
Thanks.
btw, what is the diffence between someclass.method and
someclass->method ???
---
KingFish
gryphon entertainment - www.kingfish.myokay.net
---
"Truly, if there is true evil in this world,
it lies within the heart of mankind."
- Edward D. Morrison
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once
To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html
|
|