Solved

Creating exe file from VB app

Posted on 2003-11-13
7
338 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 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

14 Experts available now in Live!

Get 1:1 Help Now