Curso de C++ Builder


Estructura y configuración de un proyecto


Fichero "Inicial.cpp"

 
//----------------------------------------------------------------- 
#include <vcl.h> 
#pragma hdrstop 
USERES("Inicial.res"); 
USEFORM("main.cpp", MainForm); 
//----------------------------------------------------------------- 
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) 
{ 
   try 
   { 
       Application->Initialize(); 
       Application->CreateForm(__classid(TMainForm), &MainForm); 
       Application->Run(); 
   } 
   catch (Exception &exception) 
   { 
       Application->ShowException(&exception); 
   } 
   return 0; 
} 
//----------------------------------------------------------------- 

 



Atrás