Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 15-09-2007, 08:33 PM   #1 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default 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
saurabh.sauron is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 15-09-2007, 09:24 PM   #2 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
Default 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"
Charan is online now  
Old 16-09-2007, 05:44 PM   #3 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default 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.
saurabh.sauron is offline  
Old 16-09-2007, 05:51 PM   #4 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default 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
Gigacore is offline  
Old 16-09-2007, 05:57 PM   #5 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Visual Basic 2005 Query

Use installshield express or install creator..
Pathik is offline  
Old 16-09-2007, 06:08 PM   #6 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default 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?
saurabh.sauron is offline  
Old 16-09-2007, 06:13 PM   #7 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default 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
Gigacore is offline  
Old 16-09-2007, 06:21 PM   #8 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

i have attached my program
Attached Files
File Type: zip Release.zip (28.7 KB, 15 views)
saurabh.sauron is offline  
Old 16-09-2007, 06:28 PM   #9 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
Default 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.
The_Devil_Himself is offline  
Old 16-09-2007, 06:33 PM   #10 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

without vlc installed?
saurabh.sauron is offline  
Old 16-09-2007, 06:34 PM   #11 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
Default Re: Visual Basic 2005 Query

I have vlc installed.
__________________
Stealing your women and horses since 1843.
The_Devil_Himself is offline  
Old 16-09-2007, 06:35 PM   #12 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

that is the problem. i want it to work on computers that dont have VLC installed.
saurabh.sauron is offline  
Old 16-09-2007, 06:38 PM   #13 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default 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
Gigacore is offline  
Old 16-09-2007, 08:59 PM   #14 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default 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
mehulved is offline  
Old 16-09-2007, 10:31 PM   #15 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Visual Basic 2005 Query

Yeah, unless you bundle whatever you use along, how would it play?
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 17-09-2007, 01:19 AM   #16 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
Default 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.
Charan is online now  
Old 17-09-2007, 02:51 PM   #17 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

I am using VB2005 Express. What do i do...it doesnt support setup appls. pls help.
saurabh.sauron is offline  
Old 17-09-2007, 03:07 PM   #18 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
Default 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.
Charan is online now  
Old 18-09-2007, 08:57 AM   #19 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

i tried with third party software but it didnt work. i guess i have to try something else.
saurabh.sauron is offline  
Old 18-09-2007, 09:35 AM   #20 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2007
Posts: 6
Default 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
[Mayank] is offline  
Old 18-09-2007, 12:21 PM   #21 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

how do i add the scripting for the registration of COM components in Inno?
saurabh.sauron is offline  
Old 18-09-2007, 01:13 PM   #22 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2007
Posts: 6
Default 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
[Mayank] is offline  
Old 18-09-2007, 02:50 PM   #23 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

I dont have the VLC OCX file. Which control do I register now?
saurabh.sauron is offline  
Old 18-09-2007, 06:16 PM   #24 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
Default Re: Visual Basic 2005 Query

^^^ VLC doesnot have a OCX file, it has the DLL file.
Charan is online now  
Old 18-09-2007, 07:54 PM   #25 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Visual Basic 2005 Query

so which files do i register during the installation? i cant seem to register libvlc.dll
saurabh.sauron is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Download Visual Basic 2005 express edition????? anmol004 Software Q&A 15 07-06-2007 01:55 AM
Visual Basic help! romeo_8693 QnA (read only) 18 17-02-2007 07:55 PM
Free MS SQL 2005 and Visual Studio 2005 from M$ rakeshishere Technology News 2 24-09-2006 03:24 PM
Visual Basic Query godsownman QnA (read only) 5 30-03-2006 04:10 PM

 
Latest Threads
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2