Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating exe file from VB app

Posted on 2003-11-13
7
Medium Priority
?
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 14

Accepted Solution

by:
aelatik earned 500 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…
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…
Suggested Courses

715 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