home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!uniol!tpki.toppoint.de!feki!marten
- From: marten@feki.toppoint.de (Marten Feldtmann)
- Newsgroups: comp.os.os2.programmer
- Subject: Q: Using Smalltalk/V-PM and IBM C Set/2
- Distribution: world
- Message-ID: <712014481snx@feki.toppoint.de>
- Date: Fri, 24 Jul 92 21:48:01 GMT
- Organization: Private Site
- Lines: 43
-
- I've some problems using IBM C Set/2 and Smalltalk-V/PM together:
-
- I would like to call a self-made dll-routine from Smalltalk. Well the
- test-dll, shown in the second book of Digitalk works ok, but now we come
- to the first own routine and nothing works:
-
- Therefore two questions:
-
- a) I would like to give a string to the dll, but how could this be
- done. Float, Integers -- everything works, but how about strings:
-
- Code from Smalltalk:
-
- callWithString: aString
-
- < api: 'TESTROUTINE' struct short >
-
- Code from 'C'
-
- #include "objects.h"
-
- ...
-
- short _Far16 _Pascal TESTROUTINE( recvr)
- struct object * _Far16 recvr;
- { return recvr->header.ObjectSize;
- }
-
- ... but with calling .....
-
- TestLibrary callWithString: 'Hello' Smalltalk terminates .. :-(
-
- Could someone show me an example for this problem?
-
- b) What is the stuff about the fixed pointers found in "fixdptrs.h"?
-
- MF
-
-
- --
- Marten Feldtmann E-Mail: marten@tpki.toppoint.de
- 2300 Kiel 14, Kieler Str. 29, Tel.: 0431-731916, FAX: 0431-737677
-
-