Hi,

I saw Mr.Alex Feinman's webcast regarding "COM and DOT Interop in CF2"
at http://blog.opennetcf.org/afeinman/PermaLink,guid,1dfc3c39-d3cc-4faa-b5f6-cb5c9aed61dd.aspx

I have a question regarding the section on hosting activex controls in
CF2.0. I tried out what he had suggested and I was able to
successfully host a Flash player activex control for PPC inside a
CF2.0 C# application. But I am running into one problem.


I am building a projector application for a Windows CE 5.0 device. So
my requirement is that I need to embed the flash movie inside my
application. I tired to set the EmbedMovie property in the designer
and also specify the path of the flash file (I gave the path on the
development PC where the actual swf file is stored, assuming it is
going to embed it in the application during design time) for the Movie
property. But this does not embed the movie inside the application.



Is there something I am missing or is this not possible when we host
an activex control in CF2.0 by the method he had suggested?

Any help is greatly appreciated.

Thanks,
Jothishankar

Re: Regarding hosting Flash ActiveX control in CF2.0 by Peter

Peter
Thu Sep 13 05:38:46 PDT 2007

Another approach which may work for you is to use the WebBrowser control and
create a local page with an embedded flash object.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Jothishankar" <shankarvj@gmail.com> wrote in message
news:1189621935.921417.68120@50g2000hsm.googlegroups.com...
> Hi,
>
> I saw Mr.Alex Feinman's webcast regarding "COM and DOT Interop in CF2"
> at
> http://blog.opennetcf.org/afeinman/PermaLink,guid,1dfc3c39-d3cc-4faa-b5f6-cb5c9aed61dd.aspx
>
> I have a question regarding the section on hosting activex controls in
> CF2.0. I tried out what he had suggested and I was able to
> successfully host a Flash player activex control for PPC inside a
> CF2.0 C# application. But I am running into one problem.
>
>
> I am building a projector application for a Windows CE 5.0 device. So
> my requirement is that I need to embed the flash movie inside my
> application. I tired to set the EmbedMovie property in the designer
> and also specify the path of the flash file (I gave the path on the
> development PC where the actual swf file is stored, assuming it is
> going to embed it in the application during design time) for the Movie
> property. But this does not embed the movie inside the application.
>
>
>
> Is there something I am missing or is this not possible when we host
> an activex control in CF2.0 by the method he had suggested?
>
> Any help is greatly appreciated.
>
> Thanks,
> Jothishankar
>


Re: Regarding hosting Flash ActiveX control in CF2.0 by Jothishankar

Jothishankar
Thu Sep 13 08:04:55 PDT 2007

On Sep 13, 7:38 am, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> Another approach which may work for you is to use the WebBrowser control and
> create a local page with an embedded flash object.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Jothishankar" <shanka...@gmail.com> wrote in message
>
> news:1189621935.921417.68120@50g2000hsm.googlegroups.com...
>
> > Hi,
>
> > I saw Mr.Alex Feinman's webcast regarding "COM and DOT Interop in CF2"
> > at
> >http://blog.opennetcf.org/afeinman/PermaLink,guid,1dfc3c39-d3cc-4faa-...
>
> > I have a question regarding the section on hosting activex controls in
> > CF2.0. I tried out what he had suggested and I was able to
> > successfully host a Flash player activex control for PPC inside a
> > CF2.0 C# application. But I am running into one problem.
>
> > I am building a projector application for a Windows CE 5.0 device. So
> > my requirement is that I need to embed the flash movie inside my
> > application. I tired to set the EmbedMovie property in the designer
> > and also specify the path of the flash file (I gave the path on the
> > development PC where the actual swf file is stored, assuming it is
> > going to embed it in the application during design time) for the Movie
> > property. But this does not embed the movie inside the application.
>
> > Is there something I am missing or is this not possible when we host
> > an activex control in CF2.0 by the method he had suggested?
>
> > Any help is greatly appreciated.
>
> > Thanks,
> > Jothishankar

Hi Peter,

Thanks for the reply. Will I be able to embed the html page and the
flash file as part of the application itself? I want to create just
one exe file at the end - like a projector for a flash file.

If this is possible, then I can gladly use your approach.

Thank you.


Re: Regarding hosting Flash ActiveX control in CF2.0 by Peter

Peter
Thu Sep 13 09:50:33 PDT 2007

The html file you can store as a resource and load into the WebBrowser by
setting the DocumentText property. The flash file would have to exist in the
file system. You could store it as an embedded resource but you'd need to
write it to a temporary file when you run your application.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Jothishankar" <shankarvj@gmail.com> wrote in message
news:1189695895.152765.212490@50g2000hsm.googlegroups.com...
> On Sep 13, 7:38 am, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> wrote:
>> Another approach which may work for you is to use the WebBrowser control
>> and
>> create a local page with an embedded flash object.
>>
>> Peter
>>
>> --
>> Peter Foot
>> Microsoft Device Application Development
>> MVPwww.peterfoot.net|www.inthehand.com
>> In The Hand Ltd - .NET Solutions for Mobility
>>
>> "Jothishankar" <shanka...@gmail.com> wrote in message
>>
>> news:1189621935.921417.68120@50g2000hsm.googlegroups.com...
>>
>> > Hi,
>>
>> > I saw Mr.Alex Feinman's webcast regarding "COM and DOT Interop in CF2"
>> > at
>> >http://blog.opennetcf.org/afeinman/PermaLink,guid,1dfc3c39-d3cc-4faa-...
>>
>> > I have a question regarding the section on hosting activex controls in
>> > CF2.0. I tried out what he had suggested and I was able to
>> > successfully host a Flash player activex control for PPC inside a
>> > CF2.0 C# application. But I am running into one problem.
>>
>> > I am building a projector application for a Windows CE 5.0 device. So
>> > my requirement is that I need to embed the flash movie inside my
>> > application. I tired to set the EmbedMovie property in the designer
>> > and also specify the path of the flash file (I gave the path on the
>> > development PC where the actual swf file is stored, assuming it is
>> > going to embed it in the application during design time) for the Movie
>> > property. But this does not embed the movie inside the application.
>>
>> > Is there something I am missing or is this not possible when we host
>> > an activex control in CF2.0 by the method he had suggested?
>>
>> > Any help is greatly appreciated.
>>
>> > Thanks,
>> > Jothishankar
>
> Hi Peter,
>
> Thanks for the reply. Will I be able to embed the html page and the
> flash file as part of the application itself? I want to create just
> one exe file at the end - like a projector for a flash file.
>
> If this is possible, then I can gladly use your approach.
>
> Thank you.
>


Re: Regarding hosting Flash ActiveX control in CF2.0 by Jothishankar

Jothishankar
Thu Sep 13 11:19:39 PDT 2007

On Sep 13, 11:50 am, "Peter Foot [MVP]" <feedb...@nospam-
inthehand.com> wrote:
> The html file you can store as a resource and load into the WebBrowser by
> setting the DocumentText property. The flash file would have to exist in the
> file system. You could store it as an embedded resource but you'd need to
> write it to a temporary file when you run your application.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Jothishankar" <shanka...@gmail.com> wrote in message
>
> news:1189695895.152765.212490@50g2000hsm.googlegroups.com...
>
> > On Sep 13, 7:38 am, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> > wrote:
> >> Another approach which may work for you is to use the WebBrowser control
> >> and
> >> create a local page with an embedded flash object.
>
> >> Peter
>
> >> --
> >> Peter Foot
> >> Microsoft Device Application Development
> >> MVPwww.peterfoot.net|www.inthehand.com
> >> In The Hand Ltd - .NET Solutions for Mobility
>
> >> "Jothishankar" <shanka...@gmail.com> wrote in message
>
> >>news:1189621935.921417.68120@50g2000hsm.googlegroups.com...
>
> >> > Hi,
>
> >> > I saw Mr.Alex Feinman's webcast regarding "COM and DOT Interop in CF2"
> >> > at
> >> >http://blog.opennetcf.org/afeinman/PermaLink,guid,1dfc3c39-d3cc-4faa-...
>
> >> > I have a question regarding the section on hosting activex controls in
> >> > CF2.0. I tried out what he had suggested and I was able to
> >> > successfully host a Flash player activex control for PPC inside a
> >> > CF2.0 C# application. But I am running into one problem.
>
> >> > I am building a projector application for a Windows CE 5.0 device. So
> >> > my requirement is that I need to embed the flash movie inside my
> >> > application. I tired to set the EmbedMovie property in the designer
> >> > and also specify the path of the flash file (I gave the path on the
> >> > development PC where the actual swf file is stored, assuming it is
> >> > going to embed it in the application during design time) for the Movie
> >> > property. But this does not embed the movie inside the application.
>
> >> > Is there something I am missing or is this not possible when we host
> >> > an activex control in CF2.0 by the method he had suggested?
>
> >> > Any help is greatly appreciated.
>
> >> > Thanks,
> >> > Jothishankar
>
> > Hi Peter,
>
> > Thanks for the reply. Will I be able to embed the html page and the
> > flash file as part of the application itself? I want to create just
> > one exe file at the end - like a projector for a flash file.
>
> > If this is possible, then I can gladly use your approach.
>
> > Thank you.

The main reason for integrating the flash file as part of the app, was
for security concerns. Since flash files can be decompiled back to the
source code, i did not want the flash file to be part of the file
system. I would like to load it directly from the memory.

I successfully embedded the flash movie in my unmanaged embedded VC++
application. But now, i am converting that app to .net and running in
to this problem.

Is there any other possible solution for this problem?

Thanks