Page 4 of 4

Posted: Wed Jul 09, 2008 6:01 pm
by tmillhouse@gmail.com
I see that is is of type HRESULT. I'm using this code:

hresult = FPCCallFunctionBSTR(hwndFlashPlayerControl, bstrRequest, &bstrResponse);

sprintf(buf,"Error Code: %x", hresult);
OutputDebugString(buf);


And it is printing out all question marks (?????›????);

Posted: Wed Jul 09, 2008 6:09 pm
by tmillhouse@gmail.com
ok, using tchar and wsprintf, I was able to find the error code is [780] Error Code = 80004005

I'll start looking into this now.

update:

Just my luck. After looking up the code on MSDN, the error code is E_FAIL Unspecified failure. Have you seen this before?

Thanks,
Tim

Posted: Wed Jul 09, 2008 6:42 pm
by Softanics
Are you sure that you load the same movie as used in the demo sample?...

Posted: Wed Jul 09, 2008 6:49 pm
by tmillhouse@gmail.com
Yes, I uploaded externalinterface.swf to one of my servers, and I'm loading it from that location. I'm not just experiencing the problem with the externalinterface.swf, but also with my swf. For instance, in my SWF, upon initialization I make a call to my AIR application which is already running. The AIR file will pop up a window when it has been invoked. This worked, but I was unable to call any methods that were made available via ExternalInterface API.

I can send you my code. If you could take a quick look at it, I would greatly appreciate it; if you dont have time, no worries. You've already been such a great help to me.

I will send it to the email you mentioned earlier in this post. The basic concept of the DLL is to hook into wininet's functions as to intercept traffic from IE. When I intercept the URL, I want to pass it to my embedded swf file that will send it to my AIR appliaction for processing. The only piece that is left is the external interface calls.

I very much appreciate your help.

Thanks,
Tim

Posted: Wed Jul 09, 2008 7:06 pm
by Softanics
I've just answered, please check mailbox.

Thank you.