Embed Flash Player into form

C

CoolCow

Hello,

I need to make an application that uses Flash as animated GUI.
Now since the GUI displays alot of phone information (battery level,
memory usage, ...), Flash needs to communicate with .net for that.
I've done the same on windows without a problem. But with the compact
framework i see it isn't that easy.

Ive found this on msdn regarding activeX objects in CF.NET 2.0
http://msdn2.microsoft.com/en-us/library/aa446515.aspx

There's a sample provided, but it dousn't work.
Anyone who can help me to make this work?

thnx in advance
 
R

Ron Weiner

OK another method then.

I used the OpenNetCF WebBrowser control on a form that loaded a html Web
page from disk that had a flash SWF file embedded. While I grant you this
is not the "Ideal" solution, it does have the advantage that it actually
worked, and took less then and hour to get going.

Ron W
 
C

CoolCow

Actually i already tried that approch, and yes it works.
The only down side is that you can't interact between VB and Flash.
The browser is between them and as far i've found there's no way of
doing this.

Now i've been digging the source code some more and i've found a real
error (funny as it sounds :p).

The error i'm getting is this:
COM interface with IID '{D27CDB6C-AE6D-11CF-96B8-444553540000}' cannot
be created due to the following error: No such interface supported .

So if i'm correct the flash dll isn't registred properly or the CLSID
is wrong.
Since the player works in a browser window it would be a wrom CLSID
i'm using.

For now i've found the meaning of the CLSID. It's some kind of
reference to the actual ActiveX object that's represented by this
unique ID?
Now the question is, how do i find the correct CLSID?
 
C

CoolCow

Hmmm looks like the CLSID is correct, found it in the PPC registry
under HKCR\CLSID\

The what dous the error mean?
 
C

CoolCow

Yet another step closer now.
I've managed to get it running. But now i get a wierd error that the
debugger can't seem to catch.

Error:
A native exception has occured in ControlHostingSample.exe.

Details:
ExceptionCode: 0xc00000005
ExceptionAddress: 0x019bb814
Writing: 0x0000c800

A help on this one? :S
 
C

CoolCow

And another thing:
The classes (unmodified) do work on Pocket PC 2003 SE.
Even better, they do all the things i need.

Anyone got tips on how to find the difference between PPC 2003 and
WM6?
It's probably the ActiveX control itself, they are different for each
device...
 
G

Guest

Any luck CoolCow?

I am also looking to embed Flash Lite to use for UI in my application so
that I can interact (not browser hosting). I have the same issue where I
cannot run the sample Alex had written about the topic.

Have you gotten it to work? I think many people are looking for this to be
working. Would like to post the solution here if we find one.

Thanks and take care.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top