Click here to Skip to main content
15,900,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 8:05
David Crow3-Nov-09 8:05 
AnswerRe: wifstream operator >> Pin
transoft3-Nov-09 8:18
transoft3-Nov-09 8:18 
GeneralRe: wifstream operator >> Pin
David Crow3-Nov-09 8:30
David Crow3-Nov-09 8:30 
GeneralRe: wifstream operator >> Pin
transoft3-Nov-09 8:46
transoft3-Nov-09 8:46 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 8:51
David Crow3-Nov-09 8:51 
AnswerRe: wifstream operator >> [modified] Pin
transoft3-Nov-09 9:01
transoft3-Nov-09 9:01 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 9:05
David Crow3-Nov-09 9:05 
QuestionHow to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:39
RickyJiao3-Nov-09 3:39 
My situation is that our users should be able to adjust their network settings (DHCP on/off, set static IP and set subnet mask) but I have yet to find a solution that is always reliable.

The following solution are from Google, but I think nothing are useful for me.

1. IP Helper API. Using AddIPAddress and DeleteIPAddress: Only adds an IP
address to the adapter, will not change the current one.

2. WMI using Win32_NetworkAdapterConfiguration: I don't want this solution.

3. netsh: Using CreateProcess and passing specail command line can do it, but I don't want to do by another process(Program).

4. DhcpNotifyConfigChange: Eidt registry and call DhcpNotifyConfigChange to notify change. The problem with DhcpNotifyConfigChange is that
it's an undocumented API.And if don't call DhcpNotifyConfigChange, you have to reboot your machine to take effect.

5. SetAdapterIpAddress. This solution are done well in Win2K and WinXP. It is not working under WinVista platform. This is an undocumented API. Using an undocumented API is never ideal
Any ideas? I just want to change IP,DNS,Getway and toggle DHCP without rebooting OS.This just like the Explorer.




AnswerRe: How to change IP address, DNS and Gateways Pin
wangningyu3-Nov-09 3:47
wangningyu3-Nov-09 3:47 
GeneralRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:50
RickyJiao3-Nov-09 3:50 
QuestionRe: How to change IP address, DNS and Gateways Pin
David Crow3-Nov-09 3:51
David Crow3-Nov-09 3:51 
AnswerRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:58
RickyJiao3-Nov-09 3:58 
GeneralRe: How to change IP address, DNS and Gateways Pin
David Crow3-Nov-09 4:06
David Crow3-Nov-09 4:06 
GeneralRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 4:15
RickyJiao3-Nov-09 4:15 
AnswerRe: How to change IP address, DNS and Gateways Pin
Randor 3-Nov-09 4:57
professional Randor 3-Nov-09 4:57 
Question[Message Deleted] Pin
davidcrow693-Nov-09 2:58
davidcrow693-Nov-09 2:58 
AnswerRe: Need help constructing B+ tree Pin
Stuart Dootson3-Nov-09 3:20
professionalStuart Dootson3-Nov-09 3:20 
QuestionRe: Need help constructing B+ tree Pin
David Crow3-Nov-09 3:22
David Crow3-Nov-09 3:22 
Answer[Message Deleted] Pin
davidcrow693-Nov-09 3:33
davidcrow693-Nov-09 3:33 
QuestionRe: Need help constructing B+ tree Pin
David Crow3-Nov-09 3:36
David Crow3-Nov-09 3:36 
AnswerRe: Need help constructing B+ tree Pin
Tim Craig3-Nov-09 14:21
Tim Craig3-Nov-09 14:21 
AnswerRe: Need help constructing B+ tree PinPopular
David Crow3-Nov-09 4:00
David Crow3-Nov-09 4:00 
QuestionConverting unsigned short int to its hex representation Pin
yeah10003-Nov-09 1:58
yeah10003-Nov-09 1:58 
AnswerRe: Converting unsigned short int to its hex representation Pin
Richard MacCutchan3-Nov-09 2:06
mveRichard MacCutchan3-Nov-09 2:06 
AnswerRe: Converting unsigned short int to its hex representation [fixed: thanks to David] Pin
CPallini3-Nov-09 2:30
mveCPallini3-Nov-09 2:30 

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.