We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Making a true EXE file

msiman
msiman asked
on
Medium Priority
213 Views
Last Modified: 2008-02-01
i have VB5. how do i make a TRUE exe, not needing any DLLs
what so ever?
Comment
Watch Question

Commented:
Is the definition of a 'TRUE' exe one that doesn't have any dependencies on dll's?  If so, then there arent any such .exe on windows since *every* .exe uses one DLL or another (kernel32.dll, C runtime, etc.)

If you are talking about not needed any of the VB5 runtime support DLL's then I don't know.  Why do you need to do this?

-- George

Commented:
You cannot make a "true" exe (without the VB runtime).
But then even C++ needs runtimes these days.  :)

Commented:
Sometimes it would be nice to include everything in the same exe, but VB and windows does not do this.

Commented:
It is impossible.  Visual Basic is like java where it requires the Visual Basic Virtual Machine in order to work.  I wish it did not, but there is no alternative.
Try any C program .
NOT C++.

Just old plain C.

You can do a lot with C.

There is one thing you give ::: GUI.

shay.

Author

Commented:
All your answers are wrong.
i realize that even C++ needs Windows' DLLs in order to work,
but these are standard DLLs, and its ok.
i want to create an EXE file from VB that won't need
any SPECIAL runtime such as VBRUNXXX.DLL etc.
i want to create an EXE just as C++ makes.

cip

Commented:
You cannot make a completely independent .EXE file with Visual Basic 5.0. Even by not using database objects and compiling to native code, the final application will always need at least the visual basic virtual machine DLL (MSVB5VM.DLL).

You will need C, C++ or Borland Delphi.

Author

Commented:
I appreciate all your answer, but i think you're wrong
the main achivment of VB5 is the ability to make
pure EXE (as pure as windows let you...)
cip

Commented:
MSVB5VM.DLL contains many important VB functionalities (such as the code to manage forms), and even if the application is not compiled to p-code (then the DLL would have be there to interpret the code line by line), it will always be required. Take a look at the Microsoft knowledge base article Q169979 (Visual Basic 5.0 FAQ), the first Q&A will answer your question.

However, although this is certainly true when talking about a VB application, I'm not completely sure that the same principle applies to ActiveX components.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
cip:
your answer interests me,
what  about p-code? what is the alternative?
waht does it mean?
i think you are very close...
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.