H
Henaro
Hello~
I am having trouble setting environment variables in C++ on win32.
The code that is not working is:
char prxy[500];
char pf_cmd1[500] = "set http_proxy=";
....
cout <<"What proxy will you be using? Please input it as
IPADDRESSORT\n";
cin.getline(prxy,499);
strcat(pf_cmd1, prxy);
system(pf_cmd1);
It compiles correctly; using Dev-C++.
But it just doesn't work.
:-(
I am having trouble setting environment variables in C++ on win32.
The code that is not working is:
char prxy[500];
char pf_cmd1[500] = "set http_proxy=";
....
cout <<"What proxy will you be using? Please input it as
IPADDRESSORT\n";
cin.getline(prxy,499);
strcat(pf_cmd1, prxy);
system(pf_cmd1);
It compiles correctly; using Dev-C++.
But it just doesn't work.
:-(