I make a ActiveX control by "MFC ActiveX ControlWizard",now I want to transfer large numbers of binary data from ActiveX control to the caller.I do it like this:
ActiveX control source code:
BOOL CPctCtrl::MyTest(BSTR FAR* szOutBuffer, long nBufferLength)
if(szOutBuffer == NULL)
I use Visual basic 6.0 to call this ActiveX control like this:
dim szOutBuffer(1024) as string
when run the line "MyObject1.MyTest szOutBuffer(1),1024
" , the program will crashed with "invalid memroy address accessed!"
Cound help me to solve this problem?
Thanks in advance.