Supporting more than two OS/SDK on a code base? Pretreatment or another method?

I supported 4.3.0 4.7.0 on the same code base. Now, I wanted to support 5.0 as well.
Say for example the following code: (note I removed the / / in the samples)

String text;#ifdef SDK_470    text = "hello 4.7.0";#else    text = "hello 4.3.0";#endif

It is happy when there were two OS/SDK. But now with the introduction of 5.0 how you Pretreat it?

Given the number limited BB supplies, I've tried:


This compiles with the following error: '#if' not allowed inside '#if'

Note: BB only supports #ifdef #ifndef #else #endif

So,
Or do you guys use a totally different methodology to build support for multiple OS?
Or do you guys use a series of much more complex defines? ie SDK_430_Greater_Than

Some enlightenment would be much appreciated

you can define multiple tags in the jdp. for example:

Options=-quiet -define=PREPROCESSOR;VER_4_6_0_AND_ABOVE;VER_4_7_0_AND_ABOVE

#ifdef SDK_500    text = "hello 5.0.0";#else

#ifdef SDK_470    text = "hello 4.7.0";#else    text = "hello 4.3.0";#endif // endif SDK_470

#endif // endif SDK_500

Tags: BlackBerry Developers

Similar Questions

  • Photoshop Mix supports more than two layers

    Often when I composite that I find myself with three or more layers, as I often separate a base background and foreground elements image and add another cut in the ground, middle between. Are there plans to Mix support more than two layers, as I am currently limited to two making it useless for anything whether it is more cutting.

    Here are some features, I think that this application should be useful;

    • Add more changes to the version of the Tablet options to the phone version, they are useful and you give no reason do not include them.
    • As I asked here can we have more than two layers in favor.
    • Any chance of support for layer masks.
    • Can we have support for color curve adjustments.
    • Can I have more means to add and remove the smart tools from a selection of cutting is great, but sometimes I have a little precise painting inside and out around the edges.
    • Can we have the advantage of refine also included.

    OK so this all sounds rather negative but there are something does a very good Mix, that's why I'm so frustrated by his lack of other functions;

    • The intelligent cutting tool is the fastest way to get a reasonable cut I've never seen and is great, but as I say, I would like to be able to narrow down the selection by other means.
    • Moving and positioning of one single layer on the other is quick and simple and intuitive unlike photoshop Touch where the rotation of the image at the top has been slow and clumsy.

    This app could be great but at the moment it feels fully functional for work that it is apparently designed to do. Adobe do have plans to add features I ask here? Or other features, and in what time frame?

    Hello

    Your suggestions are really valuable for us and most of them are already on our roadmap.

    To answer your questions:

    1 Mix supports up to 5 layers since version 2.0 on iOS devices.

    2 flip layer is also supported for 2.0.

  • Lenovo u300s came with the crack in the case. Queued for more than two hours. Help, please!

    I received my phone Friday and noticed shortly after opening the package that there is a crack in the bottom right of the laptop cover. The bottom of the laptop is now separating it from the case.

    I spent more than two hours on hold trying to request a RMA. This is unacceptable.

    I want a full refund, that this failure to Lenovo may have been spotted before it was delivered to me.

    My customer information are below. Please contact me to correct this situation.

    Order number: 4288307601

    number of cases: 8000174706

    Note of the moderator; personal information under the protection of its own branch

    Hey elhortez,

    Working to get support for you to get the process of refund for you. I'll follow to the top as soon as I can with confirmation.

    Thank you

    Ty

  • the HP Pavilion Elite HPE-410y desktop PC supports more than one hard drive

    topic says it all...

    the HP Pavilion Elite HPE-410y desktop PC supports more than one hard drive

    Hello

    ' HP ' how-to ' article should be useful.

    My e9280t has the same firm and the drive cage holds two drives.

  • I had Adobe Cloud (all applications) to 32.98 USD more than two years now, I have wanted to renew but new contract price is $79.98 - I only use Dreamweaver maybe three times a year, maybe pro adobe acrobat 4 times per year and photoshop maybe 2 times. Is

    I had Adobe Cloud (all applications) to 32.98 USD more than two years now, I have wanted to renew but new contract price is $79.98 - I only use Dreamweaver maybe three times a year, maybe pro adobe acrobat 4 times per year and photoshop maybe 2 times. Is there a plan months I can go that is close to the $32 per month?

    Hi Justin,

    The full price creative Cloud for individuals is $49.99 / month.

    If you add the broth, it's when you pay $79.98 / month.

    Please visit:-Creative Cloud price and membership plans | Adobe Creative Cloud

    For support:-contact us | Adobe

  • Presentation of master-detail Spry insert cannot get more than two columns?

    Ive been trying to get more than two columns only experiment with spry data sets and can not with the option to «insert master/detail layout» layout

    What I am doing wrong?

    ??????

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml"" xmlns: spry = "http://ns.adobe.com/spry" > ""
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >

    < script src = "SpryAssets/SpryData.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryHTMLDataSet.js" type = "text/javascript" > < / script > "
    < link href = "SpryAssets/SpryMasterDetail.css" rel = "stylesheet" type = "text/css" / > "
    < script type = "text/javascript" >
    DS1 var = new Spry.Data.HTMLDataSet ("benefitsdata.html", "bizben", {firstRowAsHeaders: false});
    < /script >
    < / head >

    < body >
    < div align = "center" >
    < div class = "MasterDetail" >
    < div spry: region = "ds1" class = "MasterContainer" >
    < div class = "MasterColumn" spry: repeat = "ds1" spry: setrow = "ds1" spry: hover = "MasterColumnHover" spry: select = "MasterColumnSelected" > {column0} < / div >
    < / div >
    < div spry: detailregion = "ds1" class = "DetailContainer" >
    < div class = "DetailColumn" > {column1} < / div >
    < div class = "DetailColumn" > {Column2} < / div >
    < div class = "DetailColumn" > {Column3} < / div >
    < / div >
    < br style = "" clear: both "/ >"
    < / div >
    < / div >
    < / body >
    < / html >

    ____________

    Spry framework all related examples are available here: http://adobe.github.com/Spry/samples/ you can take a look.

    On a sidenote, Spry has been deprecated and is no longer officially supported by Adobe: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l

    I would recommend that you switch to a jQuery library to your other needs.

  • Thunderbird supports more than one e-mail account? How?

    I'm looking for an e-mail program that supports more than one e-mail account easily. Is Thunderbird such a program? How can I have three accounts for different purposes?

    Edit: deleted for your protection - personal information it is not a good idea to post your addresses to the public unless you want to invite a few more spam. (philipp)

    I'm not aware of any limitation on the number of accounts, I had support contact with people with hundreds of account set up.

    File (ALt + F) > new > existing e-mail account
    or
    In the toolbar > New (move your mouse until the submenu) > existing e-mail account. >

  • Activation of Thunderbird requires more than TWO minutes after clicking on icon Thunderbird.

    PROBLEM: The Thunderbird program is slow to activate. When you click the Thunderbird icon, I expect Thunderbird Inbox screen to appear in a few seconds. However, after clicking on the Thunderbird icon, more than TWO minutes elapse before the Thunderbird screen appears. This problem existed for about a week. My OS is Ms 8.1. You can provide any help would be appreciated. Also, when this problem started, I received the following message "warning: this file is being processed.» Please wait until processing is complete, to pass messages. »

    Your anti virus (or attempt to Microsofts Defender grant) needs to be said is not to analyze the profile of Thunderbird folders, each time you open the program is my guess. The program cannot open files that are locked for scanning. As some of the files may be in the order of 4Gbv in size, it can take an AV program up to 10 minutes.

  • Satellite Z830 - I wonder if the motherboard supports more than 6 GB of memory

    Hey, I bought a Toshiba Satellite Z830-10w. It's a fine ultrabook.
    I wonder if the motherboard supports more than 6 GB of ddr ram.

    Have some of you tried it with a block of 8 GB of RAM Regand flemming

    > I wonder if the motherboard supports more than 6 GB of ddr ram.

    The chipset is responsible for the RAM
    Therefore, know if the chipset would support the 6 GB of RAM.

    Z830-10w supports the Intel HM65 Express Mobile Chipset and it should support the 8 GB of RAM

    To my knowledge the unit is equipped with a 2 GB internal RAM that is NOT removable.
    You can update ONLY one slot
    So one slot can handle 4 GB of RAM, and in this case the 6 GB of RAM are supported.

  • Dc7800 BIOS update to support more than 2 TB of HARD drive

    Is it possible to update BIOS HP dc7800 to support more than 2 TB of drives? The PC is a SFF model with a processor E6550.

    I am aware that the BIOS must support UEFI to make this happen, but I can't find any (positive or negative) information about the dc7800.

    In Windows, it is possible to convert a GPT disk, which allows for more 2 TB disks, a second disk, but you cannot convert the system drive on a GPT disk, as this makes it unable to boot.

    So, if it is possible to update the BIOS, can someone please give instuctions on how to do this?

    I had all the and turn in circles and had absolutely no chance of achieving that goal.

    Hello:

    The first model in this series that can boot from a 3 TB HARD drive, I think, is the 8200 elite.

    dc7800 dc7900, 8000 Elite and 8100 Elite cannot.

    They can use > 2 TB drives for storage if they are in the GPT format.

    Here's how to know if your PC has a UEFI BIOS.  See page 5.

    http://h20566.www2.HP.com/portal/site/hpsc/template.BINARYPORTLET/public/KB/docDisplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI & spf_p.rid_kbDocDisplay = docDisplayResURL & javax.portlet.begCacheTok = com.vignette.cachetoken & spf_p.rst_kbDocDisplay=wsrp-resourceState%3DdocId%253Demr_na-c02826744-1%257CdocLocale%253Den_US & javax.portlet.endCacheTok = com.vignette.cachetoken

    I have a dc7800 CMT and a 8200 Elite CMT both with the latest revisions of the BIOS.

    It is impossible to upgrade the BIOS in the UEFI in your model.

  • Presario sr5013wm core2duo 2.66 Ghz windows 7 64 bit it will be now supported more than 4 GB of memory

    I upgraded my presario to core 2.66 due 2 and windows 7 64-bit. power supply 500 watt, the AMD Radeon HD 6570 video card. Will now this support more than the 4 GB original memory. It is 32-bit Vista came with the computer could handle

    Hello:

    Looking at the page plug of your PC motherboard, I see he has the Intel 945 chipset.

    The maximum amount of memory, the Intel 945 chipset can answer is 4 GB of memory clocked at 667 Mhz.

    A PC with an Intel chipset must have at least the Intel 965 chipset in order to accept more than 4 GB of memory.

  • Cannot print more than two pages

    Hello here

    I have a rather strange problem today: one of my users cannot print more than two pages...

    Regardless of the printer, the application or document, this specific user will receive the first two pages printed on the right, then a windows error (cannot print, the likely reason is a failure of the network, not enough memory, etc.)

    Current config is

    -User logged on the Witch of Windows 2008R2 Server Citrix XenApp 6.5 (published desktop).

    -Print server Windows 2008R2 with something like 150 shared printers

    I tried with other printers and file formats, on separate servers, it's always the same.

    Of course, everything works perfectly fine for other users...

    I'm not sure if any parameter can block printing up to two pages only, or anything else. Before you delete and recreate the user profile, as everyone has an idea?

    Grey'

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • How to upgrade a device driver USB from 32-bit to support more than 64-bit?

    I have a USB device driver that supports only 32 bits of the system, now, I want to upgrade to support more than 64-bit systems.

    Please provide details on the changes required in the code of file & pilot .ini.

    Your question is outside the scope of what is usually covered in these forums that focus on the home - the average user. You can get a better answer to your question if you repost you the question in one of the following Microsoft forums instead:

    http://social.msdn.Microsoft.com/forums/en-us/WDK/threads

    http://social.technet.microsoft.com/Forums/en-us/categories/ .

    Thank you.  :)

    (I'm sorry, but I can't move this thread for you because the forums are running on separate platforms)

  • Allow more than two users to office to a machine remotely

    My team at work must be able to allow more than two users of office machines (running Windows 7, Windows 2008 Server or Windows 2003 server) remotely. How do I change the settings to allow this?

    Only servers will allow multiple terminal sessions. Workstations will not. And if I remember correctly, Windows 2003 Small Business Server will allow no more than one session.

  • Can I enable CC on more than two computers at the same time?

    See what adobe is always allow two computers active simultaneously?

    This is a subscription service and, while we're technically downloading the software, we don't really "own" it as it can be 'locked' if we go over our activations.  From what I've seen in many forums both in and out of Adobe, three computers seems to be the standard of what I see if I beg the question...

    What is the problem with allowing only TWO computers active being allowed to run the software at any time?


    And then I imagine that, logically, there is a problem if I wanted to use CC on a mobile device, but also my computers?

    With a music subscription service, once the music unsubscribe disappears and everything is fine - and I can access from multiple devices.  So why is Adobe being so restrictive with PS and LR (and CC in General)?  It seems rather strange that if I want to access PS/LR on a single machine, LR on the other and the first on a third, then I cannot, although there is never more than two instances of any single software used is THREE subscriptions - but it is yet another issue.

    If it can't get it fixed, maybe I should just watch Pixelmator and without having to worry about this.

    Please... give an overview.

    the only possible limitations are:

    1. you can use more than one activation of cc at any moment.  That is to say, you can use one computer at a time.  (not much of a limitation, IMO.)

    2. you must disconnect (your other connected computers) before the signature of the component snap on a 3rd, 4th etc. computer.  Once again, no downside unless you didn't have internet access to important moments and for long periods of time for the computer or computers that you need to connect.

Maybe you are looking for

  • new tab file not found

    Everytime I open a new tab said:-Firefox can't find the file in C:/users/Sri Vaibhav/AppData/Roaming/Mozilla/Firefox/Profiles/xspleh3q.default/extensions/{B821BF60-5C2D-41EB-92DC-3E4CCD3A22E4}/chrome/content/newtab/newtab.html.

  • These days, Firefox does not completely Hotmail sign

    Windows Live IDDisconnection is not complete... You have signed out of these sites: MSN Account Services We couldn't you disconnect from these sites: Hotmail

  • Set the image as wallpaper

    I run Windows Vista and I tried to change the background affecting a photo of my kids, however, when I put the picture, it shows to start and stop mode? The image is there, but the only thing I see is a blue background.  Can you please help?

  • PLZ I REALLY NEED HELP!

    Please someone help me, when I go to 192.168.2.1, this appears and I can't connect to the internet. Type of connection: State of PPPoE connection: Internet connection IP address: 0.0.0.0 subnet mask: 0.0.0.0 default gateway: 0.0.0.0 DNS1: DNS2: DNS3:

  • Microsoft keyboard takes a long time to open the Favorites

    I have a Microsoft ergonomic Natural Keyboard 4000, it works great but there is this problem that I can not get rid. all keys work properly, same custom and all functions, but the shortcut 5 Favorites buttons on top that I attributed to 5 different s