Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

SafeArray.h File Reference

SAFEARRAY wrapper class. More...

#include <oaidl.h>
#include <OW32/OW32Libs.h>

Go to the source code of this file.

Namespaces

namespace  OW32

Classes

class  OW32::CSafeArray
 SAFEARRAY wrapper class. More...

Defines

#define DECLARE_ACCESSOR(T)
 Declare an accessor for the given data type.


Detailed Description

SAFEARRAY wrapper class.


Define Documentation

#define DECLARE_ACCESSOR  ) 
 

Value:

T* Access##T() \
    { \
        T* pData; \
        HRESULT hr; \
        if (FAILED(hr = AccessData(&pData))) \
        { \
            ::SetLastError(hr); \
            return (T *)0; \
        } \
        return (T *)pData; \
    }
Declare an accessor for the given data type.

Parameters:
T the type to declare the accessor for


Generated on Sun Jun 5 01:29:19 2005 for OW32 by  doxygen 1.3.9.1