×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    10

    Changes of .loc file don't take effect?

    I'm now working on HelloworldBasic example and trying to modify some strings in .loc file.
    It seems that after changing the words in .loc file, the programe runs in emulator works the same as before:
    e.g.:
    #define qtn_hewb_command1_text "Hello!"
    ->
    #define qtn_hewb_command1_text "Hello!cmdtext"

    then the popup dialog is still "hello"

    anything is wrong with my operations?

  2. #2
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: Changes of .loc file don't take effect?

    You don't mention what dev tools you use but if you use some IDE, there are limitations in that the IDE does not "understand" the connection between the loc file and the build target so a build will not try to rebuild those. Try the Rebuild option to force a total rebuild.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    10

    Re: Changes of .loc file don't take effect?

    Thanks mitts.

    I'm using Carbide.c++ express and there's no "rebuild" option.. I've tried "clean" and there's no effect.

  4. #4
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Changes of .loc file don't take effect?

    hi,

    use the command "abld resource"

    and check whether the resource files are updated and recompiled or not.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    10

    Re: Changes of .loc file don't take effect?

    where's the abld command? I can't find it since carbide doesn't generate "group" directory.

  6. #6
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: Changes of .loc file don't take effect?

    For a full rebuild in Carbide.c++, select the project, right-click, select Rebuild project. Does that improve your situation?

  7. #7
    Registered User
    Join Date
    Jul 2006
    Posts
    15

    Re: Changes of .loc file don't take effect?

    Just reimport MMP and DO Remove all object code..Then build again

  8. #8
    Registered User
    Join Date
    Jun 2004
    Posts
    10

    Re: Changes of .loc file don't take effect?

    Quote Originally Posted by mitts
    For a full rebuild in Carbide.c++, select the project, right-click, select Rebuild project. Does that improve your situation?
    seems it's no use..

  9. #9
    Registered User
    Join Date
    Jun 2004
    Posts
    10

    Re: Changes of .loc file don't take effect?

    Quote Originally Posted by Sandeep_LnT
    Just reimport MMP and DO Remove all object code..Then build again

    that way is tooooo complicated...I don't wanna reimport every time I change a single string...

    still thanks to you.

  10. #10
    Registered User
    Join Date
    May 2005
    Location
    Indonesia
    Posts
    198

    Re: Changes of .loc file don't take effect?

    Have you close your emulator when rebuilding/runnning the application?

  11. #11
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: Changes of .loc file don't take effect?

    OK, now I think I found the issue.

    At least when I import the S60 2nd Edition FP3 sample, the Import incorrectly adds on of the Include directories to point to the SDK example directory, not the actual project. To fix this, go to the project Properties -> C/C++ Build -> 2.8 Emulator debug -> System options. There you will find an include directory of the form: "C:\Symbian\8.1a\S60_2nd_FP3\Series60Ex\helloworldbasic\data". This will make the build look for the include stuff in the SDK directory (where the example was copied form) and not in the project (where you have edited).

    Now change the include to something like: "C:\YourWorkspace\HelloWorldBasic\data" and finally it should start recognizing changes (I hope).

  12. #12
    Registered User
    Join Date
    Dec 2005
    Location
    Treviso - Italy
    Posts
    35

    Re: Changes of .loc file don't take effect?

    Quote Originally Posted by mitts
    For a full rebuild in Carbide.c++, select the project, right-click, select Rebuild project. Does that improve your situation?
    No, it doesn't. Same problem here. I lost hours because I thought it was a problem with the resources. Then reading the docs they say that one can modify the .loc on the fly, without recompiling the project. It doesn't work like that to me. But still, all docs refer to codewarrior (wasn't Carbide the one to be officially supported by Nokia??). Anyhow, is there any other (fast) workaround?

  13. #13
    Registered User
    Join Date
    Dec 2005
    Location
    Treviso - Italy
    Posts
    35

    Re: Changes of .loc file don't take effect?

    Quote Originally Posted by mitts
    Now change the include to something like: "C:\YourWorkspace\HelloWorldBasic\data" and finally it should start recognizing changes (I hope).
    That didn't work either. Actually it has complitely messed up the configuration. I can't compile anymore, I get plenty of errors. Not too bad, I am restarting from scratch. After all is only an example...

    [edit]

    No, you were right. I managed to make it working using the following include paths directories:

    "${ProjDirPath}\inc"
    "${ProjDirPath}\data"
    "C:\Symbian\8.1a\S60_2nd_FP3\Series60Ex\helloworldplus\data"

    As far as I remember, removing the "C:\Symbian\8.1a\S60_2nd_FP3\Series60Ex\helloworldplus\data" it gets problems compiling the *.rsc file. Well, I hope now I am over with the bug of the tool, and I can finally start to learn something about Symbian C++ programming (sorry, but the last two days have been very frustrating. First the spaces in the workspace directory's bug, then the one if the workspace is in a second drive, now this. I was goignt to throw everything in the toilet. Is Nokia going to fix anything in the future releases?).

    Thanks for the hint anyway.
    Last edited by michelasso; 2006-08-15 at 10:20.

  14. #14
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: Changes of .loc file don't take effect?

    Hi,

    Still want to stress that this

    "C:\Symbian\8.1a\S60_2nd_FP3\Series60Ex\helloworldplus\data"

    will pick up the "Include" files from the SDK subdir when you compile. Depending on order of includes, you might or might not get the file in your project "/data" directory to be the included file.

    If you still need the above line to compile it means that you have not moved all relevant files into your Eclipse project (Import only picks up files that are referenced from the bld.inf/.mmp file). In this case check what "orphan files" you still have in the above SDK directory, move them to your project (using Import->File system) and then remove the Include that points into the SDK. Now any edits in the project should have the desired effect (provided you do a full Rebuild).

  15. #15
    Registered User
    Join Date
    Dec 2005
    Location
    Treviso - Italy
    Posts
    35

    Re: Changes of .loc file don't take effect?

    Yes, I was going to test it as well. But since I managed to make everything working as it should, I was not in the mood to test my patience again with more possible bugs. As they say:

    If it works do not fix it... ;-)

    But I will try another day, just for compliteness. Thanx.

    Ciao,
    Michele

Similar Threads

  1. How to edit resource file (.rss) in CW 3.1
    By madsum in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 8
    Last Post: 2009-01-16, 15:00
  2. Downloading a Binary File using HTTP GET
    By razas in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2007-08-31, 19:53
  3. can we get the source file from jar file..
    By bb_sathya in forum Mobile Java General
    Replies: 6
    Last Post: 2005-12-28, 13:14
  4. Common problem: wrong file format "exception"
    By lukaszpl in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-05, 17:09
  5. Replies: 0
    Last Post: 2002-11-19, 08:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×