How to build a Windows tiny EXE

How to build a Windows tiny EXE

Postby Antonio Linares » Tue May 07, 2019 5:05 am

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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to build a Windows tiny EXE

Postby Antonio Linares » Tue May 07, 2019 5:09 am

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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 14 guests