TPLATE.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <stdlib.h>
00026 #include <stdio.h>
00027 #include <math.h>
00028 #include <windows.h>
00029
00030 #include "struct.h"
00031 #include "dstruct.h"
00032
00033 #include "tplate.h"
00034
00035 #define DESELECTED 0
00036 #define SELECTED 1
00037
00038
00039 static HWND hParent;
00040 static HINSTANCE hThisInstance;
00041
00042
00043 #if __WATCOMC__
00044 int APIENTRY LibMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00045 #else
00046 BOOL WINAPI DllMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00047 #endif
00048 switch (dwReason) {
00049 case DLL_PROCESS_ATTACH: {
00050 hThisInstance=hDLL;
00051 if(hDLL == NULL)MessageBox ( GetFocus()," NULL instance",NULL, MB_OK);
00052 break;
00053 }
00054 case DLL_PROCESS_DETACH:
00055 break;
00056 }
00057 return TRUE;
00058 }
00059
00060 BOOL _Xmodeler
00061 (HWND parent_window,HWND info_window,X__STRUCTURE *lpevi){
00062 lpEVI=lpevi;
00063 hParent=parent_window;
00064 MessageBox(hParent,"Template for external modellers"," ",MB_OK);
00065 return TRUE;
00066 }