Solved

Creating exe file from VB app

Posted on 2003-11-13
7
339 Views
Last Modified: 2010-05-01

How can I make exe file from running VB app for example:
open some file, in that file write VB code and then close file like exe, example:

open "somefile.exe" for output as #1
write #1, VB CODE
close #1

I doubt that something like this is possible but anyway
 Thank you.
0
Comment
Question by:damirsel
7 Comments
 
LVL 14

Accepted Solution

by:
aelatik earned 250 total points
ID: 9739266
Nope, thats not possible. The only thing you can do is to create the VBP, FRM or BAS files and compile it through commandline.
But this needs VB to be installed on the computer. If you wosh to know how the commandline ocmpiler works try : http://www.whippleware.com/VBLM/webhelp/vblm/vb_command_line_summary.htm. Otherwise you would need to build your own compiler. Which i cannot help you with.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9739685
If you have a simple app and just want to change values in the exe,you could use this teqnique:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=39917&lngWId=1
0
 
LVL 7

Expert Comment

by:_agj_
ID: 9739956
if u jus want scripting, u cud try the windos scripting host...functioanluty wise u wudnt hav much prob.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:InTheWind
ID: 9740880
what you're trying to do is called 'hacking' an application I believe... otherwise known as "decompiling" or "reverse engineering"...

you probably are already aware that this is illegal, as the program publisher didn't likely sell you the rights to do that.
0
 
LVL 5

Expert Comment

by:burningmace
ID: 9745879
What if he made the program??? DUH!
0
 
LVL 1

Expert Comment

by:InTheWind
ID: 9747200
Yes, you're absolutely right!! Which is the reason for the closing comment. If he is the publisher, then there isn't any problem... or did you read that far?

Some might have taken personal offence in the first sentence, and not bothered to finish reading.

Of course, most people think it's legal to give their friends copies of CDs, movies, unpaid satelittes, commercial software, etc... so, I guess that we should all get into hardware, since you don't have to worry about someone duplicating it (yet).

If that were to happen, what we would end up with would be a bunch of people making hardware and software that will only run on that hardware... making it impossible to run software on hardware which wasn't "key coded" for that software. Otherwise known as an appliance. Then watch forums like this disappear as there is no longer any reason to write software, because you can't make a living selling it...

Welcome to the world of free software, help yourself.

Hope you made it this far in the soapbox speech.
0
 
LVL 1

Expert Comment

by:gideonn
ID: 9754689
Listening..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now