i am new.
i want to draw a graphic on the screem,but when i run the programm,it reminds me of "system error -1001".So,what's the problem?Bad image or unsupported format?i draw the graphic by using graphic-drawing tool embeded in windows,and the format is .bmp.
Can anybody help me?Thanks in advance.
er.khalid,thank you very much for your quick reply.
now,i find myself really new to this field.i have read the article about the error code.actually,i have read it before your reply.as regarded,i want to draw a graphic on the screem.now,i only add some code in the "helloworld" example.in fact,i only add a file which contains a piction in the project,and some code in the appview.cpp file,and something in the header files.my mmp file is showed as below:
/*
============================================================================
Name : JiSuanQi.mmp
Author : cheney
Copyright : Your copyright notice
Description : This is the project specification file for JiSuanQi.
============================================================================
*/
Since the error is with the code, there's no use showing the mmp file contents.
However, you mention that you are trying to show a bmp file. You are aware that you must first convert a Windows bitmap file to a Symbian bitmap before you can display it? Might this be the prolem?
Yes, you seem to have done that. The next step is then to show how you try to load that bitmap into memory and display it. Bitmaps are in mbm files, the mbg file includes the IDs of the bitmap(s) in the mbm file. There are lots of examples on how to load and draw bitmaps, have you checked them out?
Consider showing all the relevant information regarding your problem when you first post your question -- helping you out would be a lot easier and faster that way.
Thanks for all of you,my problem have been solved now.
because i do it on S60 3rd platform,someone told me to copy the mbm file to the project's privite file,and that works now.
Thank all of you again
Forum posts: 82
Hi cheney_chen,
for error code reference read below link
http://www.newlc.com/article.php3?id_article=117
your error seems to be in Resource.
error is in BAFL
KErrExtendedWithText -1001
Thanks & Regards,
Md.Khalid Ahmad
Forum posts: 15
er.khalid,thank you very much for your quick reply.
now,i find myself really new to this field.i have read the article about the error code.actually,i have read it before your reply.as regarded,i want to draw a graphic on the screem.now,i only add some code in the "helloworld" example.in fact,i only add a file which contains a piction in the project,and some code in the appview.cpp file,and something in the header files.my mmp file is showed as below:
/*
============================================================================
Name : JiSuanQi.mmp
Author : cheney
Copyright : Your copyright notice
Description : This is the project specification file for JiSuanQi.
============================================================================
*/
TARGET JiSuanQi_0xE82752BC.exe
TARGETTYPE exe
UID 0x100039CE 0xE82752BC
SOURCEPATH ..\src
SOURCE JiSuanQi.cpp
SOURCE JiSuanQiApplication.cpp
SOURCE JiSuanQiAppView.cpp
SOURCE JiSuanQiAppUi.cpp
SOURCE JiSuanQiDocument.cpp
START BITMAP JiSuanQi.mbm
HEADER
SOURCEPATH ..\res\img
SOURCE 1 plus.bmp
END
SOURCEPATH ..\data
START RESOURCE JiSuanQi.rss
HEADER
TARGET JiSuanQi_0xE82752BC.rsc
TARGETPATH resource\apps
END //RESOURCE
START RESOURCE JiSuanQi_reg.rss
TARGET JiSuanQi_0xE82752BC_reg.rsc
TARGETPATH \private\10003a3f\apps
END //RESOURCE
USERINCLUDE ..\inc
USERINCLUDE ..\help
SYSTEMINCLUDE \epoc32\include
LIBRARY euser.lib
LIBRARY apparc.lib
LIBRARY cone.lib
LIBRARY eikcore.lib
LIBRARY avkon.lib
LIBRARY commonengine.lib
LIBRARY efsrv.lib
LIBRARY estor.lib
LIBRARY aknnotify.lib
LIBRARY eikcoctl.lib
LIBRARY eikctl.lib
LIBRARY form.lib
LIBRARY uiklaf.lib
LIBRARY fbscli.lib
LIBRARY bitgdi.lib
LIBRARY etext.lib
LIBRARY gdi.lib
LIBRARY fepbase.lib
LIBRARY hlplch.lib
LANG SC
VENDORID 0
SECUREID 0xE82752BC
// End of File
SOURCEPATH ..\src
SOURCE CExtendedBitmap.cpp
so,what may be the problem with "KErrExtendedWithText -1001" as you have figured out?
Forum posts: 588
Since the error is with the code, there's no use showing the mmp file contents.
However, you mention that you are trying to show a bmp file. You are aware that you must first convert a Windows bitmap file to a Symbian bitmap before you can display it? Might this be the prolem?
Forum posts: 15
tks,Andreas,but i think i have converted the windows bitmap to a Symbian bitmap in the mmp file,i have gotten a mbg file.
Forum posts: 588
Yes, you seem to have done that. The next step is then to show how you try to load that bitmap into memory and display it. Bitmaps are in mbm files, the mbg file includes the IDs of the bitmap(s) in the mbm file. There are lots of examples on how to load and draw bitmaps, have you checked them out?
Consider showing all the relevant information regarding your problem when you first post your question -- helping you out would be a lot easier and faster that way.
Forum posts: 15
Thanks for all of you,my problem have been solved now.
because i do it on S60 3rd platform,someone told me to copy the mbm file to the project's privite file,and that works now.
Thank all of you again