home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBCursor / export.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  3.5 KB  |  79 lines

  1. //***********************************************************************************
  2. //    export.h
  3. //    High Tech BASIC, Copyright (C) TransEra Corp 1987 - 2002, All Rights Reserved.
  4. //***********************************************************************************
  5.  
  6. #ifndef __EXPORT_H
  7. #define __EXPORT_H
  8.  
  9. #ifndef DLLEXPORT
  10. #define DLLEXPORT __declspec(dllimport)
  11.  
  12.     // If this file is being used in a DLL that does not use the Windows definitions, then
  13.     // define this so the Windows-type variables wont cause the compiler to generate
  14.     // "undefined type" errors.
  15.     #ifndef    _WINDLL
  16.     #define WINDOWS_NOT_DEFINED
  17.     #endif    // not a windows DLL
  18.  
  19. #endif    // DLLEXPORT not defined
  20.  
  21.  
  22.  
  23. //**********************************************************************************
  24. // events used for SetExportFunction
  25.  
  26. #define L_BTN_DOWN        0    // CPoint *
  27. #define L_BTN_UP        1    // CPoint *
  28. #define R_BTN_DOWN        2    // CPoint *
  29. #define R_BTN_UP        3    // CPoint *
  30. #define M_BTN_DOWN        4    // CPoint *
  31. #define M_BTN_UP        5    // CPoint *
  32. #define MOUSE_MOVE        6    // CPoint *
  33. #define CLEAR_SCREEN    7    // NULL
  34. #define ON_DRAW            8    // HDC
  35.  
  36. //***********************************************************************************
  37.  
  38. extern "C"
  39. {
  40.  
  41. //***********************************************************************************
  42. // Non-Windows Prototypes
  43. DLLEXPORT void Disp(char * pMsg, bool bOption = true);    // print string on display line
  44. DLLEXPORT int Signal(int SignalNum);                    // exported SIGNAL Statement
  45. DLLEXPORT bool CheckInt();                                // check for basic clear i/o or reset
  46. DLLEXPORT int PutBuffer(void * pIOPath, char * pData, bool bOption = false);    // place null terminated string into buffer
  47. DLLEXPORT int GetBuffer(void * pIOPath, char * pData, long Length);        // read string data from buffer
  48. DLLEXPORT void Interactive(bool bOption);                // see HTBasic Suspend Interactive and resume interactive command
  49. DLLEXPORT void RefreshScreen();
  50. // end Non-Windows prototypes
  51. //***********************************************************************************
  52.  
  53.  
  54. #ifndef    WINDOWS_NOT_DEFINED        // These variables and functions must have all the windows definitions to be valid.
  55. //***********************************************************************************
  56. // Windows Variables
  57. extern DLLEXPORT HWND g_hBasicWindow;                // exported global WINDOW HANDLE
  58. extern DLLEXPORT HWND g_hBasicFrameWindow;            // exported global WINDOW HANDLE
  59. extern DLLEXPORT HCURSOR g_hBasicCursor;            // exported global POINTER TO CURSOR HANDLE
  60. // end Windows Variables
  61. //**********************************************************************
  62. // Windows Prototypes
  63. DLLEXPORT void GetBasicEvents(LPHANDLE ResetEvent, LPHANDLE ShutdownEvent);    // Basic events for reset and shutdown
  64. DLLEXPORT void Registerthread(LPHANDLE phEvent);    // register event so Basic will wait on shutdown
  65. DLLEXPORT void Unregisterthread(LPHANDLE phEvent);    // call this to unregister your thread
  66. DLLEXPORT CWinApp * GetBasicApp();                    // get pointer to basic app
  67. DLLEXPORT void SetBasicCursor(char * pCursor);        // set standard cursors
  68. DLLEXPORT void SetExportFunction(USHORT Event,void * pFunction);    // hand Basic a function to call on an event
  69. // The following function should only be called from the basic thread.
  70. DLLEXPORT HBITMAP GetBasicBitmapHandle();            // get handle to the basic window bitmap
  71. // end Windows prototypes
  72. //***********************************************************************************
  73.  
  74. #endif    // WINDOWS_NOT_DEFINED
  75.  
  76. }    // end extern "C"
  77.  
  78. #endif // ifndef-define __EXPORT_H
  79.