Click here to Skip to main content
15,886,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting the text in an edit box of another application Pin
Still learning how to code11-Jul-10 12:11
Still learning how to code11-Jul-10 12:11 
GeneralRe: Setting the text in an edit box of another application Pin
Luc Pattyn11-Jul-10 12:48
sitebuilderLuc Pattyn11-Jul-10 12:48 
GeneralRe: Setting the text in an edit box of another application Pin
Luc Pattyn11-Jul-10 13:37
sitebuilderLuc Pattyn11-Jul-10 13:37 
GeneralRe: Setting the text in an edit box of another application Pin
Still learning how to code11-Jul-10 21:45
Still learning how to code11-Jul-10 21:45 
QuestionUrlDownloadToFile() equivalent for linux? Pin
ALLERSLIT10-Jul-10 9:59
ALLERSLIT10-Jul-10 9:59 
AnswerRe: UrlDownloadToFile() equivalent for linux? Pin
markkuk10-Jul-10 11:05
markkuk10-Jul-10 11:05 
GeneralRe: UrlDownloadToFile() equivalent for linux? Pin
ALLERSLIT10-Jul-10 12:26
ALLERSLIT10-Jul-10 12:26 
AnswerRe: UrlDownloadToFile() equivalent for linux? Pin
Aescleal10-Jul-10 20:06
Aescleal10-Jul-10 20:06 
It may not be as easy to use but on the CURL website there's a simple HTTP[^] client in about 6 lines. Open a file to write to and use CURLOPT_WRITEDATA and snip snip, bob's your Aunty:

#include <stdio.h>
#include <curl/curl.h>
 
int main(void)
{
  CURL *curl = curl_easy_init();
  FILE *output_to = fopen( "output.txt", "w" );
 
  if( curl && output_to )
  {
    curl_easy_setopt(curl, CURLOPT_URL,       "curl.haxx.se" );
    curl_easy_setopt(curl, CURLOPT_WRITEDATA, output_to      );
    curl_easy_perform(curl);
  }

  if( curl ) curl_easy_cleanup(curl);
  if( output_to ) fclose( output_to );
}


Bundle that lot up in a function and you're done...

Cheers,

Ash

PS: There's no error reporting if the transfer goes pear shaped

PPS: I haven't programmed in C in years and not having cURL handy on my home computer I haven't checked the code compiles and runs but it's not far off
AnswerRe: UrlDownloadToFile() equivalent for linux? Pin
Moak11-Jul-10 6:01
Moak11-Jul-10 6:01 
QuestionWinMain loop pauses when the application window is grabbed by mouse and resized? Pin
KellyR10-Jul-10 8:31
KellyR10-Jul-10 8:31 
AnswerRe: WinMain loop pauses when the application window is grabbed by mouse and resized? Pin
Emilio Garavaglia10-Jul-10 23:52
Emilio Garavaglia10-Jul-10 23:52 
AnswerRe: WinMain loop pauses when the application window is grabbed by mouse and resized? Pin
Code-o-mat11-Jul-10 1:06
Code-o-mat11-Jul-10 1:06 
QuestionClass Information Pin
Fareed Rizkalla10-Jul-10 1:04
Fareed Rizkalla10-Jul-10 1:04 
AnswerRe: Class Information Pin
enhzflep10-Jul-10 1:11
enhzflep10-Jul-10 1:11 
AnswerRe: Class Information Pin
Jackson201010-Jul-10 18:41
Jackson201010-Jul-10 18:41 
QuestionError during print Pin
ashtwin9-Jul-10 20:48
ashtwin9-Jul-10 20:48 
QuestionRe: Error during print Pin
CPallini10-Jul-10 0:45
mveCPallini10-Jul-10 0:45 
AnswerRe: Error during print Pin
ashtwin14-Jul-10 23:19
ashtwin14-Jul-10 23:19 
AnswerRe: Error during print Pin
ashtwin15-Jul-10 2:47
ashtwin15-Jul-10 2:47 
QuestionHow to save IHTMLELEMENT of Tag IMG Pin
voo doo129-Jul-10 20:47
voo doo129-Jul-10 20:47 
AnswerRe: How to save IHTMLELEMENT of Tag IMG Pin
shichangone9-Jul-10 21:49
shichangone9-Jul-10 21:49 
GeneralRe: How to save IHTMLELEMENT of Tag IMG Pin
voo doo1212-Jul-10 15:49
voo doo1212-Jul-10 15:49 
QuestionHow can put here Vertical Scrollbar and Infotip or Tooltip for Items and Subitems? [modified] Pin
Le@rner9-Jul-10 20:20
Le@rner9-Jul-10 20:20 
QuestionCannot open the Dalog(DataBase error) [modified] Pin
raju_shiva9-Jul-10 18:33
raju_shiva9-Jul-10 18:33 
AnswerRe: Cannot open the Dalog(DataBase error) Pin
Richard MacCutchan10-Jul-10 0:39
mveRichard MacCutchan10-Jul-10 0:39 

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.