All Frameworks Class Hierarchy This Framework Indexes
Macro VPMCheckingGlobalMethod (iMeth,oHres)Controls Access to a global secured function.
Role: This macro controls global access to a global function.
A global function relates to NO class (e.g: Print, etc)
Usage:
void myServices::Print(...) { HRESULT hr = S_OK; VPMCheckingGlobalMethod(Print,&hr); if (VPM_ACCESS_GRANTED(hr)) { // access is granted! } else if (VPM_ACCESS_DENIED(hr)) { // access is denied! } else { // an error occured (global method not declared, etc). } } |
Copyright © 2003, Dassault Systèmes. All rights reserved.