aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/sword.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/sword.cpp')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/sword.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/sword.cpp b/apps/windoze/CBuilder5/BibleCS/sword.cpp
index 0bdf69a..13a52d3 100644
--- a/apps/windoze/CBuilder5/BibleCS/sword.cpp
+++ b/apps/windoze/CBuilder5/BibleCS/sword.cpp
@@ -49,6 +49,9 @@ USE("..\..\..\..\..\icu-sword\as_is\borland\http:\www.crosswire.org\sword\images
USELIB("..\..\..\..\..\icu-sword\as_is\borland\icucommon.lib");
USELIB("..\..\..\..\..\icu-sword\as_is\borland\icui18n.lib");
//---------------------------------------------------------------------------
+
+AnsiString startVerse = "";
+
WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
LONG result;
@@ -93,6 +96,8 @@ WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, in
delete [] buf;
return 0;
}
+ startVerse = buf;
+
// TODO 5: if we have a cmdline argument, figure we have to change directories. BAD, FIX.
result = Application->ExeName.Length();
@@ -176,7 +181,6 @@ WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, in
Application->CreateForm(__classid(TPreviewForm), &PreviewForm);
Application->CreateForm(__classid(TPrintForm), &PrintForm);
Application->Run();
- delete SplashPg;
}
catch (Exception &exception) {
Application->ShowException(&exception);
@@ -185,3 +189,6 @@ WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, in
}
//---------------------------------------------------------------------------
+
+
+