🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pilot.programmer.codewarrior
Article #47

getting the number of items in a resource

#47
From: John Shehata
Date: Tue, 31 Jul 2001 21:47
22 lines
1622 bytes
Hi,

I am trying to get the number of items in a Str Resource that i have, but
have not been able to pull it off. Below is what i am using. I want to get
the number of items in DueDtAppInfoStr.

// loading the data into my list
stringH = DmGetResource('tAIS', DueDtAppInfoStr);
duedt = (char *) MemHandleLock(stringH);

// here is how i am trying to do this...
numChoices = sizeof(stringH)

acnoholds = SysFormPointerArrayToString(duedt, numChoices);

Any Help would be greatly appreciated.

--
-John
AOL IM: tut00
ground-0-zero software engineering
http://www.ground-0-zero.com
Technical Details
Message-ID: <CziK4pgGBHA.2152@server2.massena.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.uchicago.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!server2.massena.com

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d41,61ff5c0e19189aeb,start
X-Google-Attributes: gid109d41,public
X-Google-Thread: 10c638,61ff5c0e19189aeb,start
X-Google-Attributes: gid10c638,public
X-Google-Thread: 10baa0,61ff5c0e19189aeb,start
X-Google-Attributes: gid10baa0,public
X-Google-ArrivalTime: 2001-07-31 14:56:06 PST
From: "John Shehata" <jshehata@ground-0-zero.comNOJUNK>
Subject: getting the number of items in a resource
Date: Tue, 31 Jul 2001 17:47:29 -0400
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <CziK4pgGBHA.2152@server2.massena.com>
Newsgroups: pilot.programmer.codewarrior,pilot.programmer,codewarrior.palm
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.uchicago.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!server2.massena.com
NNTP-Posting-Host: 206.232.172.20