Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opinion about Notify Icon Pin
Mark Salsbery14-Jan-08 6:08
Mark Salsbery14-Jan-08 6:08 
GeneralNewbie Question on C Pointers Pin
_NielsB12-Jan-08 10:55
_NielsB12-Jan-08 10:55 
GeneralRe: Newbie Question on C Pointers Pin
Chris Losinger12-Jan-08 11:03
professionalChris Losinger12-Jan-08 11:03 
GeneralRe: Newbie Question on C Pointers Pin
CPallini12-Jan-08 11:58
mveCPallini12-Jan-08 11:58 
GeneralRe: Newbie Question on C Pointers Pin
_NielsB12-Jan-08 21:29
_NielsB12-Jan-08 21:29 
GeneralRe: Newbie Question on C Pointers Pin
CPallini12-Jan-08 23:19
mveCPallini12-Jan-08 23:19 
GeneralRe: Newbie Question on C Pointers Pin
_NielsB12-Jan-08 23:45
_NielsB12-Jan-08 23:45 
Generalsearching web - automated Pin
Force Code12-Jan-08 10:34
Force Code12-Jan-08 10:34 
Trying to search the web in a loop, hitting the search engine with a new query with each iteration (with thousands of terms for this particular application). Don't know frankly if that's even allowed, as google kicks you off if you try to do it. But the following code below uses the COM IWebBrowser2 interface to an open InternetExplorer. Don't know if that is considered antiquated or there's a faster way to do it, because right now I'm just getting about a page per second. Is there a faster way than the following:

SHDocVw::IWebBrowser2Ptr brwsr = NULL;
.
.
.
brwsr = SHDocVw::IWebBrowser2Ptr(spDisp);

.
.
.

strcpy(srch_engn,"http://www.mysearch.com/search/GGmain.jhtml?searchfor");
sprintf(szURL,"%s=%s+%%22",srch_engn,q_misc);
char* szSrch = szURL+strlen(szURL);

while (1) {

  strcpy(szSrch,getNextSrch(...));

  BSTR bstr = ConvertStringToBSTR(szURL);

  brwsr->Navigate(bstr);

  VARIANT_BOOL busy;
  READYSTATE rs;
  while(1) {
    Sleep(200);
    brwsr->get_Busy(&busy);
    if (!busy) break;
    brwsr->get_ReadyState(&rs);
    if (rs == READYSTATE_LOADED) break;
    if (rs == READYSTATE_COMPLETE) break;
  }

  brwsr->Stop();

  .
  .
  .

}

GeneralRe: searching web - automated Pin
Force Code12-Jan-08 10:46
Force Code12-Jan-08 10:46 
GeneralSwitching off hibernation [modified] Pin
tibiz12-Jan-08 8:33
tibiz12-Jan-08 8:33 
GeneralRe: Switching off hibernation Pin
David Crow12-Jan-08 9:44
David Crow12-Jan-08 9:44 
GeneralRe: Switching off hibernation Pin
tibiz12-Jan-08 9:47
tibiz12-Jan-08 9:47 
GeneralRe: Switching off hibernation Pin
David Crow12-Jan-08 10:11
David Crow12-Jan-08 10:11 
GeneralOk, let's have a Working code Pin
tibiz12-Jan-08 11:10
tibiz12-Jan-08 11:10 
GeneralRe: Switching off hibernation Pin
Blake Miller22-Jan-08 11:44
Blake Miller22-Jan-08 11:44 
Generalcontext menu cause flicking Pin
followait12-Jan-08 5:51
followait12-Jan-08 5:51 
QuestionRe: context menu cause flicking Pin
Mark Salsbery12-Jan-08 7:34
Mark Salsbery12-Jan-08 7:34 
GeneralRe: context menu cause flicking [modified] Pin
followait12-Jan-08 15:19
followait12-Jan-08 15:19 
QuestionRe: context menu cause flicking Pin
Mark Salsbery14-Jan-08 6:15
Mark Salsbery14-Jan-08 6:15 
Questiondifference between stack & heap Pin
raaf12-Jan-08 4:57
raaf12-Jan-08 4:57 
GeneralRe: difference between stack & heap Pin
CPallini12-Jan-08 5:44
mveCPallini12-Jan-08 5:44 
GeneralRe: difference between stack & heap Pin
raaf12-Jan-08 16:13
raaf12-Jan-08 16:13 
GeneralRe: difference between stack & heap Pin
Maxwell Chen12-Jan-08 8:50
Maxwell Chen12-Jan-08 8:50 
GeneralRe: difference between stack & heap Pin
CPallini12-Jan-08 10:28
mveCPallini12-Jan-08 10:28 
GeneralRe: difference between stack & heap Pin
Maxwell Chen12-Jan-08 10:36
Maxwell Chen12-Jan-08 10:36 

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.