I have tried to compile the source written with Prc-tools in CodeWarrior7.0.
I have install the PilRC plug-in in CodeWarrior.
So, I got UI.r file..

but, One type of error occurred in a file...

Error : illegal type


This is a part of the source that error happens

********************************************************************
static UInt32 ViewMovieFrameByIndex(UInt16 offset)
{
 MemPtr recP;
 UInt16 index;
 MemPtr imageP;
 BitmapType* bitmapP;
 MemPtr bitsP;
 UInt32 result;

 result = CurrentFrameUID;

 // Create Palm OS bitmap from record
 bitmapP = BitmapCreate(&bitsP, ScreenDepth, bcPreviewBitmap);

 CurrentFrameIndex = offset;
 CurrentFrameUID = FrameUIDListP[offset];

 if (CurrentFrameUID)
 {
  DmFindRecordByID(MovieDB, CurrentFrameUID, &index);
  recP = MemHandleLock(DmQueryRecord(MovieDB, index));

////////////////////////////////////////////////////////////////////////////
//
This is a error line...
  imageP = recP+sizeof(MovieFrameType);
////////////////////////////////////////////////////////////////////////////
//
  MemMove(bitsP, imageP, BitmapSize);
  MemPtrUnlock(recP);
 }
 else
 {
  recP = MemHandleLock(DmQueryRecord(ImageDB, CurrentRecord));
  imageP = recP;//+sizeof(ImageTypePtr);
  MemMove(bitsP, imageP, BitmapSize);
  MemPtrUnlock(recP);
 }

 ***********************************************************************

MovieFrameType is a struct defined in a header file that is referenced by
this file.
I have changed the source like this..

imageP = recP+9;

but.. error is the same..
so,

imageP = recP;

In this time, error has gone....!!

Why....?
please help me... I'm novice in C and palm programming...

Thanks in advance...





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