home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.smalltalk
- Path: sparky!uunet!mcsun!Germany.EU.net!news.uni-bielefeld.de!aixrs0!hp06c!koeppen
- From: koeppen@hp06c.sonne.informatik.uni-essen.de (Eckhart Koeppen)
- Subject: ST V/PM problem using DLLs
- Sender: newsadm@aixrs0.hrz.uni-essen.de
- Message-ID: <1993Jan21.143717.30225@aixrs0.hrz.uni-essen.de>
- Date: Thu, 21 Jan 1993 14:37:17 GMT
- Reply-To: koeppen@hp06c.informatik.uni-essen.de (Eckhart Koeppen)
- Nntp-Posting-Host: hp06c.informatik.uni-essen.de
- Organization: University of Essen, Germany
- Lines: 33
-
- I have been trying to build a DLL and call some functions from ST V/PM but
- the thing won't work. Here is the code:
-
- test.c:
-
- void empty(void) asm ("empty"); /* used here to tell gcc 2.1 not to produce */
- /* underscores */
-
- void empty(void)
- {
- }
-
- test.def:
-
- LIBRARY TEST
- EXPORTS empty
-
- The DLL is interfaced through the class TestDLL (subclass of PMHandle).
- The class has only one method named fileName which returns 'TEST'. The
- only instance method is called empty and looks like this:
-
- empty
- "calls the C function empty"
- <api: empty none>
- ^self invalidArgument
-
- Though I tried several variations (dropping the asm in the declaration of
- test.c: (compiled with gcc 2.1)
- The DLL compiles fine and it is no problem to open it with TestDLL open,
- but any invocation of the method empty results in an error message.
- Any help would be appreciated,
-
- Eckhart
-