15-09-2007, 08:33 PM
|
#1 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Visual Basic 2005 Query
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
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
15-09-2007, 09:24 PM
|
#2 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
|
Re: Visual Basic 2005 Query
Quote:
|
Originally Posted by saurabh.sauron
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.
Quote:
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"
|
|
|
16-09-2007, 05:44 PM
|
#3 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
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.
|
|
|
16-09-2007, 05:51 PM
|
#4 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Visual Basic 2005 Query
use NSIS installer its free.
there are still many other. but not easy as this does
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
16-09-2007, 05:57 PM
|
#5 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: Visual Basic 2005 Query
Use installshield express or install creator..
|
|
|
16-09-2007, 06:08 PM
|
#6 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
I managed to create an installer, but when i uninstall VLC, the application doesnt run. how do i do that?
|
|
|
16-09-2007, 06:13 PM
|
#7 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Visual Basic 2005 Query
upload ur app and give the link here... let others see if its working or not
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
16-09-2007, 06:21 PM
|
#8 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
i have attached my program
|
|
|
16-09-2007, 06:28 PM
|
#9 (permalink)
|
|
die blizzard die! D3?
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
|
Re: Visual Basic 2005 Query
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)
__________________
Stealing your women and horses since 1843.
|
|
|
16-09-2007, 06:33 PM
|
#10 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
without vlc installed?
|
|
|
16-09-2007, 06:34 PM
|
#11 (permalink)
|
|
die blizzard die! D3?
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
|
Re: Visual Basic 2005 Query
I have vlc installed.
__________________
Stealing your women and horses since 1843.
|
|
|
16-09-2007, 06:35 PM
|
#12 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
that is the problem. i want it to work on computers that dont have VLC installed.
|
|
|
16-09-2007, 06:38 PM
|
#13 (permalink)
|
|
Dreamweaver
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
|
Re: Visual Basic 2005 Query
@ Devil... see if it works after u uninstalled VLC...
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore
Follow me on twitter.com/gigacore
|
|
|
16-09-2007, 08:59 PM
|
#14 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: Visual Basic 2005 Query
How will it work without VLC? Aren't you calling dll's from VLC? And what about codecs and stuff?
__________________
http://www.bash.org/?258908
|
|
|
16-09-2007, 10:31 PM
|
#15 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Visual Basic 2005 Query
Yeah, unless you bundle whatever you use along, how would it play?
__________________
Harsh J
www.harshj.com
|
|
|
17-09-2007, 01:19 AM
|
#16 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
|
Re: Visual Basic 2005 Query
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.
|
|
|
17-09-2007, 02:51 PM
|
#17 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
I am using VB2005 Express. What do i do...it doesnt support setup appls. pls help.
|
|
|
17-09-2007, 03:07 PM
|
#18 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
|
Re: Visual Basic 2005 Query
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.
|
|
|
18-09-2007, 08:57 AM
|
#19 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
i tried with third party software but it didnt work. i guess i have to try something else.
|
|
|
18-09-2007, 09:35 AM
|
#20 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2007
Posts: 6
|
Re: Visual Basic 2005 Query
you can use inno setup. Its a freeware and it does support registering COm while installation. Find it here http://www.jrsoftware.org/isinfo.php
|
|
|
18-09-2007, 12:21 PM
|
#21 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
how do i add the scripting for the registration of COM components in Inno?
|
|
|
18-09-2007, 01:13 PM
|
#22 (permalink)
|
|
Right Off the Assembly Line
Join Date: Sep 2007
Posts: 6
|
Re: Visual Basic 2005 Query
ok here is an example
[Files]
Source: "C:\Documents and Settings\Administrator\Desktop\ vb tech\vbfiles\MSWINSCK.OCX"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
This will register the ocx while installation. You can play around with the flags at the end if you want. For more info refer to its documentation
|
|
|
18-09-2007, 02:50 PM
|
#23 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
I dont have the VLC OCX file. Which control do I register now?
|
|
|
18-09-2007, 06:16 PM
|
#24 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
|
Re: Visual Basic 2005 Query
^^^ VLC doesnot have a OCX file, it has the DLL file.
|
|
|
18-09-2007, 07:54 PM
|
#25 (permalink)
|
|
Alpha Geek
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
|
Re: Visual Basic 2005 Query
so which files do i register during the installation? i cant seem to register libvlc.dll
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|