home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / dll_make / simple.cpp < prev    next >
C/C++ Source or Header  |  1992-09-09  |  414b  |  34 lines

  1. #define  STRICT
  2. #include <windows.h>
  3. #include "simple.h"
  4.  
  5.  
  6. int FAR pascal _export SquareInt( int x )
  7. {
  8. return x*x;
  9. }
  10.  
  11.  
  12.  
  13.  
  14. #pragma argsused
  15. int FAR PASCAL LibMain( HINSTANCE hInstance,
  16.             WORD wDataSegment,
  17.             WORD wHeapSize,
  18.             LPSTR lpszCmdLine )
  19. {
  20. if ( wHeapSize != 0 )
  21.     UnlockData( 0 );
  22. return 1;  
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29. #pragma argsused
  30. int FAR PASCAL WEP ( int bSystemExit )
  31. {
  32. return 1;
  33. }
  34.