Click here to Skip to main content
15,928,983 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question_findfirst() can't see host on LAN Pin
Robert Palma Jr.8-Jun-07 10:56
Robert Palma Jr.8-Jun-07 10:56 
AnswerRe: _findfirst() can't see host on LAN Pin
Mark Salsbery8-Jun-07 11:03
Mark Salsbery8-Jun-07 11:03 
GeneralRe: _findfirst() can't see host on LAN Pin
Robert Palma Jr.9-Jun-07 7:43
Robert Palma Jr.9-Jun-07 7:43 
QuestionRe: _findfirst() can't see host on LAN Pin
David Crow9-Jun-07 6:47
David Crow9-Jun-07 6:47 
AnswerRe: _findfirst() can't see host on LAN Pin
Robert Palma Jr.9-Jun-07 7:45
Robert Palma Jr.9-Jun-07 7:45 
QuestionPrinting html file withought print dialog show Pin
pnpfriend8-Jun-07 9:57
pnpfriend8-Jun-07 9:57 
AnswerRe: Printing html file withought print dialog show Pin
ashukasama9-Jun-07 1:36
ashukasama9-Jun-07 1:36 
Questionproblem on work with Class CArray [modified] Pin
Immunity188-Jun-07 9:14
Immunity188-Jun-07 9:14 
got 2 function ( second is executed inside first one)
how i will pass the CArray class?
with my code 1 error :
error C2664: 'GetDF' : cannot convert parameter 1 from 'class CArray<class cstring,class="" cstring="">' to 'class CArray<class cstring,class="" cstring="">'
No copy constructor available for class 'CArray<class cstring,class="" cstring="">'
Error executing cl.exe.
double CAnaktisiDlg::FindDF(CString file , CArray < CString, CString > AFArray)
{
		CString LineRead ;
		CString str7;
		CString FilePathName;
		const int sz =100;
		char buf[sz];
		FilePathName = m_FolderName + file;
		ifstream FileText(FilePathName);
		while(FileText.get(buf,sz))
		{
			FileText.get();
			LineRead = (LPCSTR) buf;
			GetDFArray(LineRead);
			GetDF(AFArray);
	
		}
		FileText.close();	
	return 0.0;
}


void CAnaktisiDlg::GetDF(CArray < CString , CString > FArray)
{
	int nDf=0;
	int niDF = 0;
	for ( int i = 0 ; i <m_DFWords ; i++)
	{
		for ( int y = 0 ; y < FArray.GetSize() ; y++)
		{
			CString LineRead ;
			CString FilePathName;
			const int sz =100;
			char buf[sz];

			FilePathName = m_FolderName + FArray.GetAt(y);
			ifstream FileText(FilePathName);
			while(FileText.get(buf,sz))
			{
				FileText.get();
				LineRead = (LPCSTR) buf;
				GetLineArray(LineRead);
				nDf= Compare(i);				
			}
			niDF = niDF + nDf;
			FileText.close();	
		}
		double s = (double) nDoc/niDF;
		log10 ( s );
		EachWordIDF[i] = EachWordIDF[i] + (log10 ( s ) )* ( log10(s) );
	}
}



-- modified at 15:23 Friday 8th June, 2007
AnswerRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 9:28
Mark Salsbery8-Jun-07 9:28 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 9:35
Immunity188-Jun-07 9:35 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 9:43
Mark Salsbery8-Jun-07 9:43 
AnswerRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 9:33
Mark Salsbery8-Jun-07 9:33 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 9:37
Immunity188-Jun-07 9:37 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 9:47
Mark Salsbery8-Jun-07 9:47 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 9:53
Immunity188-Jun-07 9:53 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 9:56
Mark Salsbery8-Jun-07 9:56 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 9:58
Immunity188-Jun-07 9:58 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 10:05
Mark Salsbery8-Jun-07 10:05 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 10:18
Immunity188-Jun-07 10:18 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 10:42
Immunity188-Jun-07 10:42 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 11:00
Mark Salsbery8-Jun-07 11:00 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:03
Immunity188-Jun-07 11:03 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 11:08
Mark Salsbery8-Jun-07 11:08 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:09
Immunity188-Jun-07 11:09 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:04
Immunity188-Jun-07 11:04 

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.