Thank for reply
Since Onsend() function is public in class CScenGenDoc( ScenGenDoc.h) I called CScenGenDoc::OnSend(); in landmovement .cpp file,but its genrating a error

error C2352: 'CScenGenDoc::OnSend' : illegal call of non-static member function
I have given header file also #include "ScenGenDoc.h" in landmovement.cpp

Code:
Landmovememt.cpp
if((strcmp(cursor->LandID,"S1")==0)||(strcmp(cursor->LandID,"s1")==0))
{	
	cursor->L_Longitude-=0.05;
	cursor->L_Latitude-=0.001;
	if(connected==true)
	{
	CScenGenDoc::OnSend();
	}
}
BUT what i find in class CScenGenDoc
Code:
class CScenGenDoc : public CDocument
{
protected: 
	CScenGenDoc();
	DECLARE_DYNCREATE(CScenGenDoc)
}
Is it because the class it self is protected.Plz advice me where iam wrong

Last edited by answerme; 20Oct2009 at 10:49..