Hi all 
Anybody gone through the sample Signature++-1 which converts a signature into a bitmap 
and then stores it in a database?Kindly help. The sample creates an offscreen window 
to copy the bits bound by the gadget and then copies the gadget's screen rectangle 
into the new window. It then allocates the bitmap and sets all the important bits of 
information. 
The sample is using some member variables of Window Type structure which are not 
probably supported. like: 
WinHandle theWindowHandle; 
theBitmapPtr->height = theWindowHandle->gDeviceP->height; 
theBitmapPtr->rowBytes = theWindowHandle->gDeviceP->rowBytes; 
etc. 
theWindowHandle is of type WinHandle. The document describes WinHandle as: typedef 
WindowType * WinHandle; 
and WindowType structure nowhere has member like gDeviceP. 
The compiler barfs at gDeviceP saying unidentified identifier( obviously) 
I have replaced the gDeviceP with bitmapP , but have run into memory problems where 
the program tries to move the offscreen bits into the bitmap. 
// Move the offscreen bits into our bitmap. The baseAddr field 
// contains the bit array of our bitmap for 1-bit, uncompressed //bitmaps. 

MemMove( (MemPtr)((UInt32)(theBitmapPtr) + sizeof(BitmapType)), 
theWindowHandle->gDeviceP->baseAddr, theRowBytes * theHeight ); 
// I have replaced theWindowHandle->gDeviceP->baseAddr with theWindowHandle->bitmapP 
but the error says that Application has just read directly from memory location which 
is in an unallocated chunk of memory 
How do I get the Base address of the bitmap ( or bit array of the bitmap) 

PS : I am using ver PalmOS 3.2 
thanks a lot 
Vijay

____________________________________________________
Buy Feng Shui Package for Rs. 151/- only, at 
http://shopping.rediff.com/shopping/fengshui_mailer.htm




-- 
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