Home All Groups Group Topic Archive Search About

Embedding a device in an application?

Author
12 Sep 2006 11:14 AM
Anil Gupte
I followed a tutorial to learn about controlling video files (my area of
interest) using VB.  The primary command for this is the mciSendString
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mcisendstring.asp).

Everything is working great except for one important feature.  The
mciSendString opens video in a new window independent of my application.  Is
there any way to embed it into the app?  Ideally I would like to embed
multiple video windows in some kind of MDI.  I went through my books and
they only talk about embedding controls, whereas (as I understand it) the
mciSendString is opening a device.

Please remember I am a newbie at programming, but familiar enough with VB
from VB 6 (and I am now using VB.NET 2003).

Thanx in advance,

Author
12 Sep 2006 11:25 AM
wingphil
I've never tried it but how about
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_window.asp

You could have a panel in a winforms application and pass the hwnd of
the panel to the device using this command.

Phil

Anil Gupte wrote:
Show quoteHide quote
> I followed a tutorial to learn about controlling video files (my area of
> interest) using VB.  The primary command for this is the mciSendString
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mcisendstring.asp).
>
> Everything is working great except for one important feature.  The
> mciSendString opens video in a new window independent of my application.  Is
> there any way to embed it into the app?  Ideally I would like to embed
> multiple video windows in some kind of MDI.  I went through my books and
> they only talk about embedding controls, whereas (as I understand it) the
> mciSendString is opening a device.
>
> Please remember I am a newbie at programming, but familiar enough with VB
> from VB 6 (and I am now using VB.NET 2003).
>
> Thanx in advance,
> --
> Anil Gupte
> www.keeninc.net
> www.icinema.com
Author
14 Sep 2006 2:38 AM
Anil Gupte
Thanx, I tried that but I could not get it to work.  Anyway, I found a
different way of doing it, using the Handle of the window in the open
command of mcisendstring.  So, closee to what you suggested.  Thanx again.

--
Anil Gupte
www.keeninc.net
www.icinema.com

<wingp***@yahoo.com> wrote in message
Show quoteHide quote
news:1158060323.488876.26910@b28g2000cwb.googlegroups.com...
> I've never tried it but how about
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_window.asp
>
> You could have a panel in a winforms application and pass the hwnd of
> the panel to the device using this command.
>
> Phil
>
> Anil Gupte wrote:
>> I followed a tutorial to learn about controlling video files (my area of
>> interest) using VB.  The primary command for this is the mciSendString
>> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mcisendstring.asp).
>>
>> Everything is working great except for one important feature.  The
>> mciSendString opens video in a new window independent of my application.
>> Is
>> there any way to embed it into the app?  Ideally I would like to embed
>> multiple video windows in some kind of MDI.  I went through my books and
>> they only talk about embedding controls, whereas (as I understand it) the
>> mciSendString is opening a device.
>>
>> Please remember I am a newbie at programming, but familiar enough with VB
>> from VB 6 (and I am now using VB.NET 2003).
>>
>> Thanx in advance,
>> --
>> Anil Gupte
>> www.keeninc.net
>> www.icinema.com
>