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)
nilehawkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.