/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <windows.h>
#include <oleauto.h>

/*
 * link with oleaut32
 */
int main()
{
   int i;
   BSTR s;
   s = SysAllocString(L"ABC");
   printf("%d\n",sizeof(s[0]));
   for(i=0;i<4;i++)
   {
      printf(" %d",s[i]);
   }
   printf("\n");
   return 0;
}
