• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

how can i make stand alone exe using VB6

how can i make stand alone exe using VB6
how can i make setup for my project
i did not find setup wizard
what is the diferent between Ncode and pcode combilation (making exe files)
0
nilehawk
Asked:
nilehawk
  • 4
  • 2
  • 2
  • +2
1 Solution
 
bonggoyCommented:
>how can i make stand alone exe using VB6 ?

You cannot make a standalone exe in VB6 like DOS program does.  It needs runtime support libraries (dll's, ocx, etc).

You can use Package and Deployment Wizard, which replaces the Setup wizard, to create a setup program.

Native Code runs much faster that Pseudo Code compiled program.  
0
 
bonggoyCommented:
Native Code is compiled in binary format which the computer can understand while Pseudo Code is compiled in a way where it needs a interpreter to actual translate the instructions to a format the computer can understand.
0
 
eab111098Commented:
to make an exe file, after you have written your program, goto to the "file" menu and there's an entry there that reads "Make" your-program-name.exe ....

this will complile your code to an executable.

once that is complete, get out of the vb ide and then goto to your start menu on the desktop. select program files->Microsoft Visual Basic x.o-> Microsoft Visual Basic Tools->Package & Deployment Wizard.  

this will bring up the wizard to package your program into a setup script. simply enter the visual basic project name and then work thru the wizard. at the end, you'll have a setup program that will enable you to install the program.

hope this helps you.
ed.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
nilehawkAuthor Commented:
i meed with stand alone exe file thatit runs without need to VBruns link in VB4
can i do it with VB6
0
 
bonggoyCommented:
Again, you cannot create a standalone EXEcutable ala DOS exe.  A VB created executable needs a whole bunch of support files to be able to run the program.  You might be able to do it in VC++ though (not really sure as I have very little experience in C++).
0
 
headerCommented:
Native code is much more like a complete .exe, however it still has to be partially "interpreted" before it is run, that is why you have to send along dozens of extra files with your package.

If you want a true .exe that does not need to be "interpreted", switch to VC++.  It creates very portable machine code that does not need all of the "support" files that VB needs.  However, it is a little harder to develope in.
0
 
jhao123Commented:
Interesting fact:

A program was once in development for VB that made it run without any dependencies.

http://maquisistem.tripod.com/maqvbdis.htm

Unfortunately, it was discontinued.

VBAccelerator.com planned to release a project which did the same thing. However, bugs could not be worked around and the project was also discontinued.
0
 
nilehawkAuthor Commented:
i mean by indepentant that it does not need Vb run file to work i do not mean
that it does need ocx nor dll
you know there is default dll and ocx in windows so i use them to make ademo for a cd auto play i did do it using VB4 and i added vbrun400 to my cd
0
 
bonggoyCommented:
If the intended demo machine has a VB6 installed in there, and assuming it contains all the third party tools that you reference in your program, you can just go ahead and "make" and EXEcutable.  Follow eab's instruction and if your program does not have any error, you'll have an "standalone-exe" generated for you.

Does that answer your question?
0
 
jhao123Commented:
Not really, chances are that the user's machine will not have vb installed.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now