Page 1 of 1

FPCSetReturnValue

Posted: Thu Feb 01, 2007 4:47 am
by redmoon
when i get a call from flash to MFC,
MFC get a message of FPCN_FLASHCALL.
and use FPCSetRetrunValue() to return values..
but FPCSetRetrunValue() function seem to return only BSTR.
is there any other function or way to return other type of value like array, byte .. ?

Re: FPCSetReturnValue

Posted: Thu Feb 01, 2007 10:29 am
by Softanics
Thank you for your question.

redmoon wrote:when i get a call from flash to MFC,
MFC get a message of FPCN_FLASHCALL.
and use FPCSetRetrunValue() to return values..
but FPCSetRetrunValue() function seem to return only BSTR.
is there any other function or way to return other type of value like array, byte .. ?


You can return complex data as written here:
http://www.mail-archive.com/osflash@osf ... 01355.html

I can send an array of strings back, by calling SetReturnValue with the
following string as the parameter:

"<array><property id='0'><string>test.dll<string></property><property
id='1'><string>hello.dll</string></property></array>"