1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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