Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Resource handle Pin
Paresh Chitte28-Oct-07 19:24
Paresh Chitte28-Oct-07 19:24 
QuestionAccesing operator from parent class Pin
Fernando A. Gomez F.26-Oct-07 18:03
Fernando A. Gomez F.26-Oct-07 18:03 
AnswerRe: Accesing operator from parent class [modified] Pin
Hamed Musavi27-Oct-07 0:05
Hamed Musavi27-Oct-07 0:05 
GeneralRe: Accesing operator from parent class Pin
Fernando A. Gomez F.27-Oct-07 13:28
Fernando A. Gomez F.27-Oct-07 13:28 
GeneralRe: Accesing operator from parent class Pin
Hamed Musavi27-Oct-07 20:34
Hamed Musavi27-Oct-07 20:34 
GeneralRe: Accesing operator from parent class Pin
Fernando A. Gomez F.27-Oct-07 22:08
Fernando A. Gomez F.27-Oct-07 22:08 
GeneralRe: Accesing operator from parent class Pin
Hamed Musavi28-Oct-07 3:16
Hamed Musavi28-Oct-07 3:16 
Questionhow to get Domain Role Pin
HOW WHAT26-Oct-07 14:33
HOW WHAT26-Oct-07 14:33 
VBScript code:

set oWMI = GetObject("winmgmts:/root/cimv2")<br />
<br />
Set colItems = oWMI.ExecQuery("SELECT * FROM Win32_ComputerSystem", "WQL", _<br />
                                          wbemFlagReturnImmediately + wbemFlagForwardOnly)<br />
<br />
For Each objItem In colItems<br />
    strDomain = objItem.Domain<br />
    strRole = TranslateDomainRole(objItem.DomainRole)<br />
Next<br />
<br />
<br />
<br />
function TranslateDomainRole(byVal roleID)<br />
   Dim a<br />
<br />
   Select Case roleID<br />
      Case 0<br />
         a = "Standalone Workstation"<br />
      Case 1<br />
         a = "Member Workstation"<br />
      Case 2<br />
         a = "Standalone Server"<br />
      Case 3<br />
         a = "Member Server"<br />
      Case 4<br />
         a = "Backup Domain Controller"<br />
      Case 5<br />
         a = "Primary Domain Controller"<br />
   End Select<br />
   TranslateDomainRole = a<br />
end function


-----------------------------------------------------
What's Domain Role? how to get it in C++(not use WMI)?

Thanks.
AnswerRe: how to get Domain Role Pin
David Crow29-Oct-07 4:20
David Crow29-Oct-07 4:20 
QuestionCAsyncSocket and Message Pump Pin
Don Rolando26-Oct-07 10:30
Don Rolando26-Oct-07 10:30 
AnswerRe: CAsyncSocket and Message Pump Pin
Mark Salsbery26-Oct-07 12:10
Mark Salsbery26-Oct-07 12:10 
GeneralRe: CAsyncSocket and Message Pump Pin
Don Rolando26-Oct-07 20:20
Don Rolando26-Oct-07 20:20 
GeneralRe: CAsyncSocket and Message Pump [modified] Pin
Don Rolando26-Oct-07 21:51
Don Rolando26-Oct-07 21:51 
GeneralRe: CAsyncSocket and Message Pump Pin
Mark Salsbery27-Oct-07 6:57
Mark Salsbery27-Oct-07 6:57 
GeneralRe: CAsyncSocket and Message Pump Pin
Moak8-Nov-07 12:03
Moak8-Nov-07 12:03 
GeneralRe: CAsyncSocket and Message Pump Pin
Blake Miller20-Nov-07 6:53
Blake Miller20-Nov-07 6:53 
QuestionCHtmlView - how to get session Pin
m1m226-Oct-07 8:49
m1m226-Oct-07 8:49 
QuestionProgram terminates Pin
pourang26-Oct-07 8:28
pourang26-Oct-07 8:28 
AnswerRe: Program terminates [modified] Pin
Chris Losinger26-Oct-07 8:31
professionalChris Losinger26-Oct-07 8:31 
GeneralRe: Program terminates Pin
pourang26-Oct-07 8:34
pourang26-Oct-07 8:34 
GeneralRe: Program terminates Pin
pourang26-Oct-07 8:36
pourang26-Oct-07 8:36 
QuestionRe: Program terminates Pin
David Crow26-Oct-07 8:37
David Crow26-Oct-07 8:37 
AnswerRe: Program terminates Pin
Chris Losinger26-Oct-07 9:10
professionalChris Losinger26-Oct-07 9:10 
QuestionCWinApp::OnIdle problem?? Pin
SandipG 26-Oct-07 8:01
SandipG 26-Oct-07 8:01 
QuestionDialog based application for different screen resolutions Pin
victoria195026-Oct-07 7:47
victoria195026-Oct-07 7:47 

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.