As somebody already pointed out to you, the iconP member is not
populated by the call to  SysCreateDataBaseList.
You will have to find the resource for the application icon yourself.
As I've already said (except you've chaged the name of the thread since
then!)
But here's what I suggested...
I'd suggest writing a function that you pass the creator id, the
function will need to open the application database and find a resource
of type 'tAIB' with an ID of 1000.
If it doesn't find it in the 'appl' database, search for an 'ovly'
database with the same creator ID and it will most likely be in there.
The function will return a bitmap pointer which you then draw with
WinDrawBitmap.
Hope this helps
John Sutton


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Durgesh
Trivedi
Sent: 27 September 2006 11:01
To: Palm Developer Forum
Subject: winBitmap

        
I m retriving the bit map pointer like this

status = SysCreateDataBaseList('appl', 0,&dbCount, &dbListIDsH,true);

dbListIDsP = (SysDBListItemType*)MemHandleLock (dbListIDsH); if (status
== true && dbCount > 0) { for (counter = 0; counter < dbCount;
counter++) { if( StrCompare(dbListIDsP[counter].name,Item) == 0 )
creator=dbListIDsP[counter].creator; iconP= dbListIDsP[counter].iconP; }
And then using WinDrwDitmap(iconP,10,10) i m trying to draw that bit map
on my frm bt it giving message invalid pointer .
Is it means iconP=dbListIDsP[counter].iconP; not giving the value so
some thing esle wrong here. i even try this way

win =WinCreateBitmapWindow(iconP,&err);
WinSetDrawWindow(win);
WinDrawBitmap(iconP,10,10);
it has the same problem.
So any can tell me where i m wrong.
Reply
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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

Reply via email to