Standard Header
Header files help the compiler properly create a business function. The C language contains 33 keywords. Everything else, such as printf and getchar, is a function. Functions are defined in header files that you include at the beginning of a business function. Without header files, the compiler does not recognize the functions and might return error messages.
This example shows the standard header for a business function source file:
/****************************************************************
* Header File: BXXXXXXX.h
* Description: Generic Business Function Header File
* History:
* Date Programmer SAR# - Description
* ---------- ---------- ----------------------------
* Author 03/15/2006 - Created
*
* Copyright (c) Oracle, 2006
*
* This unpublished material is proprietary to Oracle.
* All rights reserved. The methods and
* techniques described herein are considered trade secrets
* and/or confidential. Reproduction or distribution, in whole
* or in part, is forbidden except by express written permission
* of Oracle.
****************************************************************/
#ifndef __BXXXXXXX_H
#define __BXXXXXXX_H
/***************************************************************
* Table Header Inclusions
***************************************************************/
/**************************************************************
* External Business Function Header Inclusions
***************************************************************/
/**************************************************************
* Global Definitions
**************************************************************/
/**************************************************************
* Structure Definitions
**************************************************************/
/***************************************************************
* DS Template Type Definitions
**************************************************************/
/***************************************************************
* Source Preprocessor Definitions
**************************************************************/
#if defined (JDEBFRTN)
#undef JDEBFRTN
#endif
#if defined (WIN32)
#if defined (WIN32)
#define JDEBFRTN(r) __declspec(dllexport) r
#else
#define JDEBFRTN(r) __declspec(dllimport) r
#endif
#else
#define JDEBFRTN(r) r
#endif
/**************************************************************
* Business Function Prototypes
***************************************************************/
JDEBFRTN (ID) JDEBFWINAPI GenericBusinessFunction
(LPBHVRCOM lpBhvrCom,
LPVOID lpVoid,
LPDSDXXXXXXXX lpDS);
/**************************************************************
* Internal Function Prototypes
**************************************************************/
#endif /* ___BXXXXXXX_H */