Well if ( noobie = "confused" ) { print "Search Google© for answer"; will always be true, and he will be searhing the google, else will never occur :-)
annum
Posts
-
Can You Help With This? -
Suddenly SymbianSo you downloaded the Series 60 platform sdk, but how can the vsiual studio generate code for symbian. I thought that I would have to buy an IDE like codewarrior for any symbian development.
-
Suddenly SymbianWhat are you guys using to develop, I mean which IDE and is it C++ or Java. There are only 10 kind of people in this world, those who understand binary and those who do not!
-
Start a dialog hiddenON my windows desktop app, I would start model dialogs in a separate thread, as hidden using WM_WINDOWPOSCHANGING as ShowWindow, does not hide the dialog. On windows CE WM_WINDOWPOSCHANGING does not seem to be supported, so when I start the dialog, it appears right on the screen.. How can I hide it. Annum
-
Reading emailAll I want to do is just display the email thats there on my Pocket pc desvice. I am using evc++3 and Pocket PC 2002. Any samples, pointers, welcome. Annum
-
Pocket ExcelIs there a way to display Pocket excel/ Excel from my application without using the Shellexecute, like you can display Pocket Word files from the program on a pocket pc using the richink control, is there something similar for Excel/Pocket Excel as well. I will be using evc ++ 3.0, Win32, 2002/2003 Annum
-
Pocket PC Pocket WordI want to be able to display only..... Thanks!
-
Pocket PC Pocket WordI have to be able to open and display the text of pocket word, pocket excel files in my app. I know there is no Pocket Automation available. Is there any other suggestion to go about it? Any help is very much appreciated. I am using evc++ 3/4 and Pocket PC 2002/2003 for my development. thanks for you time
-
Regex++ causes abnormal program terminationI am using the CRegex class as am not good in using stl,i know now the pattern to be used for searching is not correct but dont know what the problem is ,basically what i am trying to do is look for lmp() in each line and remove new lines after all the lines that dont have a line wih lmp() beofre them,that way all the lines will start with lmp()
-
Regex++ causes abnormal program terminationHere is my code CStdioFile myfile,newFile; CString inString = ""; char* fString=""; //char *pattern="((\\s*lmp\\s*))"; char *pattern="\\s*(LMP\\([0-9]+\\)).*)\\n"; //***********The line below when reached //causes abnormal termination,dont know /whats the problem Please help RegEx exp(pattern,TRUE); std::string wholeFileStr=""; CString wholeFileString = "",filname="c:\\test23.txt",nName="c:\\MunnaMunna.txt"; // Read entire file into a string. try{ myfile.Open(filname,CFile::modeRead | CFile::typeText, NULL); newFile.Open(nName,CFile::modeWrite , NULL); } catch (CFileException e) { MessageBox("The file " + filname + " could not be opened for reading", "File Open Failed", MB_ICONHAND|MB_ICONSTOP|MB_ICONERROR ); //return FALSE; //myfile.Close(); //newFile.Close(); } try{ while (myfile.ReadString(inString)) {//newFile.WriteString(inString); //wholeFileString += inString; wholeFileStr = inString.GetBuffer(2); // //const char *wholeFileStr=(LPCTSTR)inString;//.GetBuffer(10); // RegEx exp("(\\*sLMP((0-9)+\)).*)\n$",TRUE); // RegEx exp("(\s*LMP\([0-9]+\))",TRUE); // RegEx exp("\s*LMP",TRUE); if(exp.Search(wholeFileStr)) { //strcpy(fString,exp[1].c_str()); CString sd(exp[1].c_str()); AfxMessageBox(sd); } else if(fString!="") { CString temp(fString); //CString temp2(wholeFileStr); temp+=inString; temp+="\n"; //strcat(fString,wholeFileStr); //strcat(fString,"\n"); newFile.WriteString(temp); } } //*************************************************************** } catch (CFileException e) { MessageBox("The file " + filname + " could not be opened for reading", "File Open Failed", MB_ICONHAND|MB_ICONSTOP|MB_ICONERROR ); //return FALSE; //myfile.Close(); //newFile.Close(); } newFile.Close(); myfile.Close();