home *** CD-ROM | disk | FTP | other *** search
/ Chip Multimedia 1993 January / chip_mm_1.iso / share / 20 / t1dll.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-27  |  458 b   |  21 lines

  1. #include <string.h>
  2. #include <windows.h>
  3.  
  4. short FAR PASCAL _export DllStrEntryFunction(LPSTR param, LPSTR var)
  5. {
  6.   strcpy(var, "Hallo, hier ist die DLL-Funktion!");
  7.   return(0);
  8. }
  9.  
  10. short FAR PASCAL _export DllNumEntryFunction(LPSTR param, double FAR *var)
  11. {
  12.   *var = 9999;
  13.   return(731);
  14. }
  15.  
  16. int FAR PASCAL LibMain(HANDLE hInstance, WORD wDataSeg, WORD wHeapSize, LPSTR lpszCmdLine)
  17. {
  18.   if (wHeapSize > 0)    UnlockData(0);
  19.   return(1);
  20. }
  21.