Click here to Skip to main content
15,905,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: System () in vc++ 6.0 Pin
super_ttd22-Apr-06 6:24
super_ttd22-Apr-06 6:24 
AnswerRe: System () in vc++ 6.0 Pin
David Crow21-Apr-06 4:54
David Crow21-Apr-06 4:54 
AnswerRe: System () in vc++ 6.0 Pin
Aqueel21-Apr-06 5:23
Aqueel21-Apr-06 5:23 
QuestionShortDate in MFC Pin
QuickDeveloper21-Apr-06 4:33
QuickDeveloper21-Apr-06 4:33 
AnswerRe: ShortDate in MFC Pin
James R. Twine21-Apr-06 4:50
James R. Twine21-Apr-06 4:50 
AnswerRe: ShortDate in MFC Pin
Roger Stoltz21-Apr-06 4:55
Roger Stoltz21-Apr-06 4:55 
Questionlistview position after inserting an item Pin
karfi21-Apr-06 3:57
karfi21-Apr-06 3:57 
QuestionDisabling Wireless while on network Pin
lynchspawn21-Apr-06 3:33
lynchspawn21-Apr-06 3:33 
I have a program that disables the wireless NIC when a hard-wired network connection is detected. It works fine but there is one catch - when you want to use wireless later, you have to go to the Network Connections window and click Disable, then Enable to get it working again. People at our company just cannot remember to do this and I would really like to avoid them having to do this if possible.

The method of disabling the NIC I have used is roughly:
myMIBIFROW.dwAdminStatus = MIB_IF_ADMIN_STATUS_DOWN;<br />
                            dwError = SetIfEntry(&myMIBIFROW);


It works but one drawback is that the control panel Network Connections window still thinks it is enabled after this. I think this is why you have to click Disable first then Enable to get the wireless going again.

So, does anyone know how to programatically simulate a click on the Disable and Enable menu options? Any other tricks to help?

BTW - setting the status to up and calling SetIfEntry() did not work.

Thanks.
Dave
QuestionInformation on cells of a CListctrl Pin
Sandeep A.C21-Apr-06 3:22
Sandeep A.C21-Apr-06 3:22 
AnswerRe: Information on cells of a CListctrl Pin
Naveen21-Apr-06 3:36
Naveen21-Apr-06 3:36 
AnswerRe: Information on cells of a CListctrl Pin
James R. Twine21-Apr-06 4:43
James R. Twine21-Apr-06 4:43 
Questionquery on domodal dialogboxes Pin
swapna_signsin21-Apr-06 3:07
swapna_signsin21-Apr-06 3:07 
AnswerRe: query on domodal dialogboxes Pin
includeh1021-Apr-06 3:13
includeh1021-Apr-06 3:13 
GeneralRe: query on domodal dialogboxes Pin
includeh1021-Apr-06 3:40
includeh1021-Apr-06 3:40 
QuestionI/O to a file Pin
CPP91121-Apr-06 2:55
CPP91121-Apr-06 2:55 
AnswerRe: I/O to a file Pin
Aqueel21-Apr-06 4:49
Aqueel21-Apr-06 4:49 
QuestionChange CView to CScrollView Pin
pathakr21-Apr-06 2:23
pathakr21-Apr-06 2:23 
AnswerRe: Change CView to CScrollView Pin
David Crow21-Apr-06 2:26
David Crow21-Apr-06 2:26 
AnswerRe: Change CView to CScrollView Pin
includeh1021-Apr-06 3:24
includeh1021-Apr-06 3:24 
Questionmove graphic line Pin
yang__lee21-Apr-06 2:16
yang__lee21-Apr-06 2:16 
AnswerRe: move graphic line Pin
Cedric Moonen21-Apr-06 2:22
Cedric Moonen21-Apr-06 2:22 
GeneralRe: move graphic line Pin
yang__lee21-Apr-06 2:32
yang__lee21-Apr-06 2:32 
GeneralRe: move graphic line Pin
Cedric Moonen21-Apr-06 2:48
Cedric Moonen21-Apr-06 2:48 
GeneralRe: move graphic line Pin
yang__lee21-Apr-06 18:21
yang__lee21-Apr-06 18:21 
Questionproblem in printing due to MapMode Pin
yang__lee21-Apr-06 2:12
yang__lee21-Apr-06 2:12 

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.