|
Message:Hi, I am trying to migrate the code below using MFC for reading a file using vc++ to embeddeded vc++ and am having a problem. The code is as follows ==== BOOL LookItUp( LPCSTR szKeyToFind, CString& sRetURL ) { CString strLine; CStdioFile f; f.Open( "IDS.txt",CFile::modeRead ); sRetURL=""; while(f.ReadString(strLine) != NULL) { if( strLine.Find(szKeyToFind) == 0 ) { char* p= LPCSTR) strLine; while (*p!=' ' && *p<'A' ) { p++; } sRetURL= p; return( TRUE ); } } return( FALSE ); } ====== But, ReadString and Find methods are not supported in wince environment. Can anyone help me in changing this so it works in wince environment.Thanks
Is this message offensive or in violation of this board's policies?
If so report it by clicking here.
|