home *** CD-ROM | disk | FTP | other *** search
- // ccInit.c
- // Initialisierung der Steuerelement-DLL LINE3D.VBX
-
- #define NOCOMM
- #include <windows.h>
- #include <vbapi.h>
- //Statische Daten in Headerdatei
- #define CTL_DATA
- #include "line3d.h"
-
- //Globale Variablen
- HANDLE hmodDLL;
-
- // Einsprungspunkt des Steuerelementes
- BOOL FAR PASCAL _export VBINITCC
- (
- USHORT usVersion,
- BOOL fRuntime
- )
- {
- //Formalparameter
- fRuntime = fRuntime;
- usVersion = usVersion;
- // Steuerelement(e) registrieren
- return VBRegisterModel(hmodDLL, &modelLine3d);
- }
-
- // Initialisierung der DLL
- BOOL FAR PASCAL LibMain
- (
- HANDLE hmod,
- HANDLE segDS,
- USHORT cbHeapSize
- )
- {
- //Handle der DLL merken
- cbHeapSize = cbHeapSize;
- segDS = segDS;
- hmodDLL = hmod;
- UnlockData( 0 );
- return TRUE;
- }
-
- // DLL aus dem Speicher entfernen
- VOID FAR PASCAL _export WEP
- (
- BOOL fSystemExit
- )
- {
- //Formalparameter
- fSystemExit = fSystemExit;
- }
-
-