Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help creating executable 1

Status
Not open for further replies.

barcode711

Technical User
Jan 9, 2002
13
US
I have read that in VB 6.0 there is a wizard that helps you create exe's. I seem to be having problems using mine.

What I did was alter a previous VB script(written in VB 6.0) that copied a file from one folder(local folder)and saved it to another(network folder. All I did was change the files being copied. I am able to run the program fine within the Visual Basic program.

However when I try to use the package and deployment wizard, it wants to use the exe file program that was part of the original script. I have to use this previous exe or compile my altered version, but when I try to compile I get an error "error has ocurred, application or user-defined error". If I choose to use the older exe file, then when I run my "new" program it runs the process as the original script. I've also tried to using the option(under File menu)to "make exe" in VB but for some reason that menu is not accessible to me, its grayed out.

What I need to find out is, how do I create a new exe, or is there some way I can edit the old executable?
 
I am not sure if I understand your question. Forgive me if I misunderstood, but to create a new exe for a project click 'Make <exe name>.exe' in the file menu of your VB IDE.

You can then use this new exe to create a package with the PDW.

Thanks and Good Luck!

zemp
 
zemp,

I've tried doing that..but when I go to the file menu, the &quot;make<projectname>.exe&quot; option is grayed out, I cannot access it. I am doing this while having my project open.
 
Open the Project window (Control R), Right click on your project, select properties and change the project name. The Make option under File menu will now show your new project name


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
I tried renaming my project and still nothing, I can see the make.exe option, but still cannot use it. I don't know whats wrong. I guess I can try reinstalling VB6, unless there is another way I can create an exe.
 
barcode711

I had a very similar problem with my Visual Studio at work rececntly. I couldn't be bothered to find a &quot;smart&quot; soluhtion to it & rebuilt my system from OS up.

However, If you need to compile a VBP to exe, you can do it by opening the explorer window to the folder with the VBP file. Select the vbp and right click it, select the make option.




Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Matt,

Tried that too, didn't work. I'm going to reinstall and see if that works.
 
This may be a silly question, but do you have a learning edition of VB? I know that in the past with the learning editions, you were unable to do certain features and if memory serves me correctly, making an exe was one of them...
 
Not a silly question, I have a copy of a working edition, and you are right you couldn't make an exe in it. Then I also installed a full version so that must have messed up something, so I just uninstalled everything and reinstalled the full version, and it works now..thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top