Avoiding the Visual C++ Runtime Library
By Matthew Wilson, February 01, 2003
There are many ways in which an app or library may be dependent on the C Runtime Library. But for small executables, most of the library is not required. You can make smaller, more-independent apps with the help of a "mini-CRT" Library.
February 2003/Avoiding the Visual C++ Runtime Library
Listing 3 A common implementation to be compiled and linked into your program
int APIENTRY synesisWinMain(HINSTANCE,
HINSTANCE,
LPSTR,
int)
{
int iRet;
iRet = WinMain( GetModuleHandle(NULL),
NULL,
GetAdjustedCommandLine(),
GetWindowShowState());
trace_leaks();
return iRet;
}