Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Working with 64 Bit integer (http://www.go4expert.com/forums/64-bit-integer-t27465/)

anuj1085 28Dec2011 13:46

Working with 64 Bit integer
 
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


All times are GMT +5.5. The time now is 22:05.