Avi's in dot net

Posts   
 
    
wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 15-Jun-2004 13:10:23   

This is totally of topic and has nothing to do with LLBLGen but i suppose it fits in under general chat.

How the hell do i display an avi in a windows .net app?!!! rage

I am assuming that there is no native .net control and that i need to use some type of Com lib.

Edit - What control do i use? If i have to use a Com Lib i would like it to be native to windows.

netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 15-Jun-2004 13:37:56   

You could use the Microsoft Multimedia COM control.

or windows media player: http://www.informit.com/articles/article.asp?p=101752

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 15-Jun-2004 13:56:27   

Hi netclectic

I only want to show the actual avi - not the players controls. Like an avi playing while the app is doing a progress.

Does this mean that users of the app is going require Media Player 9? if i go with media player?

Microsoft Multimedia COM control - Any idea what the dll is called? or what it is called when going Tool | Add \Remove toolbox options | Com Components?

Thankssimple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 15-Jun-2004 14:21:03   

Checking in VB6, I think you need the animation control in mscomctl2.ocx. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 15-Jun-2004 14:31:48   

wayne wrote:

Any idea what the dll is called? or what it is called when going Tool | Add \Remove toolbox options | Com Components?

Microsoft Multimedia Control

it's in MSI32.ocx

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 15-Jun-2004 15:44:34   

Thanks Guys.

I went with the mscomctl2.ocx - could not find MSI32.ocx on my PC.

Okay mscomctl2.ocx gives me an AxMSComCtl2.AxAnimation.

This control has alot of properties and methods but none seem to be a file name - am i missing something? Any idea how it works? Maybe some doc's or examples?

ps - Coming from a Delphi background - so never had to play around with ocx's much. Last time that i played with ocx's was with VB5 - and that was just to take a peek at the new improved VB.

netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 15-Jun-2004 15:58:56   

wayne wrote:

I went with the mscomctl2.ocx - could not find MSI32.ocx on my PC.

Oops! My bad, that should have been MCI32.ocx flushed

wayne wrote:

ps - Coming from a Delphi background - so never had to play around with ocx's much. Last time that i played with ocx's was with VB5 - and that was just to take a peek at the new improved VB.

Aren't you the lucky one, i'm also from a delphi background but recently had the nightmare scenario of finding myself with a VB6 contract frowning

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 15-Jun-2004 16:07:16   

Sorry, no MCI32.ocx on my PC either....confused Maybe that ocx comes with VB6?

had the nightmare scenario of finding myself with a VB6 contract

Don't know VB6 at all - So i don't know if it is good or bad. But i do like VB.Net.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 15-Jun-2004 16:08:52   

Wayne, the ocx file is just a way to store an ActiveX control (COM control). simple_smile I never used the animation control, however it has to be somewhere in the common controls. Perhaps a google groups search for VB6, avi play will give you correct results for which control to use, which you can then import in .NET simple_smile

Frans Bouma | Lead developer LLBLGen Pro
netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 15-Jun-2004 16:13:12   

wayne wrote:

Maybe that ocx comes with VB6?

not on this pc. even on my home pc (where i was doing the vb6 work) i made sure to install visual studio 6 in a VM to avoid polluting my nice clean vbfree environment simple_smile

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 15-Jun-2004 16:15:03   

however it has to be somewhere in the common controls.

I found it 4 posts agowink - me have to go and google now to find how to use it.simple_smile

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 15-Jun-2004 16:40:18   

Ok!! Found it! simple_smile simple_smile simple_smile

duh! its so easy!!!

    AxAnimation1.Open("c:\clock.avi")
    AxAnimation1.Play(1, 0)

Thanks alot guys....

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 25-Jun-2004 11:12:02   

Playing with AVI's again today...

This app works fine on WinXP but on Win 2003 Server Ent it complains about mscomctl2.dll

Do i have to register this dll 'mscomctl2.dll' somehow? Is it not good enough that the dll is in the applications bin dir?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 25-Jun-2004 12:15:48   

wayne wrote:

Playing with AVI's again today...

This app works fine on WinXP but on Win 2003 Server Ent it complains about mscomctl2.dll

Do i have to register this dll 'mscomctl2.dll' somehow? Is it not good enough that the dll is in the applications bin dir?

It's a com dll, so you have to use regsvr32 dllname to register it. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 25-Jun-2004 12:22:03   

Thanks Ot'swink

Will the installer call the reg prog for me? Or do i have to make the reg entries in the installer?