summaryrefslogtreecommitdiff
path: root/bindings/bcppmake/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/bcppmake/test.cpp')
-rw-r--r--bindings/bcppmake/test.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/bindings/bcppmake/test.cpp b/bindings/bcppmake/test.cpp
new file mode 100644
index 0000000..1d02c50
--- /dev/null
+++ b/bindings/bcppmake/test.cpp
@@ -0,0 +1,23 @@
+//---------------------------------------------------------------------------
+
+#include <vcl.h>
+#pragma hdrstop
+USERES("test.res");
+USEFORM("MainTest.cpp", Form1);
+USELIB("sword.lib");
+//---------------------------------------------------------------------------
+WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
+{
+ try
+ {
+ Application->Initialize();
+ Application->CreateForm(__classid(TForm1), &Form1);
+ Application->Run();
+ }
+ catch (Exception &exception)
+ {
+ Application->ShowException(&exception);
+ }
+ return 0;
+}
+//---------------------------------------------------------------------------