BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-25-2009, 05:42 PM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8130
PIN: N/A
Carrier: AT&T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Preprocessor is not working

Please Login to Remove!

Hi All,

I am trying to add preprocessors in my BlackBerry application.
I have followed the following steps:
1. Add defines tag with project settings and also tried by manually adding
-define = DEBUG;PREPROCESSOR in .jdp file with "Options".
2. Added //#preprocess as the first statement of the file
3. Added following in one of the function like:
//#ifdef DEBUG
...... statement 1
//#else
......statement 2
//#endif

I could sucessfully compile the the code also could see -define in rapc.exe execution.

But after running both statement 1 and statement 2 is present.

I have also tried with adding
//#implicit DEBUG as a second statement of the file. Still the result is same.

Please let me know how I could run and get the define work properly.

I am using eclipse plugins for blackberry and 4.5 JDE.
And doing testing on simulator.

Thank you
Regards,
Aparna
Offline  
Old 12-26-2009, 12:25 AM   #2 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8130
PIN: N/A
Carrier: AT&T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

It is resolved now.

Thanks
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

DC 12V Holding Electromagnet Lift Solenoid P20/15NASN
$5.7
DC 12V Holding Electromagnet Lift Solenoid P20/15NASN pictureITT GENERAL CONTROLS SOLENOID VALVE S30LAF02V3BE7 *NEW IN BOX*
$63.0
ITT GENERAL CONTROLS SOLENOID VALVE S30LAF02V3BE7 *NEW IN BOX* pictureVALVE SOLENOID ELECTRO MAGNETIC 30-999-00651 F01683 24V DC 2W 31-08
$15.0
VALVE SOLENOID ELECTRO MAGNETIC 30-999-00651 F01683 24V DC 2W 31-08 pictureUniver Type U1 3,5 100% ED V24 solenoid magnet drive rush shipping available
$30.0
Univer Type U1 3,5 100% ED V24 solenoid magnet drive rush shipping available  pictureParker Skinner Stainless Solenoid Valve 71295SN1KNJ1N0C111B2
$49.99
Parker Skinner Stainless Solenoid Valve 71295SN1KNJ1N0C111B2  picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.