Results 1 to 25 of 25

Thread: Guru Question!

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Unhappy

    Does anybody know how to register a .dll file IN VISUAL BASIC without using the P&D wizard? The reason for asking is that my Application is only 120K and the P&D Wizard swells it to over 1.7 MB.

    Thanks in Advance!

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Hmmm, you can register it...

    ...but still have to ship it

    Which will still make your app a lot bigger than just the exe (even more than with the P&D Wizard because it compresses the files)

    anyway, you can register it via VB like:
    Code:
    Shell "c:\windows\regsvr32.exe MYDLLFILE.DLL"
    if you want to be sure of the exact directory get the windows dir via the api.

    But I think you'll get dissapointed with the answer because it's not about registering, but about shipping it
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    A program called "Fusion" generates only one stand-alone .EXE from any VB project.
    Visit http://www.bit-arts.com

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I heard Fusion is kinda buggy and sometimes doesn't include all depencies and the main executable will be still quite big
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Also, fusion costs lotsa money!!!

  6. #6
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    I don't know about bugs, I recently downloaded their latest evaluation version and all my converted VB projects ran well.

  7. #7
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    But how big are the exe's created by Fusion. It's near the size of a D&P wizard created zip file I think, so it's of no use
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  8. #8
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Example:
    831 KB fusion version and 1732 KB original version (VB6 dll included in fusion version)
    Of coarse, the .EXE size is a little bit bigger: from 348 KB to 832 KB...

  9. #9
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Not that bad at all I have to admit, maybe I'll download a copy myself!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  10. #10
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Originally posted by CyberSurfer
    Also, fusion costs lotsa money!!!
    You pay for programs?

    HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA, ETC.

    =D funny!

  11. #11
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    You pay for programs?

    HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA, ETC.

    =D funny!
    If you sold progs, would you me to pay for your (made with an illegal copy of VB) prog?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  12. #12
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    No one smart(IQ above 100) would buy a VB prog. NO ONE! unless they're stupid, IQ below 100.

  13. #13
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    hmm anyway, problem about not using a setup prog is that you cant write your file copying/registering util in VB cos it needs the VB runtimes..well p&d basically copies vbruntime and some other dlls and then runs the main setup.exe (written in VB, cos u can edit the project as shown on wbworld). but the first bit that copies the runtimes is written in C/C++ cos no runtimes are needed (assuming no MFC). So...if u know a little C++ just write a simple automatic installer, and your prog can be quite small.

    actually, just realized all the above is irrelevant cos the VB runtime DLL is the thing taking up the space neway

    oh well
    me =mule
    buzzwords are the language of fools

  14. #14
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    "Edwin", a professional PCB layout app, is written in VB. I surely can't make this on my own! Nevertheless, the price is (very) huge but compared with what you get...

  15. #15
    Guest
    Fusion does not include running dependencies like OLEAUT32.DLL

    [Edited by Jorgen on 09-19-2000 at 03:54 AM]

  16. #16
    Guest
    DIGITAL-ERROR!!!

    You use a stolen prog?

    Now, I use a LEGAL COPY, LICENSED BY MICROSOFT, AND FREE COPY OF THE ENTIRE VS6, Professional, and that means my IQ is above 249!

    Correct?

  17. #17
    New Member
    Join Date
    May 1999
    Location
    Home, USA
    Posts
    13
    You realize that the bigger your program is, the cooler? After it's installed, it's no big deal because the instalation program is not gonna copy it's entire self over, just the necessary not already existing files. If I was to send my programs out on a floppy disk, that would look pitiful, so I send my programs on CD because it's much cooler CD's are a more impressive package.

    On the other hand, if ou plan to have people download this file, you would want the smallest one possible so I can see why you want to do what you are trying to do.

    Also, I resent the fact that you said VB programs suck (okay, so that wasn't ure exact wording). I've made plenty of very usefull VB programs, and many people that know other languages prefer it for quick, trivial tasks.

  18. #18
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    i think if you are going to sell your program, you might as well buy the bitarts program.

  19. #19

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    I don't want to sell my program, I just want to make the download as small as possible. Does anybody know how much .dll files are compressed by WinZip?

    BTW I own a PAID FOR AND LICENSED copy of Visual Studio v6.0!! This seems to be a strange thing nowadays!

  20. #20
    New Member
    Join Date
    Jun 2000
    Posts
    1
    VB P&D is a steaming pile of man biscuits. Use the Windows installer version 1.1. Available on the Windows 2000 readiness kit or download it from Microsoft.

    This treats deployments as a project allowing you to control the content of the deployment. It allows you to determine what gets deployed and to where. Registry entries, desktop updates, quick launch bar updates are all available in the Windows installer.

    I don't think your going to have any luck getting any size program to deploy on one floppy.

  21. #21

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    But how much does Winzip compress .dll files? The app will be downloadable from my website, not distributed on floppy disks. I just want to decrease the P&D'd size of 1.7Mb to nearer the 120 Kb of the actual code.

  22. #22
    New Member
    Join Date
    May 1999
    Location
    Home, USA
    Posts
    13
    Why don't you try it and find out???

    It has never compressed DLLs or non-VB programs much for me.

    You do realize that the only reason that your program is

    120 bytes is because it relies on those huge DLLs to work (you may have already known this, not to insult your intelligence or anything).

    Having the DLLs in a separate zip file may be a good idea because people might not need them, so they wouldn't have to download them if they didn't.

  23. #23
    Guest
    Hmmm...

    The DLLs are big, but you can eliminate the entire use of the stupid OLE32 and OLEAUT32 TLBs by disabling OLE Automation (Did you know you could?), but that also disables OLE, so if it's worth it, you might...

  24. #24
    New Member
    Join Date
    May 1999
    Location
    Home, USA
    Posts
    13
    Interesting, I'd never tried that before... duhhhh, oops, guess I shoulda :)

  25. #25
    Guest
    Actually, there are a lot of the Seven Origional DLLs that are not needed, experiment with them, BUT REMEMBER that without MSVBVM60, you can't run anything.

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