CFbsBitmap::StoreL
| Wed, 2006-11-08 18:37 | |
|
|
Hi,
I probably have a petty question: I'm trying to use CFbsBitmap::StoreL function to create a mbm file, but I 'm not able to understand why my StoreL function declaration doesn't match with CFbsBitmap::StoreL declaration StoreL declaration: Code: CFbsBitmap::StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]); My code: Code: _LIT(mbmfile,"C:\\mbmfile.mbm"); const TBufC<14> *aSource[8]; TInt32 aSourceIds[8]; TInt FrameNum=ImageDecoder->FrameCount(); CFbsBitmap::StoreL(mbmfile, FrameNum, aSource, aSourceIds);  Here I've a "doesn't match" error compiling Thanks in advance for any help! |






Forum posts: 1233
youd need an array of TDesC* in some way.
I'm not sure really what StoreL expects in that array, maybe you can use RBuf instead.
But that is the reason for the compilation error at least.
Forum posts: 85
I've tried to use RBuf16 which, in effect, inherit from TDesC and in the sdk is specified that it can be passed to any function that is prototyped to take a TDesC16 type (like StoreL), but I always have the same problem compiling
...
_LIT(frame8, "C:\\frame8.bmp");
RBuf16 aSourceBuffer[8];
aSourceBuffer[0].Create(frame1);
...
aSourceBuffer[7].Create(frame8);
const RBuf16 *aSource[8];
aSource[0]=&aSourceBuffer[0];
...
aSource[7]=&aSourceBuffer[7];
TInt32 aSourceIds[8];
TInt FrameNum=ImageDecoder->FrameCount();
_LIT(mbmfile,"C:\\mbmfile.mbm");
CFbsBitmap::StoreL(mbmfile, FrameNum, aSource, aSourceIds);
Thanks
Forum posts: 672
const TBufC<14> aSource[8];
TInt32 aSourceIds[8];
TInt FrameNum=ImageDecoder->FrameCount();
CFbsBitmap::StoreL(mbmfile, FrameNum, &aSource, aSourceIds);
Forum posts: 85
I tried but the there's the same problem too!!!
I also tried with RBuf16 like :
_LIT(mbmfile,"C:\\mbmfile.mbm");
TInt32 aSourceIds[8];
TInt FrameNum=ImageDecoder->FrameCount();
CFbsBitmap::StoreL(mbmfile, FrameNum, &aSource, aSourceIds); Here I've a "doesn't match" error compiling
... but nothing
I' m on the horns of a dilemma!!!
Forum posts: 672
http://www.google.com/codesearch?q=+CFbsBitmap+StoreL+show:ZO1ltV-pHk8:PJuT_oRhvCU:jzcZTTQ_E3A&sa=N&cd=1&ct=rc&cs_p=http://kotisivu.mtv3.fi/Applari/ege_sources.zip&cs_f=ege/ege3d/src/orange.cpp#a0
Forum posts: 85
Bye, Luca
Forum posts: 106
hi Luca
Please tell me how i can pass the parameters to CFbsBitmap::StoreL() function specially const TDesC *aSources[].
regards
Himanshu
Forum posts: 286
I donno whether you are still looking for solution. if you are, then out this link http://discussion.forum.nokia.com/forum/archive/index.php/t-72040.html
Cheers,
Sri
Forum posts: 85
This is the solution:
Cheers