Newsgroups: comp.os.os2.programmer.misc,comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.kei.com!bloom-beacon.mit.edu!eru.mt.luth.se!news.luth.se!sunic!news.funet.fi!cs.joensuu.fi!jjarvi
From: jjarvi@cs.joensuu.fi (Jonipentti J{rvinen)
Subject: Q: What goes wrong here (DLLs that contain icons)?
Message-ID: <1995Feb3.114926.5697@cs.joensuu.fi>
Organization: University of Joensuu
Date: Fri, 3 Feb 1995 11:49:26 GMT
Lines: 30
Xref: glinda.oz.cs.cmu.edu comp.os.os2.programmer.misc:19336 comp.lang.smalltalk:20295

I'm trying to create a DLL that contains icons and use that DLL with Visual
Smalltalk (OS/2). Here's what i did:

- created icons with Iconedit
- wrote a resource script:
  ICON 10 icon1.ico
  ICON 11 icon2.ico
  ... and so on
- wrote a small C program: main() {}
- created a makefile
- ran makefile (linker gave warning:'No stack segment'

Then i tried to access DLL from Smalltalk:
| icon |
  icon:=Icon fromModule:'icons.dll' id:10.
  icon.

...and *showIt* to that. Result:nil.

What am i doing wrong?

I'm using Warp, Visual Smalltalk 3.0 and CSet++ FirstStep.

Thank you in advance,
	
	JJ
-- 
Jonipentti J{rvinen		Email: jjarvi@cs.joensuu.fi (Internet)
Department of Computer Science
University of Joensuu		Team OS/2
