×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    39

    What macro can I use in .rss file ?

    When I add the following codes in my .rss file,
    it seems like __WINSCW_ is never been defined even though
    WINSCW UDEB is chosen to be the target environment in CodeWarrior.So "some codes B" in .rss is always been compiled rather than "some codes A."

    = = = = = = = = = = = = = = = = =
    #ifdef __WINSCW__
    // some codes A
    #else
    // some codes B
    #endif
    = = = = = = = = = = = = = = = = =

    However in .h files and .cpp files, by switching between WINSCW UDEB and GCCE UREL, __WINSCW__ can be defined or not accordingly.

    So what macro can I use to get the correct effect?
    Thanks in advance!

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: What macro can I use in .rss file ?

    try

    #ifdef __WINS__

    this works to differentiate b/t emulator and device....

    hope this helps !
    Amit Kankani
    Nokia Developer Champion

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    39

    Re: What macro can I use in .rss file ?

    I have tried __WINS__ before but it does not work in .rss as well.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: What macro can I use in .rss file ?

    I do not know a nice way neither (abld -v shows no defines except the language when the resources are built) however you can try something like this:
    Code:
    // in the .mmp file
    #ifdef WINS
    USERINCLUDE ../incwins
    #else
    USERINCLUDE ../incnotwins
    #endif
    
    // somewhere in the .rss file
    #include "winsnotwins.rss"
    since the .mmp can differentiate between the builds. Then you can simpy create incwins\winsnotwins.rss and incnotwins\winsnotwins.rss

Similar Threads

  1. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  2. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  3. File reading & writing help, wav file redaing help
    By shubhamlahoti in forum Mobile Java General
    Replies: 6
    Last Post: 2007-06-27, 09:07
  4. Can v give reference to TRGB in .RSS File
    By TeachMe in forum Symbian
    Replies: 0
    Last Post: 2006-05-09, 06:41
  5. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

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