how to run a console application built for emulator?
| Sun, 2007-08-05 16:21 | |
|
hi, guys, I am a new comer to Symbian OS programming. Got trouble trying to run the HelloWorld.exe example. Thanks in advance! -- Li |
|
| Sun, 2007-08-05 16:21 | |
|
hi, guys, I am a new comer to Symbian OS programming. Got trouble trying to run the HelloWorld.exe example. Thanks in advance! -- Li |
|
Forum posts: 6
I think I've got the answer by myself.
Just run the .exe directly, instead of running epoc
Forum posts: 463
its more like a stop-gap solution than a correct one!!
I would say for your problem of not finding your application in the installed folder : check your registration file.
Forum posts: 6
Thanks for the reply!
The program I tried to run is from the SDK's example, do you mean the example have something wrong?
Since I am pretty new to symbian OS, can you tell me which one is the registration file?
Forum posts: 463
Guess you are talking about S60 2nd FP3. I dont know about that edition really, but in third edition for example if you are talking about helloworld, there would be Helloworldbasic_reg.rss in the data folder. You have to check for any relevant things for your edition(???am not sure like i said of 2nd ed)
Edit: But I thought 2nd edition had an app not an exe. So what edition are you talking really..3rd edition??...
Forum posts: 6
S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 1
I guess this is the full name
Forum posts: 463
I was confused with your first post which said
For S60 3rd ed FP1 it might have the same helloworldbasic_reg.rss kind of file in the data folder. Check if that registration file for your application is there.
Forum posts: 6
Failed to find that file....
Forum posts: 463
you have to write it yourself then.
For the simple helloworldbasic from the example in the sdk, it looks something like this :
#include "Helloworldbasic.rls"
#include <appinfo.rh>
#include <Helloworldbasic.rsg>
UID2 KUidAppRegistrationResourceFile
UID3 0xA000017F
RESOURCE APP_REGISTRATION_INFO
{
app_file="HelloWorldBasic";
localisable_resource_file = STRING_helloworldbasic_loc_resource_file_1;
localisable_resource_id = R_HELLOWORLDBASIC_LOCALISABLE_APP_INFO;
embeddability=KAppNotEmbeddable;
newfile=KAppDoesNotSupportNewFile;
}
Write one which suits your needs making appropriate changes in the above.
Also I would suggest you to go through a few 'getting started' articles available on newlc, forum nokia sites...helps a lot to understand why codes are the way they are.
Forum posts: 463
Also remember to make changes in the mmp to reflect the same like :
START RESOURCE HelloWorldBasic_reg.rss#ifdef WINSCW
TARGETPATH \private\10003a3f\apps
#else
TARGETPATH \private\10003a3f\import\apps
#endif
END //RESOURCE
Forum posts: 6
Thanks very much for your help!
I guess there are a lot of things I should take a look.
Forum posts: 285
Why is that _reg.rss file should go under \private\10003a3f\import\apps for target other than winscw? According to me the path will be same (\private\10003a3f\apps) for reg files for any target. Or is it that I am missing something?
Cheers,
Sri
Forum posts: 463
I myself am using \private\10003a3f\apps for any target in my project.
I had pasted that code from the helloworldbasic example given along with the SDK in the 3rd edition MR and didnt think it necessary to change anything.
Forum posts: 26
Please put "Textshell " in your epoc.ini..so that u r able to see your console base app on emulator.
Regards,
Parag Purkar