home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,318 of 10,840   
   Wog George to Dikkie Dik   
   Re: Standalone EXE in VB6   
   21 Dec 06 07:02:58   
   
   From: wog-NotThisBit-george@amd-p.com   
      
   "Dikkie Dik"  wrote in message   
   news:45898733$0$21920$bf4948fe@news.tele2.nl...   
   > Wog George wrote:   
   >> I need to create an EXE that is truly "standalone".  By that, I mean the   
   >> executable file is all that's required for the application to run.   
   >   
   > As a VB6 executable will at least need MSVBVM60.DLL, this is impossible.   
   > BUT, if you put this DLL in the same directory as the executable (or in   
   > another path that is searched for execution, like C:\windows\), it will   
   > run. So you can write an installer in VB6 without having to install your   
   > installer.   
   > That is, if the programmer did not add any other dependencies. Trouble is,   
   > that the IDE sometimes adds dependencies without warning you. Just check   
   > the project properties and remove anything you will not need.   
   >   
   >>  My app has a button that fires up a common control (to select a file),   
   >> and this seems to be my stumbling block.  When I try to run my program on   
   >> another machine, it complains that comdlg32.ocx is not registered   
   >> properly.   
   >   
   > If you use an object for a file dialog, you do have a dependency. You can   
   > avoid this by using an API call instead of a CommonDialog control and save   
   > yourself a lot of troubles.   
   >   
      
   I wanted a dialog and did what looked like the right thing.  It certainly   
   worked from a development perspective.  The API path to happiness is the   
   next one that I'll travel.   
      
   >> Short of creating my own form and writing my own code to browse for a   
   >> file, can VB6 create a fully self-contained EXE that uses a common   
   >> control and can simply be run without the need for the program to be   
   >> installed?  It was suggested to me that VB6 was what I needed (was using   
   >> VB5 prior to now), so I bought an old copy of VB6 Enterprise especially   
   >> for the occasion.  Have I been misled?   
   >   
   > Probably. There's little difference between VB5 and VB6 in this respect.   
   >   
      
   VB6 was probably not a complete waste anyway, because it can do a few more   
   things or do things in better or nicer ways than VB5.  It just seems a bit   
   odd that I bought the Enterprise Edition to create a 94kB file, but that's   
   the version that became available at the same time that I went looking.   
      
   Thanks for the reply, and merry Christmas to all who stumble across this   
   thread.   
      
   --   
   George   
   "You can just hang outside in the sun all day tossing a ball around, or you   
   can sit at your computer and do something that matters." - Eric Cartman - 4   
   October 2006   
      
      
   > Best regards   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca