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

  1. //***********************************************************************************
  2. //    export.h
  3. //    High Tech BASIC, Copyright (C) TransEra Corp 1987 - 2001, 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. extern "C"
  23. {
  24. //***********************************************************************************
  25. // Non-Windows Prototypes
  26. DLLEXPORT void Disp(char * pMsg, bool bOption = true);    // print string on display line
  27. DLLEXPORT int Signal(int SignalNum);                    // exported SIGNAL Statement
  28. DLLEXPORT bool CheckInt();                                // check for basic clear i/o or reset
  29. DLLEXPORT int PutBuffer(void * pIOPath, char * pData, bool bOption = false);    // place null terminated string into buffer
  30. DLLEXPORT int GetBuffer(void * pIOPath, char * pData, long Length);        // read string data from buffer
  31. DLLEXPORT void Interactive(bool bOption);                // see HTBasic Suspend Interactive and resume interactive command
  32. // end Non-Windows prototypes
  33. //***********************************************************************************
  34.  
  35.  
  36. #ifndef    WINDOWS_NOT_DEFINED        // These variables and functions must have all the windows definitions to be valid.
  37. //***********************************************************************************
  38. // Windows Variables
  39. extern DLLEXPORT HWND g_hBasicWindow;                // exported global WINDOW HANDLE
  40. extern DLLEXPORT HWND g_hBasicFrameWindow;            // exported global WINDOW HANDLE
  41. extern DLLEXPORT HCURSOR g_hBasicCursor;            // exported global POINTER TO CURSOR HANDLE
  42. // end Windows Variables
  43. //**********************************************************************
  44. // Windows Prototypes
  45. DLLEXPORT void GetBasicEvents(LPHANDLE ResetEvent, LPHANDLE ShutdownEvent);    // Basic events for reset and shutdown
  46. DLLEXPORT void Registerthread(LPHANDLE phEvent);    // register event so Basic will wait on shutdown
  47. DLLEXPORT void Unregisterthread(LPHANDLE phEvent);    // call this to unregister your thread
  48. DLLEXPORT CWinApp * GetBasicApp();                    // get pointer to basic app
  49. DLLEXPORT void SetBasicCursor(char * pCursor);        // set standard cursors
  50. // The following function should only be called from the basic thread.
  51. DLLEXPORT HBITMAP GetBasicBitmapHandle();            // get handle to the basic window bitmap
  52. // end Windows prototypes
  53. //***********************************************************************************
  54.  
  55. #endif    // WINDOWS_NOT_DEFINED
  56.  
  57. }    // end extern "C"
  58.  
  59. #endif // ifndef-define __EXPORT_H
  60.