ListDirData event in C++ - WeOnlyDo Discussion board

ListDirData event in C++ (General questions)

by cedral, Thursday, January 21, 2010, 00:08 (5419 days ago)

I am working in C++ and I need to modify the listing. In the list dir event I tried to do what the help file said but the type for the SAFEARRAY* is coming back as VT_RECORD not BYTE (unsigned char). I have...

CComSafeArray<BYTE> arrayDirData;
arrayDirData.Attach(DirData);

the attach fails because the DirData is type VT_RECORD not VT_UI1 (unsigned char).

Please can someone provide an example of how to modify the DirData SAFEARRAY in C++?


Complete thread: