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

C / C++ / MFC

 
QuestionRequest for Integer DCT Source code Pin
Sivadanams27-Oct-07 3:23
Sivadanams27-Oct-07 3:23 
AnswerRe: Request for Integer DCT Source code [modified] Pin
George L. Jackson27-Oct-07 7:26
George L. Jackson27-Oct-07 7:26 
QuestionPicture control Pin
david bagaturia27-Oct-07 0:23
david bagaturia27-Oct-07 0:23 
QuestionRe: Picture control Pin
Mark Salsbery27-Oct-07 7:10
Mark Salsbery27-Oct-07 7:10 
AnswerRe: Picture control Pin
david bagaturia27-Oct-07 22:26
david bagaturia27-Oct-07 22:26 
AnswerRe: Picture control Pin
david bagaturia28-Oct-07 0:00
david bagaturia28-Oct-07 0:00 
AnswerRe: Picture control Pin
Hamid_RT27-Oct-07 8:52
Hamid_RT27-Oct-07 8:52 
Questionwrite a function for DLL with parameter LPWORD in VC use in VB Pin
hameduser26-Oct-07 22:11
hameduser26-Oct-07 22:11 
Questioncan any body tell me how to make a invisble textbox visible in vc++ Pin
Deepu Antony26-Oct-07 21:41
Deepu Antony26-Oct-07 21:41 
AnswerRe: can any body tell me how to make a invisble textbox visible in vc++ [modified] Pin
chandu00426-Oct-07 21:53
chandu00426-Oct-07 21:53 
GeneralRe: can any body tell me how to make a invisble textbox visible in vc++ Pin
Deepu Antony26-Oct-07 22:10
Deepu Antony26-Oct-07 22:10 
GeneralRe: can any body tell me how to make a invisble textbox visible in vc++ Pin
saravana00127-Oct-07 4:46
saravana00127-Oct-07 4:46 
AnswerRe: can any body tell me how to make a invisble textbox visible in vc++ Pin
Nelek28-Oct-07 23:28
protectorNelek28-Oct-07 23:28 
Questionassembly in x64 Pin
zon_cpp26-Oct-07 21:29
zon_cpp26-Oct-07 21:29 
AnswerRe: assembly in x64 Pin
Nemanja Trifunovic27-Oct-07 9:38
Nemanja Trifunovic27-Oct-07 9:38 
QuestionResource handle Pin
Vinod CS26-Oct-07 21:04
Vinod CS26-Oct-07 21:04 
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 

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.