hello.

I am making an ActiveX control in MFC that is supposed to work with Visual Basic.

I want to make a function in the control that will return a binary string of non-constant size (unsigned char*)

Let's just make the example easy...
In the control there is a function called:
GetFileData(LPCSTR FileName)

how would i return the innards of the file to the user correctly? and this is a binary file, not a text file.

thanks in advance