how can i get the result, which is a char array, from another *.cpp file?
the situation is....i have a MFC project and i have an edit box in it.
i know how to put values to the edit box , but how can i get the result, which is a char array, from another *.cpp file?
is there any restriction on naming the files?
chould #include do the job?
how should the specified *.cpp file return?(as it is a win32console application before, it return 0 at the end)
thank you, and can one .h file include two functions?
thank you...seems have some clue now.....
but can the function.h file be like this?
Code:
int add(int a,b)
{
return a+b;
}
int f_call(int c, d)
{
int num1 = 1;
int num2 = 2;
int sum = add();
return sum*2;
}
while in example.cpp, i just call the function f_call?