Results 1 to 7 of 7

Thread: How VB6 can open a DVD to view files?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,295

    How VB6 can open a DVD to view files?

    Hi there folks! I am finishing up this DVD launcher app to give to teachers. The launcher gives them choices such as copying all files, copying specific, and just opening the DVD to view the files. I have only found threads on how to watch DVD movies with vb6, but I just want to open a window where the user can see all of the files on the DVD. Would anyone have any experience in that?

    Thanks!

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How VB6 can open a DVD to view files?

    you can shell out to windows explorer, or open a commondialog, or make your own form with listview, treeview or other suitable controls
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How VB6 can open a DVD to view files?

    If you want a VB6 program to run properly from slow/read-only/removable media there are a few things you need to do.

    First you need to use reg-free COM packaging to create isolated assemblies from the libraries to avoid the hazards of registering non-installed libraries. Second you need to "relink" all of the PE files to run from swapspace, see: /SWAPRUN (Load Linker Output to Swap File) for details.

    Failure to do this can result in performance problems, crashes, and breaking other applications.

  4. #4
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: How VB6 can open a DVD to view files?

    why cant you simply use the common dialogue parts like drive and dir and filelist and set the path property as you would with any other drive ?

    here to ponder

  5. #5
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How VB6 can open a DVD to view files?

    You can. Put the DVD in the CD/DVD device and open it using CommonDialog. It's no different than any other drive with folders


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  6. #6
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: How VB6 can open a DVD to view files?

    Quote Originally Posted by jmsrickland View Post
    You can. Put the DVD in the CD/DVD device and open it using CommonDialog. It's no different than any other drive with folders
    so whats the problem?

  7. #7
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How VB6 can open a DVD to view files?

    As far as I'm concerned, nothing. Why do yo ask


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width