loading .swf into dll

DLL Edition of the F-IN-BOX
tmillhouse@gmail.com
Posts: 29
Joined: Wed Jul 02, 2008 5:54 pm

Postby tmillhouse@gmail.com » Wed Jul 09, 2008 6:01 pm

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 (?????›????);

tmillhouse@gmail.com
Posts: 29
Joined: Wed Jul 02, 2008 5:54 pm

Postby tmillhouse@gmail.com » Wed Jul 09, 2008 6:09 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Jul 09, 2008 6:42 pm

Are you sure that you load the same movie as used in the demo sample?...
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

tmillhouse@gmail.com
Posts: 29
Joined: Wed Jul 02, 2008 5:54 pm

Postby tmillhouse@gmail.com » Wed Jul 09, 2008 6:49 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Jul 09, 2008 7:06 pm

I've just answered, please check mailbox.

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron