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

TModuleProc is a base class that does inital binding of a function name or ordinal to the corresponding function in the given module (DLL). More...

#include <owl/module.h>

Protected Member Functions

 TModuleProc (const TModule &module, TNarrowResId id)
 Constructs a Module entry object given a narrow Windows resource identifier.
 

Protected Attributes

FARPROC Proc
 Derived template classes perform type-safe parameter passing on call.
 

Detailed Description

TModuleProc is a base class that does inital binding of a function name or ordinal to the corresponding function in the given module (DLL).

It is required and assumed that the bound function is using the WINAPI calling convention. Derived class templates perform type-safe parameter passing on call using a different template for each number of parameters, 'V' version for void return, i.e. TModuleProcV0, TModuleProc0, TModuleProcV1, TModuleProc1, etc. The constructor throws an exception if it cannot bind.

Definition at line 535 of file module.h.

Constructor & Destructor Documentation

◆ TModuleProc()

owl::TModuleProc::TModuleProc ( const TModule & module,
TNarrowResId id )
protected

Constructs a Module entry object given a narrow Windows resource identifier.

The resource identifier encodes either a function name or a function ordinal for one of the exported functions in the module.

Definition at line 1021 of file module.cpp.

References owl::TXOwl::MakeMessage(), Proc, and owl::TXOwl::Raise().

Member Data Documentation

◆ Proc

FARPROC owl::TModuleProc::Proc
protected

Derived template classes perform type-safe parameter passing on call.

Different class for each number of parameters, 'V' version for void return.

Definition at line 542 of file module.h.


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