Add pre directive processor use of programming

Hello

I'm new to the blackberry development. I need to add the directive of preprocessor to build according to the version of the OS. I wrote a logic to get a version of the OS and its very good operation, but the problem is that I'm not able to add the preprocessor directive when running.

Thanks in advance.

Coralie

I think you're confused about what you can do with the preprocessor directives.  These preprocessor directives are designed to tell the compiler what to do.  If during execution, once it has been compiled, it is too late to do anything with the preprocessor directives!

These directives are normally used to generate different versions for different environments, these different versions to different levels of the BONE.  You must do it at compile time.  If you include OS 7.0 a specific encoding in your cod so it will not work on an older operating system, even if this piece of code is never used.

In any case, can you think of your question a bit more.  Maybe you can ask the question another way.

Tags: BlackBerry Developers

Similar Questions

  • I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    Question
    I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    edit, escaped mod < s > in order to avoid the line through question

    A web page can be defined a "accesskey" for an item. Unlike IE/Chrome/Safari, who use the Alt key only, Firefox requires pressing Alt and Shift to activate the element. In other words, try

    ALT + SHIFT + S

    and see if it works.

    I don't know of any way to change this so that the change is not necessary. There may be an add-on?

  • What equipment I need another for the purposes of the on/off switch, adapt output voltage/current using labview program

    This is my first time to use labview, I want to use the program to control the DC power for the start/stop it or set the output to program automatically.

    Now I had the (supply) instrument, got a computer with labview. I know that I have to buy a GPIB cable, making a connection between the instrument and the computer. But I do not know what to buy? Cable GPIB or GPIB controller. Confused.

    Thank you

    A GPIB cable, by itself, will do nothing. You need a GPIB controller connected to your pc. With the NI USB-GPIB-HS controller, you can connect directly to a single instrument and no need for a separate cable. If you go with an internal controller to a pc (i.e. PCIe), you need a cable to connect the controller to the instrument.

    You can also check if the power supply has other options such as Ethernet or USB remote control.

  • I have vista and how to record a program to a usb port to another user who has xp to use the program

    I have a samsung program for my phone, I installed and I have vista, I want to know how to record the program on a USB for another user may install and use the program, because they have a netbook with no cd it must be saved to the usb, but the other user has xp so please can you me how to record the program on usb

    Hello

    You cannot save a program that is installed on a USB key or any other

    Once installed a program spreads during the operating system at various locations

    You must download it again and save it on a USB flash drive, then transfer it to their netbook via a USB flash drive

    or get them to download it themselves directly to their netbook so they are available on the net

    For more information on the program, contact samsung

    http://www.Samsung.com/us/support/contact

  • best way to add and change the menu all programs without turning off UAC?

    I just download HJsplit, as someone has sent me a video file into segments to overcome the limitations of attachment size. HJsplit doesn't require installation, but UAC is actually prevents me from adding it to the start menu.

    What would be the 'proper' normal procedure to add it to the menu all programs on the start menu, preferably in an existing folder, called "utility" without having to go through two reboots to turn UAC on or off?

    If there was a previous version of Windows 95 and XP, I would have included the word "shortcut" in the paragraph above.

    Essentially the same as option B in my two ways, but without the use of the command prompt to start the Explorer. I must have accidentally deleted the icon from the Windows Explorer of my account administer as I find it, but it appears in my standard account and backup my admin account.  Thank you, he let discover me the missing icon, and I fixed it.

  • Please direct me to a program of emergency for Windows Vista Ultimum.___Thanks boot disk!

    Please direct me to a program of Windows Vista Ultimum emergency boot disk.

    Thank you!

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    And get a recovery media to reinstall Vista:

    How to get Vista recovery Media or the Vista recovery Partition on your computer back to factory settings.

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Ask them if you can also make recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    See you soon.

    Mick Murphy - Microsoft partner

  • Can I use the program creator-CD came with my laptop on the job?

    Hello!

    I have a Compaq 6530 b with XP Proffesional.

    I've had this laptop through my work about 4 years ago. CD-Creator program that followed is called 'Creator Business DVD' and is Roxio/Sonic. I've used this program in my work, but when I read today the license agreement, it says that there are three types of licenses, and I wonder who the license that accompanies my computer and how do I know?

    Because if I only have a license "singleuser", it seems that I can only use it for personal and non-commercial use.

    I would be very grateful if someone could help me find it.

    Creator Business v10 DVD
    Versjon: 10.1.048

    The software is certainly correct to use for your job. Especially in cases where it is simply to facilitate your work. I, of course, am not a lawyer, but my understanding of the license agreements, you are in the clear. As long the software is not used to make personal financial gains copied/redistributed, or can be used by other people that you shouldn't have to worry about what. The software is designed as a tool to help you finish your work, but never as a means for direct profit; that is create/copy software, music discs, DVD, etc... For absolute certainty are trying to contact Roxio on this issue because I can honestly say I don't have a full understanding of their terms and conditions, but also if you register the product you should be able to get more information on their Web site.

  • Make a prototype for my class of multimedia learning and back to Captivate. This idea is possible? Or should I use another program?

    Hello!

    As mentioned, I'm a bit new to Captivate. I am familiar with its basic functions - I've done a few projects already - but I like to use my homework to help guide my learning through this program.

    For my class of multimedia learning, I do a prototype for a team project that is to teach students about specific plants: how the sunlight they need space, of water, as soon as they are completely mature, etc. Using the principle of guided discovery of Mayer (for learning MM), we want to make a game for students, and this is where my work (I'm the girl who is very quick to learn a technique and has already some experience of Captivate to his credit).

    We want to do a simulation where a character receives a plant at random his MOM. She should take care of this plant based out of the student / knowledge of the player (students will have studied it that the need for plants and made a request now that knowledge in this game). He will ask questions like, "what is this plant?" based on the image. Then, "when we it put? (in the House, on the edge of the window, in the garden, etc.). "When we should he water? (Daily, weekly, never, etc..). And so on.

    I never worked with variables with Captivate and thought this would be a good opportunity to learn. I thought that I could store the responses of the student as a variable and then at the end of the game, count the numbers, and if they have reached a certain threshold, the program will say: "Congratulations!" Your plant survived! "Or... "Oh no!" Your parched plant. You don't water it enough. "Or" Oh no! " Your plant dry too much sun! »

    Another thing to keep in mind is that the plant itself will be random, and the player should hopefully get a new plant whenever they play.

    So I was wondering...

    (1) variable will help me with this project? Or am I understand the term "variables" incorrectly as it applies to Captivate? It is possible that they work differently to how I imagine - once again, I've never worked with them before.

    (2) does it be a nightmare to create in Captivate or should I learn how to use another program? (I wouldn't mind another program of learning that I can add to my repertoire of skills)

    (3) any tips for this to work? Of course, I ask you to tell me how to do this project completely.

    (4) you say that an immediate return instead of feedback delay would be perhaps better here? If that were the case, I wouldn't need to use variables at all and instead just add a slide if they got the answer 'false '.

    You're talking about how many plants for the random plant? The only way I can imagine is to use a random number generated by JS, and an advanced conditional action which shows the plant based on this number. The random number, or the name of the plant itself could then be used in conditional actions more to ask appropriate questions.

    You can create a sequence of questions for each plant and use conditional navigation to send the student to the right sequence. In this case you can use the slides default question, which will be marked and at the end assess you the total score and provide feedback based on this score. This is possible when you enable branch of knowledge, so that only the questions that have been visited by the student will take into account for the quiz score.

    It is an idea for an answer to your first question. As I have explained, you don't need really variable (perhaps a random number), but advanced authoring knowledge or share actions.

    As a new attempt, the simplest is to restart the course. Maybe I could understand an alternative approach, but not right now.

  • After reinstallation of my dear old Photoshop CS4 of backup external drive after replacing my drive hard, I got an error message (147,20) that my license has expired. I have used the program for years, but he must have downloaded it, because I can't find

    After reinstallation of my dear old Photoshop CS4 of backup external drive after replacing my hard drive, I received error (147,20 and another trial, error 6) messages my license was not working. I have used the program for years, but must have downloaded, because I can't find an original backup drive. I can't afford to upgrade, so for now am limping with Photoshop 6. What can I do?

    If you can spare $10 per month, you can have the latest Photoshop and Lighroom

    Lightroom and Photoshop | Plan of cloud of Adobe's creative photography

    Get it directly from Adobe, you can have CC 2015, or CS6, Mac or PC.

    Do not go without

    Gene

  • iMovie 10.1.2 today (June 4, 2016), all of a sudden will not let me create a new project/film.  1. I have used the program extensively in recent weeks, many small travel films. 2. once in the projects, if create a new movie and the sign is checked, the op

    1. I have used the program extensively in recent weeks, many small travel films.

    2. when in the projects, if you click on create a new movie and sign, the new movie and trailer options opens successfully.

    3. click on film, nothing goes very well but open trailer.

    4. the issue seems to be the only new film/project.

    5. I can access all my other movies and run successful projects and theatre.

    6. I tried through a previous project and clicking new project from the menu, but still nothing.

    7 mac is 27 "OS X El Capitan, Version free 10.11.5, with 327 GB to 999 GB

    iMovie is 10.1.2

    8. the computer itself did not fall down and as FAS as I know, all other programs work correctly.

    9. I rebooted several times, but that has not solved the problem.

    10A does anyone else have this problem? If so, how do fix you it?

    Thanks much for any help!

    Have you ever tried to delete the iMovie preferences?  If the elements of the user interface do not, deleting preferences frequently you contribute.

    To delete the iMovie preferences leaving iMovie, runs, and then press and hold options and command key at the same time, at the launch of iMovie. Keep now pressed the buttons firmly until you see a command prompt to remove the preference. Confirm.

    Before you do, take note of all the settings that you made in iMovie preferences panel, so you can put back them later. iMovie will then begin with the Welcome screen.

    When I had a similar problem, the only thing that helped was to create an iMovie library.  Probably a corrupted in the iMovie project current library prevented the creation.   The problem persists, if you test different library in iMovie? You can create a library for testing.

    http://help.Apple.com/iMovie/Mac/10.1/#/mov3fa25bae7

  • He says that I'm connected to the internet, but I can't use certain programs such as google chrome or ooVoo... Why?

    I am connected to the internet, but I do not know why I can not use some programs... someone please help me I am so frustrated!

    Hi Alejandrac_677,

    ·         What version of IE are you using?

    ·         What operating system is installed on your computer?

    ·         What happens when you try to access Internet Explorer, you receive no error message?

    ·         How long have you been faced with this problem?

    ·         You did it last changes before the show?

    Please see the following to find out about Internet Explorer, and operating system.

    Find out what version of Internet Explorer you are using

    http://Windows.Microsoft.com/en-us/Windows7/find-out-which-version-of-Internet-Explorer-youre-using

    What version of the operating system Windows am I running?

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    You can also check:

    Why can't I connect to the Internet?

    http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-connect-to-the-Internet

    Please provide us with more information about the issue so that we can help you in a better way.

  • PC cut his all when I called via Skype or use other programs

    A few months ago I bought a new desktop pc HP Envy and I'm really deal with it, but recently I'm under problems.

    A couple of weeks, my PC started all my audio muting for no reason when I got a call via Skype, at first it wasn't a problem because I could use other programs such as Teamspeak or mumble, but recently these programs get the same problems as well.

    The standard solution to make sure that the checkbox in the communication tab is set to "to do nothing" is checked as seen on this page, http://www.askvg.com/fix-windows-7-automatically-reduces-system-volume-for-games-pc-calls/

    I tried all possible combinations in the tabs in my reading and recording, but it still doesn't work.

    I added some screenshots that show what it looks like.

    Hello @Archangel52210,

    I understand that you are having problems with your new computer running Windows 8.1 where the audio is automatically inhibition. I'm you provide a document from HP support: use of the Recovery Manager to restore the software and drivers (Windows 8), which allows you to restore the original supplied with your computer drivers. As these drivers and their settings are working I think they once again and I hope when they are updated the next time Hey take better.

    Please re-post if you need extra support. Thanks for posting on the HP Forums. Have a great day!

  • I play world of warcraft and use a program called ventrilo to talk with other players. the problem I have is my game sounds can be heard

    I play world of warcraft and use a program called ventrilo to talk with other players. the problem I have is my game sounds can be heard.
    Vista makes my headphones 'speakers', so when I use a program called ventrilo to talk with other players in my game sounds are heard through ventrilo. My headset is a headset/microphone generic plug-and-play.

    When I run not WoW, I can hear my own voice through the headset speakers when I talk.

    I want my headphones to work so I can hear my friends talking and the sounds of the game, but I don't want the game sounds to be filtered on the server for voice chat

    Any help would be much appreciated. I asked the same question to Geek Squad and their response has been to try to charge me $49.99 + tax for one of their "agents" can remote in and fix it. Do not use them unless you have: P

    Hey CassiusVa,

    Welcome to the Microsoft Answers Forum!

    Since when are you facing the issue?

    Can I know the version of Ventrilo you use on your computer?

    It may be that World of Warcraft focuses on your audio hardware.  You can try to reduce the audio settings in WoW to see if this makes the use of Ventrilo better.  It may also be a driver problem.  I would check to make sure that you have the latest drivers for your audio device.

    Use the following steps to ensure that the audio drivers are up to date.

    1. connect to the Internet.

    2. click on start and enter the Device Manager in the start search field.

    3. click on the plus sign next to sound, video and game controllers.

    4. right click on the name of the sound material and select software update of the driver...

    5. click on search automatically for a driver updated and wait for Windows to update the driver software.

    6 Windows checks a remote Web site to see if the update of the driver software is available.

    * If an update is available, let Windows install the update.

    * If an update is not available, proceed to the next step.

    7. once the update is successfully installed, test the microphone.

    Please follow the steps below and check if you still have questions echo.

    Go into Ventrilo Setup and select mixer for the sound card, which will be the audio input (as determined by the "Input device" option) device. This will populate the Mux and line options. Normally it would take only a Mux. It is possible that you may have many options of the line. Go ahead and select "Microphone" or anything that is appropriate for the input line and then click OK.

    This should solve the problem.

    Please note that you select mixer, mux and line will allow the "Hardware Volume" slider This gives you the control hardware on the audio input signal and is the best way to control how strong you are. Setting the cursor to halfway better seems to work for most people, but it will be hardware and system load.

    You can also browse the links for more information on ventrilo and try to contact them if the problem persists.

    http://www.Ventrilo.com/FAQ.php

    http://www.Ventrilo.com/about.php

    http://www.Ventrilo.com/dlprod.php?id=1

    Let us know how it works.

    Kind regards
    Technical support of Microsoft-yama.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • create the new file option in Windows - how to add Notepad in the list of programs

    When I'm in a particular folder, I can right click and choose new... to create a new file in this folder.  The usual programs are available to choose from, such as Word and Excel, and also a few programs that I have installed are also available.  How can I add Notepad to the list of programs offered at the "create new file" with?

    Thank you.

    Except if you have changed the file association "New text Document" is Notepad.

    John

  • Errro: Cannot save the Terminal Server when he tried to use the program Sony Vegas

    Original title: cannot save the Terminal Server.

    I'm having a problem using my program "Sony Vegas". It worked OK. But now gives me an error. "Cannot save the Terminal Server. I don't know if this a problem of Windows, or Sony Vegas. Please tell us how to solve this problem. Thank you.

    Hi barnstable,.

    Try these steps and check the result.
    Step 1: Check if the Terminal Services service is disabled
    a. Click Start, click Run.
    b. type services.msc, and then click ok.
    c. in the list of services, double-click Terminal Server Services.
    d. change the startup type to automatic and start the service.
    e. click ok to apply the changes.
    f. check if the problem persists.

    Step 2: If the problem persists, uninstall and reinstall the program Sony Vegas
    see How to change or remove a program in Windows XP .
    b. Once you have deleted the program, restart the computer.
    c. reinstall the program.

    For additional support, get in touch with Sony support team.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for