Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jul : Help convert OleVariant Array using struct information

www.cryer.info
Managed Newsgroup Archive

Help convert OleVariant Array using struct information

Subject:Help convert OleVariant Array using struct information
Posted by:"Darryl Strickland" (dstrickla..@integratedconsole.com)
Date:Mon, 23 Jul 2007 19:22:06

I have a COM function that returns a OleVariant Array.  I need to get the
information including the image but cannot figure out how to convert the
struct.  Any help will be greatly appreciated.


struct image_value {
uint8_t     r1;
uint8_t     s1;
uint8_t     e1;
uint8_t     o1;
uint16_t     rc1;
uint16_t     rr1;
uint16_t     nc1;
uint16_t     nr1;
uint8_t     data[size];   The size  is (nr1 * nc1)
};

Now how would I get an bitmap using the information above and extracting it
from the OleVariant Array??

Thanks
Darryl Strickland

Replies:

www.cryer.info
Managed Newsgroup Archive