void CComSafeArray::CreateOneDim(VARTYPE vtSrc, DWORD dwElements, const void *pvSrcData, long nLBound) { ATLASSERT(dwElements > 0); // Setup the bounds and create the array SAFEARRAYBOUND rgsabound; rgsabound.cElements = dwElements; rgsabound.lLbound = nLBound; Create(vtSrc, 1, &rgsabound); // Copy over the data if neccessary if (pvSrcData != NULL) { void *pvDestData; AccessData(&pvDestData); memcpy(pvDestData, pvSrcData, GetElemSize() * dwElements); UnaccessData(); } }
void Installation::ChangeOwner(sint32 toOwner) { AccessData()->ChangeOwner(toOwner); }
void Installation::UseAirfield() { AccessData()->UseAirfield(); }