I want to replace my app icon with a custom bitmap.
I have a 22x22 bitmap created. i can get the bits to the bitmap but
after writing to the app it crashes when the launcher tries to draw it.

here is my code

  myRecord = DmGet1Resource ('tAIB', 1000);
  if (myRecord)
  {
   recSize = (MemHandleSize(myRecord));
   p = MemHandleLock (myRecord);
   if (p)
   {
DmWrite (p, header, (void*)bits, recSize); MemHandleUnlock(myRecord);
    DmReleaseResource(myRecord);
   }
  }

thanks





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

Reply via email to