Embedding a device in an application?

A

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/d...y/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,
 
A

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

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
 

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