C++, Outlook and _FormRegionStartup.GetFormRegionStorage

J

Jeff Moll

Hi There!

I'm writing a add-in for Outlook, in unmanaged C++ ( crazy I know ) and am
trying to return a form region from my resources. For GetFormRegionStorage
the doc’s say:

Return Value:
“A Variant object representing the storage that Outlook has allocated for
the form region. The type of the return value can be: String representing
that the return value is a local path to an Outlook Form Storage (.OFS) file;
Byte() representing that the return value is an array of bytes that contains
the contents of the .OFS file; IStorage representing that the return value is
a COM storage object IStorage (for C++ only); Nothing or Null, representing
that Outlook could not allocate storage for this form region and will not
load the form region.â€

What exactly is a “Byte()†in COM terms? I’ve assumed a COM SafeArray but I
can’t seem to get this working.

If I can’t make a “Byte()†work, how does Outlook use the IStorage
interface? Does it try to open the .ofs file as a named stream within it?

Thank for your help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top