Visual Basic 2005 Query

Status
Not open for further replies.

saurabh.sauron

Ambassador of Buzz
I have made a program in Visual Basic 2005. I have used the VLC Media Player ActiveX Control to play media from my form. As my program is essentially a media player, I want to make my program run on computers that dont have VLC Player installed. Is that possible? If yes how?
pls help
thnx

PS: Is there any link regarding resources on using Windows Media Player in Visual Basic. I have embedded a control but still dont know how to use it.
thnx
 

RCuber

The Mighty Unkel!!!
Staff member
saurabh.sauron said:
I have made a program in Visual Basic 2005. I have used the VLC Media Player ActiveX Control to play media from my form. As my program is essentially a media player, I want to make my program run on computers that dont have VLC Player installed. Is that possible? If yes how?
pls help
thnx

you have to register axvlc.dll and libvlc.dll through a setup project. This will be cone automatically when you create a setup for your project.

PS: Is there any link regarding resources on using Windows Media Player in Visual Basic. I have embedded a control but still dont know how to use it.
thnx


For playing a media file you have to use the URL property. Just assign a file to the WMP component like
Code:
AxWindowsMediaPlayer1.URL = "C:\test.avi"
 
OP
saurabh.sauron

saurabh.sauron

Ambassador of Buzz
how do i create an installer for my application? I have VB 2005 Express, and I dont think it allows creation of Setup and Deployment apps.
 

The_Devil_Himself

die blizzard die! D3?
Dude its working perfectly.Congrats.
BUGS:
1.full screen mode is not working while playing audio files.
2.problems playing video files(I tried .mpg)
 

mehulved

18 Till I Die............
How will it work without VLC? Aren't you calling dll's from VLC? And what about codecs and stuff?
 

RCuber

The Mighty Unkel!!!
Staff member
I see that dll's you have in that project are just wrappers. You need to add a new setup project to the solution. And then make it register through the properties. Once the setup is created you have to run this setup for the DLL's to get registered. Remember when working with COM you need to register the COM components through setup or using "Regsvr32" in a command prompt to register the component.
 

RCuber

The Mighty Unkel!!!
Staff member
I havent used other setup applications so cannot tell/check if they support registering COM. If you are just expreimenting then just use "regsvr32" to register the components and then run your application.
 

[Mayank]

Right off the assembly line
you can use inno setup. Its a freeware and it does support registering COm while installation. Find it here *www.jrsoftware.org/isinfo.php
 
Status
Not open for further replies.
Top Bottom