OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TLangModule Class Reference

International resource support: [APP]ENG.DLL - default application module. More...

#include <owl/applicat.h>

Public Types

typedef void(* InitLanguage) ()
 

Public Member Functions

 TLangModule (const tstring &prefix, const TApplication &appl)
 
virtual ~TLangModule ()
 
 operator TModule * ()
 
TModuleGetModule ()
 
void SetLanguage (const TLangId &langId)
 
TLangId GetLanguage () const
 

Protected Attributes

tstring Prefix
 
TModuleModule
 
TApplicationApplication
 
TLangId LangId
 

Detailed Description

International resource support: [APP]ENG.DLL - default application module.

Module == TApplication if not found any resource module. Usage:

{
return langModulePtr;
}
int OwlMain(int,LPCTSTR*)
{
TLangModule langModule("MRES_",appl); // will be MRES_###.dll
return appl.Run();
}
International resource support: [APP]ENG.DLL - default application module.
Definition applicat.h:534
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

Definition at line 534 of file applicat.h.

Member Typedef Documentation

◆ InitLanguage

typedef void(* owl::TLangModule::InitLanguage) ()

Definition at line 537 of file applicat.h.

Constructor & Destructor Documentation

◆ TLangModule()

owl::TLangModule::TLangModule ( const tstring & prefix,
const TApplication & appl )

Definition at line 2015 of file applicat.cpp.

References owl::Module, and SetLanguage().

◆ ~TLangModule()

owl::TLangModule::~TLangModule ( )
virtual

Definition at line 2025 of file applicat.cpp.

References Application, and Module.

Member Function Documentation

◆ GetLanguage()

TLangId owl::TLangModule::GetLanguage ( ) const
inline

Definition at line 547 of file applicat.h.

◆ GetModule()

TModule * owl::TLangModule::GetModule ( )
inline

Definition at line 544 of file applicat.h.

References owl::Module.

◆ operator TModule *()

owl::TLangModule::operator TModule * ( )
inline

Definition at line 543 of file applicat.h.

References owl::Module.

◆ SetLanguage()

void owl::TLangModule::SetLanguage ( const TLangId & langId)

Definition at line 2031 of file applicat.cpp.

References _T, Application, owl::TModule::GetProcAddress(), Module, and Prefix.

Member Data Documentation

◆ Application

TApplication* owl::TLangModule::Application
protected

Definition at line 552 of file applicat.h.

◆ LangId

TLangId owl::TLangModule::LangId
protected

Definition at line 553 of file applicat.h.

◆ Module

TModule* owl::TLangModule::Module
protected

Definition at line 551 of file applicat.h.

◆ Prefix

tstring owl::TLangModule::Prefix
protected

Definition at line 550 of file applicat.h.


The documentation for this class was generated from the following files: