home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3770 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.3 KB  |  54 lines

  1. Path: sparky!uunet!mcsun!Germany.EU.net!uniol!tpki.toppoint.de!feki!marten
  2. From: marten@feki.toppoint.de (Marten Feldtmann)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Q: Using Smalltalk/V-PM and IBM C Set/2
  5. Distribution: world
  6. Message-ID: <712014481snx@feki.toppoint.de>
  7. Date: Fri, 24 Jul 92 21:48:01 GMT
  8. Organization: Private Site
  9. Lines: 43
  10.  
  11. I've some problems using IBM C Set/2 and Smalltalk-V/PM together:
  12.  
  13.  I would like to call a self-made dll-routine from Smalltalk. Well the
  14. test-dll, shown in the second book of Digitalk works ok, but now we come
  15. to the first own routine and nothing works:
  16.  
  17.  Therefore two questions:
  18.  
  19.  a) I would like to give a string to the dll, but how could this be
  20. done. Float, Integers -- everything works, but how about strings:
  21.  
  22.  Code from Smalltalk:
  23.  
  24. callWithString: aString
  25.  
  26.  < api: 'TESTROUTINE' struct short >
  27.  
  28.  Code from 'C'
  29.  
  30. #include "objects.h"
  31.  
  32. ...
  33.  
  34. short _Far16 _Pascal TESTROUTINE( recvr)
  35. struct object * _Far16 recvr;
  36. {   return recvr->header.ObjectSize;
  37. }
  38.  
  39.  ... but with calling .....
  40.  
  41.  TestLibrary callWithString: 'Hello'   Smalltalk terminates .. :-(
  42.  
  43.  Could someone show me an example for this problem?
  44.  
  45.  b) What is the stuff about the fixed pointers found in "fixdptrs.h"?
  46.  
  47.  MF
  48.  
  49.  
  50. --
  51. Marten Feldtmann                         E-Mail: marten@tpki.toppoint.de
  52. 2300 Kiel 14,    Kieler Str. 29,   Tel.: 0431-731916,   FAX: 0431-737677
  53.  
  54.