External Interface

DLL Edition of the F-IN-BOX
mswiczar
Posts: 3
Joined: Wed Apr 19, 2006 5:08 pm

External Interface

Postby mswiczar » Wed Apr 19, 2006 5:24 pm

Hi, this is the question.
Im using the flashcontrol inside internet explorer program.
In a toolband.


and when i call
FPCCallFunction
the return code is E_FAIL
so does not work.
:(

any ideas?

more data.

I use your externalfunctionswf. provied by you in the dll example.
when i use your code, inside your project its work, but in my project does not.



This is the code

RegisterFlashWindowClass();

m_hwndFlashPlayerControl=
::CreateWindow(
WC_FLASH,
NULL,
WS_CHILD | WS_VISIBLE,
0,
0,
rect.right,
rect.bottom,
pParentWnd->m_hWnd,
NULL,
NULL,
NULL
);


SFPCPutMovie FPCPutMovie;
FPCPutMovie.lpszBuffer = "c:\\;
::SendMessage(m_hwndFlashPlayerControl, FPCM_PUT_MOVIE, 0, (LPARAM)&FPCPutMovie);


HRESULT hres;
TCHAR szResponse[1024] = { 0 };
DWORD dwLength = sizeof(szResponse) / sizeof(szResponse[0]) - 1;
hres = FPCCallFunction(this->m_hwndFlashPlayerControl,
_T("<invoke name=\"CallMeFromApplication\" returntype=\"xml\"><arguments><string>1</string></arguments></invoke>"),
szResponse,
&dwLength);

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

Postby Softanics » Wed Apr 19, 2006 5:34 pm

Thank you for your question.
I suppose this problem and http://www.flashplayercontrol.com/forum ... .php?t=139 are related. I'm sorry, currently we haven't solution for this.
If it's possible, could you send me your code to support (at) flashplayercontrol.com? It helps to fix the problem.
Thank you in advance.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

mswiczar
Posts: 3
Joined: Wed Apr 19, 2006 5:08 pm

Postby mswiczar » Wed Apr 19, 2006 7:18 pm

:shock:

Why you say that is the same issue?
I dont see the correlation
Thaksn in advace again

s3s!oW

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

Postby Softanics » Wed Apr 19, 2006 7:46 pm

mswiczar wrote:Why you say that is the same issue?


I'm not sure.
If you can send me sources, it would be great.
Best regards, Artem A. Razin,

F-IN-BOX support

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

mswiczar
Posts: 3
Joined: Wed Apr 19, 2006 5:08 pm

could be this?

Postby mswiczar » Wed Apr 19, 2006 9:54 pm

this
http://livedocs.macromedia.com/flash/8/ ... 02200.html

..."
The following info may help you. From the addCallBack() docs: A return value of false may also mean that the containing environment belongs to a security sandbox to which the calling code does not have access. You can work around this problem by setting an appropriate value for the allowScriptAccess OBJECT tag or EMBED tag in the HTML of the containing environment.

Also, from the fscommand() docs:
When allowScriptAccess is set to "never", a SWF file cannot access web page scripts. With Flash Player 7 and later, when allowScriptAccess is set to "always", a SWF file can always access web page scripts. When allowScriptAccess is set to "sameDomain", scripting is allowed only from SWF files that are in the same domain as the web page; scripting is always allowed with previous versions of Flash Player. If allowScriptAccess is not specified in an HTML page, the attribute is set by default to "sameDomain" for SWF files of version 8 and later, and to "always" for SWF files of version 7 and earlier.

"...


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 21 guests