Just below line import ocidl.idl
and above the attributes section (i.e., [object, ...]
) of IReadPhBook
, add the following:
cpp_quote("#define NAME_SIZ 80")
#define NAME_SIZ 80
typedef struct {
TCHAR firstName[NAME_SIZ];
TCHAR lastName[NAME_SIZ];
TCHAR phNumber[NAME_SIZ];
} PhRec;