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
Spacena
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook

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
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

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
Spacena
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook

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
sonalb123
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks

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??

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

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
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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
sonalb123
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks

Re: BPS Tuts error

Developer
strobejb
Posts: 282
Registered: ‎10-15-2012
My Device: bb10 developer

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
sonalb123
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks

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