I need a code which will help me compile an exe file based on some arguments or with the help of another VB file
Rather use the "Package and Deployment" wizard that came with VB^ to compile your app.:)
It will refer back to errors if there are any, or compile if all is fine. Don't try and re-invent the wheel if it already exists.
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
I'm not sure what it is exactly that you need to do here? Firstly, you needed to know how to compile an application, now you need an application. I'm confused...
Give us some more information please.:)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
some apps like WinRar and Winzip that can make exe files
They do not create .exe files, only compress/decompress EXISTING .exe files.
If you want to compile an .exe, you need to get an installer app, of which VB6 has the
"Package and Deployment" wizard.
If you want to compress/decompress files, use winzip or winrar's dll files in your code.
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
They do not create .exe files, only compress/decompress EXISTING .exe files.
Not true. There is a setting to create the archive as an EXE file. When you execute this file the archive is decompressed automatically. Not sure exactly how they do it, though. I assume they have the 'exe' file front end that the archive is appended to as a data segment.
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
I'll have to delft into this a bit more, will see what time permits tomorrow. I have checked my version (fairly new) and I have no option to zip into an exe though.
Will post a solution if I can tomorrow.:)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350