Click here to Skip to main content
15,891,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: fatal error C1001: INTERNAL COMPILER ERROR Pin
22491716-Dec-09 12:00
22491716-Dec-09 12:00 
GeneralRe: fatal error C1001: INTERNAL COMPILER ERROR Pin
wangningyu20-Dec-09 5:00
wangningyu20-Dec-09 5:00 
QuestionC++ File system Pin
hrishiS16-Dec-09 1:13
hrishiS16-Dec-09 1:13 
AnswerRe: C++ File system Pin
CPallini16-Dec-09 1:53
mveCPallini16-Dec-09 1:53 
GeneralRe: C++ File system Pin
hrishiS16-Dec-09 2:16
hrishiS16-Dec-09 2:16 
GeneralRe: C++ File system Pin
CPallini16-Dec-09 2:36
mveCPallini16-Dec-09 2:36 
GeneralRe: C++ File system Pin
hrishiS16-Dec-09 2:48
hrishiS16-Dec-09 2:48 
QuestionCall a function from another class Pin
Paulraj G16-Dec-09 0:22
Paulraj G16-Dec-09 0:22 
I have 2 classes.

Class A:

void CDbModReactor::objectModified(const AcDbDatabase* pDb,
                                  const AcDbObject* pDbObj)
{
	AcAxDocLock docLock(pDbObj->ownerId(), AcAxDocLock::kNormal);	

	if(docLock.lockStatus() != Acad::eOk)
		return;
        else
		gpDlg->OnCopy2Excell("modified", pDbObj);
}

Class B:
void CSampDialog::function1() 
{

	FILE * pFile;
		pFile = fopen ("C:myfile.csv","a");
		if (pFile!=NULL)
		{
    
		CString x2 = Cent_X+","+Cent_Y+"\n";
		fwrite(x2, x2.GetLength(), 1, pFile);
		fclose (pFile);
		}
}


Now i have to call the function void CDbModReactor::objectModified(const AcDbDatabase* pDb, const AcDbObject* pDbObj) from void CSampDialog::function1()

How can i call...

Please help me...

G.Paulraj

AnswerRe: Call a function from another class Pin
Richard MacCutchan16-Dec-09 0:39
mveRichard MacCutchan16-Dec-09 0:39 
GeneralRe: Call a function from another class Pin
Paulraj G16-Dec-09 1:00
Paulraj G16-Dec-09 1:00 
GeneralRe: Call a function from another class Pin
WoutL16-Dec-09 1:18
WoutL16-Dec-09 1:18 
GeneralRe: Call a function from another class Pin
Paulraj G16-Dec-09 1:20
Paulraj G16-Dec-09 1:20 
GeneralRe: Call a function from another class Pin
Richard MacCutchan16-Dec-09 1:18
mveRichard MacCutchan16-Dec-09 1:18 
AnswerRe: Call a function from another class Pin
Nelek16-Dec-09 5:35
protectorNelek16-Dec-09 5:35 
QuestionChoosing of STL container Pin
hrishiS15-Dec-09 23:35
hrishiS15-Dec-09 23:35 
AnswerRe: Choosing of STL container Pin
Adam Roderick J16-Dec-09 0:05
Adam Roderick J16-Dec-09 0:05 
GeneralRe: Choosing of STL container Pin
hrishiS16-Dec-09 0:52
hrishiS16-Dec-09 0:52 
AnswerRe: Choosing of STL container Pin
Jonathan Davies16-Dec-09 0:06
Jonathan Davies16-Dec-09 0:06 
GeneralRe: Choosing of STL container Pin
hrishiS16-Dec-09 0:52
hrishiS16-Dec-09 0:52 
AnswerRe: Choosing of STL container Pin
CPallini16-Dec-09 0:08
mveCPallini16-Dec-09 0:08 
AnswerRe: Choosing of STL container Pin
KingsGambit16-Dec-09 1:00
KingsGambit16-Dec-09 1:00 
QuestionThreads and Sockets Pin
giancoitaly15-Dec-09 21:56
giancoitaly15-Dec-09 21:56 
AnswerRe: Threads and Sockets [modified] Pin
Adam Roderick J15-Dec-09 23:31
Adam Roderick J15-Dec-09 23:31 
QuestionIs it possible to change the dll versions Pin
pandit8415-Dec-09 21:30
pandit8415-Dec-09 21:30 
AnswerRe: Is it possible to change the dll versions Pin
KingsGambit15-Dec-09 21:56
KingsGambit15-Dec-09 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.