By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,367 Members | 946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,367 IT Pros & Developers. It's quick & easy.

Create an exe from a program.

P: 5
Hey,

I was wondering if it would be possible to create an exe from a program using Vb6.

I have created a program, but I want the user to be able to set the text in the textboxes when the program loads without having to load info from a text file or something. I was thinking of creating a program that shows the textbox names, the user then types in what they want in the textboxes and then clicks a button to make the exe (My first program) with the custom settings.

Any help?

Thanks.

Darren.
Jan 26 '08 #1
Share this Question
Share on Google+
5 Replies


lotus18
100+
P: 866
Hi

Yes you can. Click on File > Make <your project name> .exe.... But it is recommended to make it a package installer using the Package and Deployment Wizard.: ). If your first program is simple, making it .exe would be enough as long as you include all the references or its dependent files.

Rey Sean
Jan 27 '08 #2

9815402440
100+
P: 180
hi

you can create exe file at run time. but before you have to create a project and forms (at run time). let me make the logic clear first. start a new standard exe project. in form1 add a command button. in command button's click event type msgbox ("hello"). in the declaration section type Option Explicit. now save the project and form. close the project. now open the folder where you just saved the project. open the form1.frm file with notepad. here you will find the code in simple english. study how command1 is coded and its properties are set. similartl open project1.vbp file in notepad. and check what is written in it. after a little study every thing will be clear.you can create these files using vb6 code on run time. using this logic i have made a complete software designer and coder. you can create exe as follows:

C:\Progra~1\Micros~2\VB98\VB6.EXE -M <project file path and name>

hope this will help you

regards
manpreet singh dhillon hoshiarpur
Jan 27 '08 #3

Expert 5K+
P: 8,434
I think your best bet would be to store the text entries somewhere like the system registry, and load them each time the program starts up.
Jan 27 '08 #4

werks
100+
P: 220
Hey,

I was wondering if it would be possible to create an exe from a program using Vb6.

I have created a program, but I want the user to be able to set the text in the textboxes when the program loads without having to load info from a text file or something. I was thinking of creating a program that shows the textbox names, the user then types in what they want in the textboxes and then clicks a button to make the exe (My first program) with the custom settings.

Any help?

Thanks.

Darren.

Are trying to develop your own exe program? If not hen try lotus suggestion..


Better Than Yesterday
Jan 27 '08 #5

P: 5
I already have a program made, but it has about 10 textboxes, I wanted to be able to make another program with my program hidden inside it, so that the user could set the text in the textboxes then make the hidden program into an exe with all the textboxes set to what they want. if that makes any sense.

Darren.
Jan 27 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.