Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Saving console's output buffer Pin
David Crow2-Mar-06 9:38
David Crow2-Mar-06 9:38 
AnswerRe: Saving console's output buffer Pin
Brett Peirce2-Mar-06 12:56
Brett Peirce2-Mar-06 12:56 
GeneralRe: Saving console's output buffer Pin
David Crow3-Mar-06 2:50
David Crow3-Mar-06 2:50 
GeneralRe: Saving console's output buffer Pin
Brett Peirce6-Mar-06 6:30
Brett Peirce6-Mar-06 6:30 
Questionpassing CString into ofstream? Pin
ldsdbomber2-Mar-06 6:09
ldsdbomber2-Mar-06 6:09 
AnswerRe: passing CString into ofstream? Pin
David Crow2-Mar-06 6:32
David Crow2-Mar-06 6:32 
GeneralRe: passing CString into ofstream? Pin
ldsdbomber2-Mar-06 21:54
ldsdbomber2-Mar-06 21:54 
QuestionWMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 5:47
viperlogic2-Mar-06 5:47 
Hi
I have below the following piece of code in a vc++6 MFC dialog project. i want to have it that the ip address can be entered into a "edit box" and that ip address can then be pinged.

im guessing that i change the WHERE Address=\"127.0.0.1\"" to WHERE Address='"+Addy+"'" or is that wrong?

how do i declare the variable Addy, as i have tried a few but no sucess

please help



Existing code....
hres = pSvc->ExecQuery( L"WQL", L"SELECT * FROM Win32_PingStatus WHERE Address=\"127.0.0.1\"", WBEM_FLAG_FORWARD_ONLY, NULL, &pEnumerator);

-- modified at 12:01 Thursday 2nd March, 2006
QuestionRe: WMI Win32_PingStatus address help Pin
David Crow2-Mar-06 8:02
David Crow2-Mar-06 8:02 
AnswerRe: WMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 8:19
viperlogic2-Mar-06 8:19 
GeneralRe: WMI Win32_PingStatus address help Pin
David Crow2-Mar-06 8:26
David Crow2-Mar-06 8:26 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 8:36
viperlogic2-Mar-06 8:36 
GeneralRe: WMI Win32_PingStatus address help Pin
Ryan Binns2-Mar-06 16:59
Ryan Binns2-Mar-06 16:59 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic2-Mar-06 22:44
viperlogic2-Mar-06 22:44 
GeneralRe: WMI Win32_PingStatus address help Pin
Nibu babu thomas3-Mar-06 0:27
Nibu babu thomas3-Mar-06 0:27 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic3-Mar-06 4:36
viperlogic3-Mar-06 4:36 
GeneralRe: WMI Win32_PingStatus address help Pin
Ryan Binns3-Mar-06 13:50
Ryan Binns3-Mar-06 13:50 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic6-Mar-06 9:08
viperlogic6-Mar-06 9:08 
GeneralRe: WMI Win32_PingStatus address help Pin
viperlogic6-Mar-06 9:27
viperlogic6-Mar-06 9:27 
Questionreading a string from a file Pin
SWDevil2-Mar-06 5:33
SWDevil2-Mar-06 5:33 
AnswerRe: reading a string from a file Pin
David Crow2-Mar-06 6:34
David Crow2-Mar-06 6:34 
GeneralRe: reading a string from a file Pin
SWDevil2-Mar-06 8:14
SWDevil2-Mar-06 8:14 
GeneralRe: reading a string from a file Pin
David Crow2-Mar-06 8:28
David Crow2-Mar-06 8:28 
GeneralRe: reading a string from a file Pin
SWDevil2-Mar-06 8:36
SWDevil2-Mar-06 8:36 
GeneralRe: reading a string from a file Pin
Wes Aday2-Mar-06 9:09
professionalWes Aday2-Mar-06 9:09 

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.