home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4687 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.2 KB  |  28 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!news.ans.net!nynexst.com!andreasg
  3. From: andreasg@nynexst.com (Andreas Girgensohn)
  4. Subject: Communication between 1.3 and 2.0 programs
  5. Message-ID: <1992Sep2.224925.16850@nynexst.com>
  6. Sender: news@nynexst.com (For News purposes)
  7. Organization: Nynex Science and Technology
  8. Date: Wed, 2 Sep 92 22:49:25 GMT
  9. Lines: 17
  10.  
  11. I have two 1.3 programs that communicate through semaphores and shared memory.
  12. These programs run under 2.0 without problems.  I would like to replace one of
  13. these programs by a 2.0 program (compiled with emx) without making any changes
  14. to the other.  I tried putting the calls for creating semaphores and
  15. allocating memory into a DLL compiled under 1.3.  I used this library under
  16. 2.0 (by creating an import file for a library similar to libos2.a) but I get a
  17. segmentation fault when I call one of the functions in the library from my 2.0
  18. program.  This is the header for the first function:
  19.  
  20. ULONG EXPENTRY init_fe ()
  21.  
  22. Does anybody know how I can use a 1.3 DLL in a 2.0 program or whether there is
  23. another way to use 1.3 semaphores and shared memory in a 2.0 program?
  24.  
  25. Any help will be appreciated.
  26.  
  27. Andreas
  28.