Page 1 of 1

How to build a Windows tiny EXE

PostPosted: Tue May 07, 2019 5:05 am
by Antonio Linares
hello.cpp
Code: Select all  Expand view
#include <windows.h>

#pragma argsused

int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
   MessageBox( 0, "Hello world", "Information", MB_ICONINFORMATION );

   return 0;
}


To build it:
bcc32 -tW hello

Re: How to build a Windows tiny EXE

PostPosted: Tue May 07, 2019 5:09 am
by Antonio Linares
Ready for more C++ and Windows ? Then give FiveCpp a try ;-)

https://github.com/FiveTechSoft/FiveCpp

Code: Select all  Expand view
#include "FiveCpp.h"

//----------------------------------------------------------------------------//

function Main()
{
   local oWnd = DefineWindow( "Hello world!" );

   oWnd.Activate();
}

//----------------------------------------------------------------------------//

https://github.com/FiveTechSoft/FiveCpp/blob/master/samples/tutor02.cpp