OWLNext    7.0
Borland's Object Windows Library for the modern age
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
13
14using namespace owl;
15
16int
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#if BI_MSG_LANGUAGE == 0x0411
31 ::MessageBox(0, "ダミーの OwlMain を誤って使用しました",
32 "エラー", MB_ICONHAND | MB_OK);
33#else
34 ::MessageBox(0, _T("You have accidently used the dummy version of OwlMain."),
35 _T("Error"), MB_ICONHAND | MB_OK);
36#endif
37 }
38
39 return 0;
40}
41
Diagnostic macros for assertions and tracing.
#define PRECONDITION(condition)
Definition checks.h:227
#define _T(x)
Definition cygwin.h:51
STDAPI_(owl::TDocTemplate **) GetDocTemplateHead(owl STDAPI_(owl::TModule **) GetModulePtr(owl in OwlMain)(int argc, TCHAR *argv[])
Main entry point for an Owl application.
Definition module.h:391
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
OWL_DIAGINFO
Definition animctrl.cpp:14