Re: Class Usage
Michael R. Copeland wrote:
//-----------------------------------------------------------------
This sort of code generates all sorts of compile errors (which
don't help me understand what I did wrong), and I know I've badly
confused the concepts of class definition and instantiation...8<}}
*What* sorts of compile errors? I cannot get them since the code you
posted is not real -- it's an exerpt.
Well, it wraps my VS6.0 compiler to its limit (102 errors), and
there are so many I didn't see how I could enumerate them. They
start with the
LogFunctions *l_c = new LogFunctions("testfile.log");
line.
You might be better off if you get yourself a more up-to-date compiler.
VS6 is very old and just bad. If you can't buy 2005, get the Express
Edition, it's free.
So, if my explanation of my intent makes sense, I'd appreciate some
guidance as to how actually implement this logic... TIA
Have you tried looking on the web? If you haven't, do, and look for
'log4cpp' project. There is no need to reinvent the wheel. Just find
what you need and use it.
I'll do that now. I was trying to establish some "class" knowledge,
as I thought this was a rather simple application for my usage. Oh
well...
Your time is better spent on developing something new, something that
is original, something that is needed for your future work. Don't waste
it rewriting something freely available for reuse.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask