Hi,

I am writing a COM component using ATL in VC++ to transfer a
image buffer. I have the image in a char* buffer in the vc++ component.

The client code which has to read this buffer is to be written in VB.

My question is , how should I be passing this image char * buffer
out of my vc++ function. Currently the method signature looks like this :

[id(20), helpstring("method GenerateImage")] HRESULT GenerateImage([out] char* pImageBuffer, [out] SHORT* pImageSize, [out,retval] IMAGE_STATUS* status);

Is this correct ? If so, how will the VB client access this method ?

Thanks a lot for your time,

Kevin