home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tlx501.zip
/
SRC
/
LIBMAIN.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-05
|
1KB
|
61 lines
/* $Id$
**
** Copyright (C) 1994 Tarma Software Research. All rights reserved.
**
** FILE: libmain.c
**
** PROJECT: Tarma Library for C++
**
** CONTENTS: Implementation of LibMain() for Windows 3.x DLL
**
** AUTHOR: Ron van der Wal
**
** COMMENTS: This file should go into its own DLL. It should not be put
** in the normal TLX library.
**
** $Log$
*/
//----- System headers
#include <stdio.h>
#define STRICT
#include <windows.h>
//----- Library headers
#include <tlx\501\tlx.h>
/* Assume far data pointers throughout */
#ifndef _DATA_FAR
#error This code requires FAR data throughout
#endif
#pragma argsused
#ifdef __TURBOC__
extern _floatconvert;
#pragma extref _floatconvert
#else
#error You might need to insert a floating point reference here
#endif
/*-------------------------------------------------------------------------*/
extern "C" int FAR PASCAL LibMain(
HINSTANCE hInstance,
WORD wDataSeg,
WORD cbHeapSize,
LPSTR lpCmdLine)
/*
DLL entry function. Initializes the resources used by the DLL.
*/
{
if (cbHeapSize > 0)
UnlockData(0);
return 1;
}