home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_tools / manythng / mnythdll.h < prev    next >
C/C++ Source or Header  |  1994-07-31  |  2KB  |  43 lines

  1. /*
  2.     Mnythdll.h -- 7-31-94, Bruce McLean
  3.  
  4.     header for manythings screen saver, includes routines:
  5.  
  6.         1) ManyDibLoad -- reads DIB files into memory
  7.         2) ManyGifLoad -- reads GIF files into memory and converting to
  8.                              DIB format
  9.         3) ManyDibWrite -- writes DIB file in memory out to a file
  10.         4) ManyDibModPalette -- adds offsets to colors in palette
  11.         5) ManyDibCyclePalette -- shifts palette entries
  12.         6) ManyLoadLogPal -- retrieves DIB palette into a LOGPALETTE
  13.                                                         structure
  14.         7) ManyDibGet -- returns pointer to DIB in memory
  15.         8) ManyDibGetData -- returns pointer to bitmap data area of DIB in memory
  16.         9) ManyDibFree -- frees memory used by DIB in memory
  17.  
  18.     Warnings --
  19.         C++ by default modifies the names of functions to add parameter type
  20.             information, to make the functions callable by Visual Basic they need
  21.             to be declared as 'extern "C"' and 'pascal _export'.  See Mnythdll.h
  22.       for example.
  23. */
  24.  
  25.  
  26. #ifndef __MANY_THINGS_H
  27. #define __MANY_THINGS_H
  28.  
  29. #include <windows.h>
  30.  
  31. extern "C" long FAR pascal _export ManyDibGetData( void );
  32. extern "C" long FAR pascal _export ManyDibGet( void );
  33. extern "C" int FAR pascal _export ManyDibFree( void );
  34. extern "C" long FAR pascal _export ManyDibInit();
  35. extern "C" long FAR pascal _export ManyDibAlloc( int width,int height );
  36. extern "C" long FAR pascal _export ManyDibLoad (const FAR char * szFileName,int FAR * width,int FAR * height);
  37. extern "C" long FAR pascal _export ManyGifLoad (const FAR char * szFileName,int FAR * width,int FAR * height);
  38. extern "C" void FAR pascal _export ManyDibModPalette(int red,int green,int blue);
  39. extern "C" void FAR pascal _export ManyDibCyclePalette(int StepSize,int LowValue,int HighValue);
  40. extern "C" void pascal _export ManyLoadLogPal (LOGPALETTE & Pal,int Start,int MaxSize,int Flags);
  41. extern "C" int FAR pascal _export ManyDibWrite (const FAR char * szFileName);
  42.  
  43. #endif // __MANY_THINGS_H