home *** CD-ROM | disk | FTP | other *** search
- #include <string.h>
- #include <windows.h>
-
- short FAR PASCAL _export DllStrEntryFunction(LPSTR param, LPSTR var)
- {
- strcpy(var, "Hallo, hier ist die DLL-Funktion!");
- return(0);
- }
-
- short FAR PASCAL _export DllNumEntryFunction(LPSTR param, double FAR *var)
- {
- *var = 9999;
- return(731);
- }
-
- int FAR PASCAL LibMain(HANDLE hInstance, WORD wDataSeg, WORD wHeapSize, LPSTR lpszCmdLine)
- {
- if (wHeapSize > 0) UnlockData(0);
- return(1);
- }
-