Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!news.mathworks.com!news.kei.com!nntp.coast.net!col.hp.com!news.corp.hp.com!isonews.bbn.hp.com!news.sweden!hpwin055.uksr!hplb!gw
From: gw@hplb.hpl.hp.com (Gunther Walther)
Subject: Re: DLL/C connect with Windows 95
Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
Message-ID: <Dnw6An.J93@hplb.hpl.hp.com>
Date: Thu, 7 Mar 1996 09:56:47 GMT
References: <DnuEJr.DxE@inter.NL.net>
Nntp-Posting-Host: gwalther.hpl.hp.com
Organization: Hewlett-Packard Laboratories, Bristol, England
X-Newsreader: TIN [version 1.2 PL0.7]
Lines: 18

sbock@mc.mey.nl wrote:
: Can anybody help out with the next problem..

: and I tested with:
: whoAmI
: | userName nameLenght |
: userName :=  (String new: 5 ) gcCopyToHeap.
: nameLenght := 5 gcCopyToHeap.
: self GetUserNameW: userName  with: nameLenght.
: Dialog confirm: 'Username: ', userName printString, ' length: ',
: nameLenght printString

: The Dialogbox print the message:'Username: a CPointer length:
: aCPointer'.

Have you tried derefering the pointer with message "contents"?

gunther
