Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 'delete' operator Pin
David Crow21-Apr-06 9:12
David Crow21-Apr-06 9:12 
QuestionProblem with CSocket Listen function Pin
jpyp21-Apr-06 7:28
jpyp21-Apr-06 7:28 
AnswerRe: Problem with CSocket Listen function Pin
basementman21-Apr-06 8:35
basementman21-Apr-06 8:35 
GeneralRe: Problem with CSocket Listen function Pin
jpyp21-Apr-06 9:39
jpyp21-Apr-06 9:39 
QuestionHow to use Spy++? Pin
XXKKFF21-Apr-06 6:46
XXKKFF21-Apr-06 6:46 
AnswerRe: How to use Spy++? Pin
Eric Dahlvang21-Apr-06 6:52
Eric Dahlvang21-Apr-06 6:52 
QuestionVerify a message signed from javacard by smartcard in Visual C++ Pin
Malacitano21-Apr-06 6:34
Malacitano21-Apr-06 6:34 
QuestionChange the backgroound color for a CListCtrl control Pin
masnu21-Apr-06 6:16
masnu21-Apr-06 6:16 
AnswerRe: Change the backgroound color for a CListCtrl control Pin
Naveen21-Apr-06 21:15
Naveen21-Apr-06 21:15 
QuestionCComboBox - DropList Style- Horizontal Scrollbar? Pin
jayart21-Apr-06 6:08
jayart21-Apr-06 6:08 
AnswerRe: CComboBox - DropList Style- Horizontal Scrollbar? Pin
David Crow21-Apr-06 6:21
David Crow21-Apr-06 6:21 
Question[Message Deleted] Pin
sherton21-Apr-06 4:38
sherton21-Apr-06 4:38 
AnswerRe: System () in vc++ 6.0 Pin
toxcct21-Apr-06 4:52
toxcct21-Apr-06 4:52 
GeneralRe: System () in vc++ 6.0 Pin
sherton22-Apr-06 0:39
sherton22-Apr-06 0:39 
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 

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.