Working with 64 Bit integer

Discussion in 'C' started by anuj1085, Dec 28, 2011.

  1. anuj1085

    anuj1085 New Member

    Joined:
    Dec 28, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi

    I am facing a problem i need to read a 64 bit integer value the is the value of RID available pool:
    i have written this code:

    swprintf(strObjectDN, L"LDAP://CN=RID Manager$,CN=System,DC=ado701tre,DC=com");
    hr = ADsGetObject(strObjectDN, IID_IADs, (void**)&pObj);

    if ( !SUCCEEDED(hr) )
    {
    printf("\nFailure in connection");
    return 0;

    }
    VariantInit(&tempVariant);

    hr = pObj->Get(CComBSTR("rIDAvailablePool"), &tempVariant);
    if(!SUCCEEDED(hr))
    {
    printf("\nGet object Failed");
    return 0;

    }

    Everything id wroking fine but i m not able to get the value of 64 bit integer from the Variant.

    the value i need to fetch is rIDAvailablePool: 4611686014132422211
    any help would be highly appreciated.

    Thanks
    Anuj
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice