Componentes.Terceros.DevExp.../official/x.38/ExpressSpreadSheet/Demos/CBuilder/CustomFunctionDemo/CustomFunction.cpp

26 lines
770 B
C++
Raw Normal View History

//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "AreaCustomFunc.h"
USERES("CustomFunction.res");
USEUNIT("AreaCustomFunc.cpp");
USEFORM("CustomFunctionFrm.cpp", CustomFunctionForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
RegisterCustomFunction();
Application->CreateForm(__classid(TCustomFunctionForm), &CustomFunctionForm);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
return 0;
}
//---------------------------------------------------------------------------