Click here to Skip to main content
15,901,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Networking via Internet in C++ Pin
Garth J Lancaster11-Feb-08 13:40
professionalGarth J Lancaster11-Feb-08 13:40 
GeneralRe: Networking via Internet in C++ Pin
Michael Fritzius12-Feb-08 5:25
professionalMichael Fritzius12-Feb-08 5:25 
GeneralRe: Networking via Internet in C++ Pin
Garth J Lancaster12-Feb-08 11:11
professionalGarth J Lancaster12-Feb-08 11:11 
GeneralRe: Networking via Internet in C++ Pin
Garth J Lancaster12-Feb-08 11:13
professionalGarth J Lancaster12-Feb-08 11:13 
GeneralRe: Networking via Internet in C++ Pin
Michael Fritzius14-Feb-08 5:10
professionalMichael Fritzius14-Feb-08 5:10 
GeneralRe: Networking via Internet in C++ Pin
Garth J Lancaster14-Feb-08 10:44
professionalGarth J Lancaster14-Feb-08 10:44 
GeneralRe: Networking via Internet in C++ Pin
Garth J Lancaster12-Feb-08 16:05
professionalGarth J Lancaster12-Feb-08 16:05 
Generalsystem() -passing a variable parameter to wget thro cmd Pin
Gregor Casar9-Feb-08 11:45
Gregor Casar9-Feb-08 11:45 
Hello.


I'm trying to download a whole sequence od pictures, which are stored on this location:

http://resources.wizards.com/Magic/Cards/LRW/EN/

Now, this map is restricred, but if you enter a specific image url, like

http://resources.wizards.com/Magic/Cards/LRW/EN/Card143370.jpg

you'll be able to download the image!



Images are not named in order, from 000001 to 999999, but my guess is that this six digit number serves as a protection, from what I'm trying to do.

Anyways, I wanted to write a c++ program wich uses 'system()' function to pass a command to cmd, which than opens wget. I need to pass a parameter with that - a parameter that will be changed 999999 times and called 999999 times again and again. I tried to use this code, but wget just does not 'get it'

char temp[512];<br />
        sprintf(temp, "wget %s ", parameter);<br />
	system((char *)temp);


Now, output to cmd of this is

wget http://resources.wizards.com/Magic/Cards/LRW/EN/Card143370.jpg

and it magicaly runs wget! But...the parameter it gets, understands is (null) for some reason!


I've used all my knowledge, read alot of forum posts, references...no answers, tough I lerned alotBig Grin | :-D


Thanks,

Gregor
QuestionRe: system() -passing a variable parameter to wget thro cmd Pin
Mark Salsbery9-Feb-08 12:20
Mark Salsbery9-Feb-08 12:20 
GeneralRe: system() -passing a variable parameter to wget thro cmd [modified] Pin
Gregor Casar9-Feb-08 12:29
Gregor Casar9-Feb-08 12:29 
GeneralRe: system() -passing a variable parameter to wget thro cmd Pin
Mark Salsbery10-Feb-08 9:16
Mark Salsbery10-Feb-08 9:16 
GeneralRe: system() -passing a variable parameter to wget thro cmd Pin
David Crow11-Feb-08 3:37
David Crow11-Feb-08 3:37 
GeneralRuntime control creation in VC++ Pin
rp_suman9-Feb-08 6:30
rp_suman9-Feb-08 6:30 
AnswerRe: Runtime control creation in VC++ Pin
Hamed Musavi9-Feb-08 7:30
Hamed Musavi9-Feb-08 7:30 
GeneralRe: Runtime control creation in VC++ Pin
rp_suman9-Feb-08 22:06
rp_suman9-Feb-08 22:06 
QuestionRe: Runtime control creation in VC++ Pin
Mark Salsbery9-Feb-08 8:23
Mark Salsbery9-Feb-08 8:23 
GeneralRe: Runtime control creation in VC++ Pin
rp_suman9-Feb-08 21:58
rp_suman9-Feb-08 21:58 
GeneralRe: Runtime control creation in VC++ Pin
Mark Salsbery10-Feb-08 8:58
Mark Salsbery10-Feb-08 8:58 
GeneralRe: Runtime control creation in VC++ Pin
Hamid_RT10-Feb-08 20:57
Hamid_RT10-Feb-08 20:57 
QuestionC++ to mathlab Pin
ashwiny9-Feb-08 3:11
ashwiny9-Feb-08 3:11 
GeneralRe: C++ to mathlab Pin
carrivick9-Feb-08 5:40
carrivick9-Feb-08 5:40 
GeneralRe: C++ to mathlab Pin
ashwiny9-Feb-08 6:04
ashwiny9-Feb-08 6:04 
AnswerRe: C++ to mathlab Pin
Arris7410-Feb-08 1:28
Arris7410-Feb-08 1:28 
QuestionHow to create a CTime object from three interger values - hr, min and sec Pin
Priya_Sundar8-Feb-08 19:44
Priya_Sundar8-Feb-08 19:44 
GeneralRe: How to create a CTime object from three interger values - hr, min and sec Pin
sudhir.marni8-Feb-08 20:09
sudhir.marni8-Feb-08 20:09 

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.