Click here to Skip to main content
15,921,542 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfail to get information from remote machine using WMI, vc 6 Pin
TechCrazy21-Dec-08 5:18
TechCrazy21-Dec-08 5:18 
AnswerRe: fail to get information from remote machine using WMI, vc 6 Pin
Stuart Dootson21-Dec-08 14:26
professionalStuart Dootson21-Dec-08 14:26 
GeneralRe: fail to get information from remote machine using WMI, vc 6 Pin
TechCrazy21-Dec-08 14:48
TechCrazy21-Dec-08 14:48 
GeneralRe: fail to get information from remote machine using WMI, vc 6 Pin
Stuart Dootson21-Dec-08 17:00
professionalStuart Dootson21-Dec-08 17:00 
GeneralRe: fail to get information from remote machine using WMI, vc 6 Pin
TechCrazy21-Dec-08 17:24
TechCrazy21-Dec-08 17:24 
GeneralRe: fail to get information from remote machine using WMI, vc 6 Pin
Randor 21-Dec-08 18:26
professional Randor 21-Dec-08 18:26 
GeneralRe: fail to get information from remote machine using WMI, vc 6 Pin
TechCrazy21-Dec-08 19:40
TechCrazy21-Dec-08 19:40 
GeneralRe: fail to get information from remote machine using WMI, vc 6 Pin
Stuart Dootson22-Dec-08 0:14
professionalStuart Dootson22-Dec-08 0:14 
TechCrazy wrote:
maybe it was
but right now ,i created a account in target machine ,the same username and password with my machine, and the code worked !!!!
i still don't know why


Seems pretty obvious it was security related...it failed until you created an account on the other machine with the same credentials as the one you were running the program with.

I notice in your program that you prompt for a username and password, but then just use hard-coded values. That seems to be the single deviation between your program and this sample one in MSDN[^].

I think you need to do some reading, to understand how all this works, rather than taking a sample and poking it to try to get you get what you want.
AnswerRe: fail to get information from remote machine using WMI, vc 6 Pin
Baltoro22-Dec-08 7:27
Baltoro22-Dec-08 7:27 
QuestionLibraries linkage question Pin
eli1502197921-Dec-08 2:24
eli1502197921-Dec-08 2:24 
AnswerRe: Libraries linkage question Pin
Gary R. Wheeler21-Dec-08 2:36
Gary R. Wheeler21-Dec-08 2:36 
QuestionDevelopping an advenced multi-client chat Part 1 Pin
Mustapha Rédouane21-Dec-08 1:58
Mustapha Rédouane21-Dec-08 1:58 
Answercreate many dialogboxes and the amin window is still responsive Pin
Mustapha Rédouane21-Dec-08 2:15
Mustapha Rédouane21-Dec-08 2:15 
GeneralRe: create many dialogboxes and the amin window is still responsive Pin
Stuart Dootson21-Dec-08 2:20
professionalStuart Dootson21-Dec-08 2:20 
GeneralRe: create many dialogboxes and the amin window is still responsive Pin
Mustapha Rédouane21-Dec-08 22:16
Mustapha Rédouane21-Dec-08 22:16 
QuestionUsing MFC's socket within the Process' threads Pin
AmitCohen22220-Dec-08 23:40
AmitCohen22220-Dec-08 23:40 
AnswerRe: Using MFC's socket within the Process' threads Pin
CPallini21-Dec-08 0:05
mveCPallini21-Dec-08 0:05 
AnswerRe: Using MFC's socket within the Process' threads Pin
Mark Salsbery21-Dec-08 5:19
Mark Salsbery21-Dec-08 5:19 
AnswerRe: Using MFC's socket within the Process' threads Pin
L. Madhavan21-Dec-08 18:50
L. Madhavan21-Dec-08 18:50 
GeneralRe: Using MFC's socket within the Process' threads Pin
Mike O'Neill22-Dec-08 13:25
Mike O'Neill22-Dec-08 13:25 
GeneralRe: Using MFC's socket within the Process' threads Pin
L. Madhavan22-Dec-08 19:03
L. Madhavan22-Dec-08 19:03 
Questionhelp me to describe this code plese Pin
auralius manurung20-Dec-08 22:02
auralius manurung20-Dec-08 22:02 
AnswerRe: help me to describe this code plese Pin
Garth J Lancaster20-Dec-08 22:54
professionalGarth J Lancaster20-Dec-08 22:54 
AnswerRe: help me to describe this code plese Pin
CPallini20-Dec-08 23:34
mveCPallini20-Dec-08 23:34 
GeneralRe: help me to describe this code plese Pin
auralius manurung21-Dec-08 2:28
auralius manurung21-Dec-08 2:28 

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.