Make a program using only
Date: Sun, 16 May 1999 14:34:17 -0400
(copied and edited from a message posted on borland.public.cpp.language)
You could put all your app-like code in a DLL and export
one function called something like "RunMyApp".
Then, you'd have an empty EXE whose WinMain() did nothing
but call RunMyApp().
In fact, the system already provides a .EXE that practically
does exactly this. It's called RunDll32.exe (there's
a 16-bit version called RunDll.exe). Many of the
system's build-in "applets" are executed via
You can look up information on how to use RunDll on
Popular C++ topics at The Database Managers: