Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook
My Carrier: airtel

BPS Tuts error

Hi, I tried to run the code from the following link 

http://developer.blackberry.com/native/documentation/cascades/device_platform/bps/bps_tutorial.html

 

It shows error, say 'not declared in this scope" for some functions of netstatus.h ! netbps.png



Looking for SMTP Servers, Bulk Emails and Bulk SMS services at an affordable price to help boost your business? Look no further. I've the solution for your needs. Contact me now.
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: BPS Tuts error

Hi! API docs say this function appeared in 10.2.0. Could you check if Momentics is configured to use the correct SDK?

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook
My Carrier: airtel

Re: BPS Tuts error

Yes, I've run the code in the correct sdk. It's 10.2.1.


Looking for SMTP Servers, Bulk Emails and Bulk SMS services at an affordable price to help boost your business? Look no further. I've the solution for your needs. Contact me now.
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: BPS Tuts error

Hi,


I am getting same issue for netsatus API's in 10.2.1...Have you got any solution for the same??

Highlighted
Developer
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook
My Carrier: airtel

Re: BPS Tuts error

@Sonal, I didn't try the code further.
It's still unsolved and thus might continue to haunt you !


Looking for SMTP Servers, Bulk Emails and Bulk SMS services at an affordable price to help boost your business? Look no further. I've the solution for your needs. Contact me now.
BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: BPS Tuts error

Have you created the application by walking through the tutorial or are you getting that error with the available sample project?  I was able to build the sample project without any errors.  If you have tried it, can you give that a shot?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: BPS Tuts error

Developer
Posts: 293
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: BPS Tuts error

Is it a namespace issue?

Are you including the correct headers?

#include <bps/bps.h>
#include <bps/netstatus.h>
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: BPS Tuts error

yes I include all the headers. The same code is working in 10.2.0 but not in 10.2.1