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
Regular Contributor
Posts: 73
Registered: ‎12-30-2011
My Device: All devices
My Carrier: RIM

Import , Include problem

Hi every one,

 

i am confuse when  have to use import and when have to use include in C++ project

 

if a class is created in any different package then how can i acces this class to another different package class please clear my doubt.

Thanks

Mohd Farhan
Highlighted
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Import , Include problem

this should answer the differences between import and include:
http://stackoverflow.com/questions/172262/c-include-and-import-difference

you can include headers with <x.hpp> or "path/to/x.hpp", the first notation will look in all subfolders i think.
see
http://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include...

if you are using different folders make sure they are all added in your .pro file
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter