I know that!  The code I used is like this:
         index = 0;
         while(DmFindResourceType(dbP, 'JUNK', index) != 0xFFFF) {
               MSG(_("JUNK: %d found.\n", index));
               index++;
         }

I am passing the typeIndex to look for it.

Now what? :)

Max

--- Keith Rollin <[EMAIL PROTECTED]> wrote:
> DmFindResourceType return the resource's index, not its ID.
> 
> -- Keith
> 
> At 4:50 PM -0800 11/28/01, Max Bian wrote:
> >--- Keith Rollin <[EMAIL PROTECTED]> wrote:
> >It is not true.  They do NOT have same resID.  I checked it with
> >DmFindResourceType.
> >
> >Max
> >
> >>  The documentation (as you quoted it) seems accurate: a new resource
> >>  with the given type and ID *is* added.  All the resources will have
> >>  the same type and ID.  Not very useful, but the documentation you
> >>  quoted doesn't say you can't do it.
> >>
> >>  BTW, at least in Palm OS 3.5, Debug ROMs will display an error dialog
> >>  if you add so-called "duplicated resources".
> >>
> >  > -- Keith
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to