Converts the CDocBuilderValue object to an integer.
Name | Type | Description |
result | long* | The returned integer value. |
CoInitialize(NULL); IONLYOFFICEDocBuilder* oBuilder = NULL; IONLYOFFICEDocBuilderContext* oContext = NULL; IONLYOFFICEDocBuilderValue* oGlobal = NULL; long l; oBuilder->Initialize(); oBuilder->GetContext(&oContext); oContext->GetGlobal(&oGlobal); oGlobal->ToInt(&l); oBuilder->Dispose();