Solved

Making a true EXE file

Posted on 1998-08-28
11
193 Views
Last Modified: 2008-02-01
i have VB5. how do i make a TRUE exe, not needing any DLLs
what so ever?
0
Comment
Question by:msiman
[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
11 Comments
 

Expert Comment

by:endeavor
ID: 1431717
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

0
 
LVL 6

Expert Comment

by:clifABB
ID: 1431718
You cannot make a "true" exe (without the VB runtime).
But then even C++ needs runtimes these days.  :)
0
 
LVL 3

Expert Comment

by:jjmartin
ID: 1431719
Sometimes it would be nice to include everything in the same exe, but VB and windows does not do this.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:brunchey
ID: 1431720
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.
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1431721
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.
0
 
LVL 2

Author Comment

by:msiman
ID: 1431722
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.

0
 
LVL 1

Expert Comment

by:cip
ID: 1431723
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.
0
 
LVL 2

Author Comment

by:msiman
ID: 1431724
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...)
0
 
LVL 1

Expert Comment

by:cip
ID: 1431725
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.
0
 
LVL 2

Accepted Solution

by:
percosolator earned 20 total points
ID: 1431726
msiman:  get a grip!

you just had a bunch of people tell you the way it is.  they are not wrong!  They are just telling you the way it is.

see for yourself:  make a simple exe, one that only displays a form.  compile it.  take it to a clean machine (one that has NEVER had anything to do with VB (even better, one with a clean install of windows on it, no other software)) and try running your EXE.  Won't work.  As cip said, there are many routines that are required by your EXE in MSVB5VM.DLL.

If you really think about it, there has/was almost NEVER a stand-alone EXE.  Almost every EXE had to at lease use DOS interrupts for disk I/O, video, memory allocation and what-not, and would not run on a machine without any OS--which would be the truest definition of a clean EXE.

Regards.
0
 
LVL 2

Author Comment

by:msiman
ID: 1431727
cip:
your answer interests me,
what  about p-code? what is the alternative?
waht does it mean?
i think you are very close...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using "ScreenUpdating" 6 86
Sending a email via excel using vba 6 119
which modules are active in VB6 project? 6 57
VBA - If Bookmark = "XXBOOKMARKXX" then 15 67
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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