473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Embedding a device in an application?

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/de...endstring.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
Sep 12 '06 #1
2 995
I've never tried it but how about
http://msdn.microsoft.com/library/de...n32_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/de...endstring.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
Sep 12 '06 #2
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

<wi******@yahoo.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I've never tried it but how about
http://msdn.microsoft.com/library/de...n32_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/de...endstring.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

Sep 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
1
by: Martin | last post by:
Greetings, I am new to python and wish to embed python in an 3D graphics application to provide application automation. The high level goal is to be able to drive my app from a script for batch...
2
by: Roose | last post by:
With some googling I have found these resources: http://docs.python.org/ext/win-dlls.html http://www.python.org/doc/faq/windows.html I have a large Win32/MFC/C/C++ application that has an...
3
by: marcus | last post by:
Hi All, I'm new to xml world and i was looking for a way to embed the xml schema info in the xml document itself. i tried the following: --- xml schema + document combined --- <?xml...
1
by: Tommy Nordgren | last post by:
I want to write an application that embeds and extends (at least) the Python and Perl interpreters. Now i want to find as much as possible about the Python tools used for extending and embedding...
1
by: Stefan Arentz | last post by:
Howdy. I'm looking at embedding python in a little embedded system. The device (a linksys wrt54g router, popular hack object since it runs linux), has limited resources. Just 4MB flash and 16MB...
2
by: Sreedharan | last post by:
Hi, I am using C#. Is there no Join method (in thread class)for Smart device application? And Also i noticed that Name property isn't there(got compiler error when trying to use them) Is this...
6
by: Qun Cao | last post by:
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python...
13
by: Thomas Troeger | last post by:
Hi, Sorry I've posted a similar question some weeks ago, but I got no answers. I want to embed a Python application on a device with limited resources, esp. storage limitations. Is there a way...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.