-
November 6th, 2009, 08:30 PM
#1
A simple problem
Hi,
Im tring to use a function i declare on my main.cpp file in a class function:
it look something like this:
main.cpp
#include <Calc.h>
void Log(String str)
{
*add to log file*
}
void main()
{
//Log File declare
Calc ck(some numbers)
}
And i want to write to log file from the function in Calc class
Its possiable???
thnx
-
November 7th, 2009, 05:00 AM
#2
Re: A simple problem
Originally Posted by shiranraviv
... And i want to write to log file from the function in Calc class
Its possiable???
Yes.
Victor Nijegorodov
-
November 7th, 2009, 10:33 AM
#3
Re: A simple problem
How it is possiable?
Because i tried everything i know...
please help...
-
November 7th, 2009, 10:51 AM
#4
-
November 7th, 2009, 12:20 PM
#5
Re: A simple problem
Originally Posted by shiranraviv
How it is possiable?
Because i tried everything i know...
please help...
Show us what you tried. Have a look at CStdioFile from MFC.
-
November 8th, 2009, 11:47 AM
#6
Re: A simple problem
Pass whatever type of file you're using by reference to your function.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|