I'm just wondering if anyone knows of anywhere that I can find information/code examples on how to get a VB app to create/export a custom executable. Just simple executables for now.
For example, say I have a program where you type something into an input box, and click a save button, it generates an executable. That new EXE pops up a message box on load that says whatever you typed into the original input box.
It's sort of difficult to explain, but hopefully I did a good enough job of it.
Again, I'm not asking for someone to tell me how to program it. I'll figure that part out on my own. I"m just lookign for information on how to achieve something like this. I've seen it done with VB before. I've googled and was unable to turn up anything useful.
Thanks!
Last edited by adamsucks; Apr 6th, 2005 at 03:50 PM.
Should you find the answer to this, myself and alot of other people would love to look at your code. This question has been asked many times, and noone has found a sure way of doing this properly.
Should you find the answer to this, myself and alot of other people would love to look at your code. This question has been asked many times, and noone has found a sure way of doing this properly.
Phreak
If I figure anything out, I'll be sure to share it with the community.
It writes the instructions to the EXE file itself. The exe you create will require the msvbvm60.dll file like all other VB programs, but that's it. Maybe I could convert it to C++ then it would be completely standalone.
Doesn't VB SCript allow you to enter "source code like lines" and execute them on the fly? Wouldn't that be the answer to this - I believe I've seens posts about that before.
*** Read the sticky in the DB forum about how to get your question answered quickly!! ***
Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".
The way I did it is the same way most self-extractors work, except they were written in C++ and require no runtimes...
Just so you know, you can write data to the end of an EXE file without corrupting it. And have that EXE file read from itself without a "path/file access error"...
If you ported the EXEFile.exe's source over to C++ which wouldn't be that hard, then it would be standalone.
It writes the instructions to the EXE file itself. The exe you create will require the msvbvm60.dll file like all other VB programs, but that's it. Maybe I could convert it to C++ then it would be completely standalone.
Edit: run the builder program
Thanks a ton!! That's exactly what I was looking for.
Amazing.
Edit:
What is this:
Private Const MSG_START As String = ""
(on my computer it looks like 6 ascii squares..?)
Re: [RESOLVED] Generate executables from a VB app?
It could be exactly what was wanted. I can't download it, but from the looks of it, it just signifies the start of a message. It's not meant to be anything special (ie: symbols).
Also, You can't make it stand alone completely in VB. The example given is in VB is it not? If it is, then if you give the program to someone, or write an exe with your program and give them the exe, they might not be able to run it. It still requires the VB Runtime. As was stated, C/C++ is the way to go..
Re: [RESOLVED] Generate executables from a VB app?
Couldnt we store the binary data of an exe to a resource then open a new exe file using 'open' then store those binary data into that newly created exe? Wouldnt that work?
Regards,
™
As a gesture of gratitude please consider rating helpful posts. c",)