Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AgentOrange44

    Querying Active Directory

    Are you using GetEx() to get the "memberOf" groups? in my code I call: hr = objObject->GetEx(L"memberOf", &var); if(!SUCCEEDED(hr)) { hr = objObject->Get(L"memberOf", &var); //GetEx might not work for just one group } then I convert var to a SAFEARRAY and print all of the values
  2. AgentOrange44

    Querying Active Directory

    if(col.dwADsType == ADSTYPE_DN_STRING) { sprintf(tOP, "%S\n", col.pADsValues->CaseIgnoreString); WriteMessageChar(tOP); } you might want to handle CaseExactString, CaseIgnoreString and DNString seperatly. The code above didn't work for me until I changed the print to use...
  3. AgentOrange44

    Querying Active Directory

    // Search for all objects with the 'cn' property that start with c. hr = pDSSearch->ExecuteSearch(L"(&(objectClass=user)(objectCategory=person)(sAMAccountName=jjknack))", pszAttr ,dwAttrNameSize,&hSearch ); I'm guessing that the comment isn't right? That query will return the...
  4. AgentOrange44

    OOP approach in C

    when you preview your post checkout the code tags at the bottom of the "editing tips" section. I can't seem to figure out how to print the tag literals in my post, sorry.
  5. AgentOrange44

    2d array multiplication

    my bad, I can't compile code on my internet box, so I can't run your code. The prototype was right: void mult(double *fr_array2) but you need to pass the array like this: mult(&fr_array2);
  6. AgentOrange44

    2d array multiplication

    I think in your mult prototype you need to pass by reference: void mult(double &fr_array2) otherwise you are just copying the global fr_array2 array to the local array fr_array2, modifying the local fr_array2, and then printing the elements of the unchanged global fr_array2. Note that...
  7. AgentOrange44

    2d array multiplication

    Do you need to pass fr_array to mult() by reference?
  8. AgentOrange44

    IWbemClassObject::Get()

    I need help using the Get() function from IWbemClassObject. I've used this function before to return single values, but the problem I'm having is I can't seem to figure out how to handle multi-valued results. My query looks like this: hr = objWMIService->ExecQuery(L"WQL", L"Select * From...
  9. AgentOrange44

    2d array multiplication

    cmath is a newer verson of math.h, but math.h should contain sin() and cos().
  10. AgentOrange44

    need help with 'using namespace System;'

    Ok, then somebody explain the c++ example given here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiodirectoryclasstopic.asp
  11. AgentOrange44

    need help with 'using namespace System;'

    I think what is messing me up is this http://weblogs.asp.net/kennykerr/archive/2004/07/21/190070.aspx Also, when I try System:: it still says System isn't a namespace.
  12. AgentOrange44

    need help with 'using namespace System;'

    I'm trying to use the Directory class to do some enumeration and the example code I found contains: #include <stdafx.h> #using <mscorlib.dll> using namespace System; my code looks like: #define _WIN32_DCOM #include <Wbemidl.h> #include <iostream> #include <string> #include <Windows.h>...

Part and Inventory Search

Back
Top