hye all
I have class CScenDoc . In that class have function called ONSEND() where I am doing certain operation .I want to call this ONSEND function in other function which is not a member function any class ,its a seperate function. How can i call ONSEND function onto that function .I know through friend function but getting some error
Code:
ScenGenDoc .h
class CScenGenDoc : public CDocument
{
public:
void OnSend();
}
Code:
ScenGenDoc .cpp
void CScenGenDoc::OnSend()
{
//doing certain operation
}
Code:
LAndmovement.cpp
double landmove()
{
if((strcmp(cursor->LandID,"S1")==0)||(strcmp(cursor->LandID,"s1")==0))
{
cursor->L_Longitude-=0.05;
cursor->L_Latitude-=0.001;
OnSend(); //calling onsend function here
}
thanks in advance