Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionnetsh mfc -- please help me Pin
deeps_cute6-Mar-07 4:20
deeps_cute6-Mar-07 4:20 
QuestionRe: netsh mfc -- please help me Pin
David Crow6-Mar-07 5:08
David Crow6-Mar-07 5:08 
AnswerRe: netsh mfc -- please help me Pin
deeps_cute6-Mar-07 5:26
deeps_cute6-Mar-07 5:26 
AnswerRe: netsh mfc -- please help me [modified] Pin
Ravi Bhavnani6-Mar-07 5:45
professionalRavi Bhavnani6-Mar-07 5:45 
GeneralRe: netsh mfc -- ok but (anyone please try to help me) Pin
deeps_cute6-Mar-07 5:53
deeps_cute6-Mar-07 5:53 
AnswerRe: netsh mfc -- ok but (anyone please try to help me) Pin
Ravi Bhavnani6-Mar-07 6:08
professionalRavi Bhavnani6-Mar-07 6:08 
GeneralRe: netsh mfc -- ok but (anyone please try to help me) Pin
Ravi Bhavnani6-Mar-07 6:22
professionalRavi Bhavnani6-Mar-07 6:22 
GeneralRe: netsh mfc -- please help me Pin
David Crow6-Mar-07 6:56
David Crow6-Mar-07 6:56 
deeps_cute wrote:
char para2[1024];
strcpy (para2, "\"Local Area Connection\" ");


You went from bad to worse. What's wrong with:

CString para2(\"Local Area Connection\");
or
CString para2 = "\"Local Area Connection\"";
deeps_cute wrote:
the vale returned from command is correct.


So what is it? You should be able to take the exact string (i.e., the contents of command), paste it into a command prompt, and get the desired results. If not, then command is not formatted properly.

deeps_cute wrote:
command.Format(_T("netsh interface ip set address name=%s static %s %s %s 1"),para3,m_IpAddress,m_subnet,m_gateway);


Is the value of para3 the same as it was in your initial post?


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: netsh mfc -- please help me Pin
deeps_cute6-Mar-07 16:16
deeps_cute6-Mar-07 16:16 
QuestionRe: netsh mfc -- please help me Pin
David Crow7-Mar-07 2:43
David Crow7-Mar-07 2:43 
QuestionHow can i make the toolbar active bt default. Pin
johny_koshy6-Mar-07 4:19
johny_koshy6-Mar-07 4:19 
Questionabout SetTimer Pin
mfc_dialog6-Mar-07 4:11
mfc_dialog6-Mar-07 4:11 
AnswerRe: about SetTimer Pin
Roger Stoltz6-Mar-07 4:51
Roger Stoltz6-Mar-07 4:51 
GeneralTemplate member functions Pin
hairy_hats6-Mar-07 1:35
hairy_hats6-Mar-07 1:35 
QuestionRe: Template member functions Pin
prasad_som6-Mar-07 1:54
prasad_som6-Mar-07 1:54 
GeneralRe: Template member functions Pin
Maximilien6-Mar-07 2:37
Maximilien6-Mar-07 2:37 
GeneralRe: Template member functions Pin
Stephen Hewitt6-Mar-07 11:52
Stephen Hewitt6-Mar-07 11:52 
Questionopen(char*,...) fails with "Too many open files" ..help me pls Pin
dharani6-Mar-07 1:32
dharani6-Mar-07 1:32 
AnswerRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
David Crow6-Mar-07 2:49
David Crow6-Mar-07 2:49 
AnswerRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
Nemanja Trifunovic6-Mar-07 3:15
Nemanja Trifunovic6-Mar-07 3:15 
AnswerRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
Blake Miller6-Mar-07 6:50
Blake Miller6-Mar-07 6:50 
GeneralRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
dharani6-Mar-07 17:23
dharani6-Mar-07 17:23 
GeneralRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
kakan6-Mar-07 19:14
professionalkakan6-Mar-07 19:14 
GeneralRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
Blake Miller7-Mar-07 10:14
Blake Miller7-Mar-07 10:14 
QuestionRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
David Crow7-Mar-07 2:54
David Crow7-Mar-07 2:54 

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.