Re: COM replacement for BYTE* type?
- From: "John Phillips" <jjphillipsREMOVE@xxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Jul 2005 11:23:31 -0400
How about a SafeArray of VT_I1?
John
"Petar Popara" <my.fake@xxxxxxxx> wrote in message
news:uqArI04gFHA.576@xxxxxxxxxxxxxxxxxxxxxxx
>
> I need to return array of bytes (BYTE*) from COM function. Which type is
> the best to use?
>
> I was thinking of two options:
>
> 1. Write my own COM class that would contain BYTE* member and provide
> getByte(long byteNumber) method for accessing array bytes and getLength()
> method.
> 2. Use BSTR and CString:
>
> BYTE * b = ...
> int bLen = ...
>
> return CString(b, bLen).AllocSysString();
>
.
- Follow-Ups:
- Re: COM replacement for BYTE* type?
- From: Petar Popara
- Re: COM replacement for BYTE* type?
- References:
- COM replacement for BYTE* type?
- From: Petar Popara
- COM replacement for BYTE* type?
- Prev by Date: Using IDropTarget in an explorer browser bar causes Javascript ondragenter to fail
- Next by Date: Re: IDL COM properties
- Previous by thread: COM replacement for BYTE* type?
- Next by thread: Re: COM replacement for BYTE* type?
- Index(es):
Relevant Pages
|