Calling function
-
Hi All I have a problem to call BOOL type function.I have declear a function in header file and calling in same header file.Then i am geting error
error C3861: 'str': identifier not found
Plz help me
Hi, First check did you declared the variable 'str'. Could you please show the function.
The price of anything is the amount of life you exchange for it. Thanks and Regards. SANTHOSH V
-
Hi, First check did you declared the variable 'str'. Could you please show the function.
The price of anything is the amount of life you exchange for it. Thanks and Regards. SANTHOSH V
-
yes
public:
bool str();and
bool CCall::str()
{
AfxMessageBox("Hello");
}
return false;And i want to call str(); in .h file.
What I can see is this is a method of a class, not C-type function. You cannot call a method of a class that way. Either you should create an instance of the class or you should declare the method as static.
-
yes
public:
bool str();and
bool CCall::str()
{
AfxMessageBox("Hello");
}
return false;And i want to call str(); in .h file.
cpvc++ wrote:
return false;
Did this
return
statement escape? :confused:"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch