OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
owlmain.cpp
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
4
//
5
/// \file
6
/// Default OwlMain to satisfy LibMain in DLLs that aren't components
7
//----------------------------------------------------------------------------
8
#include <
owl/pch.h
>
9
10
#include <
owl/private/checks.h
>
11
12
OWL_DIAGINFO
;
13
14
using namespace
owl
;
15
16
int
17
OwlMain
(
int
argc, _TCHAR* argv[])
18
{
19
// This OwlMain should be called only when the user builds a DLL.
20
// If it's called from an EXE, that means the user did not provide
21
// an OwlMain with the proper prototype. Issue a warning.
22
//
23
// When LibMain/DllEntryPoint calls this OwlMain, both arguments
24
// are 0. If either argument is non-zero, an EXE is running.
25
//
26
PRECONDITION
(argc == 0);
27
PRECONDITION
(argv == 0);
28
29
if
(argc != 0 && argv != 0)
30
::MessageBox(0,
_T
(
"You have accidently used the dummy version of OwlMain."
),
_T
(
"Error"
), MB_ICONHAND | MB_OK);
31
return
0;
32
}
33
checks.h
Diagnostic macros for assertions and tracing.
PRECONDITION
#define PRECONDITION(condition)
Definition
checks.h:227
_T
#define _T(x)
Definition
cygwin.h:51
pch.h
OwlMain
STDAPI_(owl::TDocTemplate **) GetDocTemplateHead(owl STDAPI_(owl::TModule **) GetModulePtr(owl int OwlMain(int argc, TCHAR *argv[])
Main entry point for an Owl application.
Definition
module.h:394
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
OWL_DIAGINFO
#define OWL_DIAGINFO
Definition
defs.h:173
source
owlcore
owlmain.cpp
Generated by
1.18.0