Thread: Http + C++
View Single Post
  #4   Spotlight this post!  
Unread 02-11-2002, 03:24
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
We used something like this for our picture archiving program for AP Computer Science class (it basically searches a directory for specified picture files and archives them. It also inputs internet pictures, with link validating. Lastly, it can output the pictures in random slideshow format)... It was me and another person's final project...

http://personalpages.tds.net/~nadke/archiver.zip

That's the program, source included. You need the HTTP.h file...

Then the commands you should be able to look at the source in archiver.cpp. It's the linkchecker() function. Just replace the apstring types with c string types. Actually, that's what it's doing...

Code:
apstring temp = archive[i].locout();

const char* url = temp.c_str();
and the rest of the function uses "url" (to stay compatible from that APSTRING crap).
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.