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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Regular Contributor
mohdfarhanakram
Posts: 73
Registered: ‎12-30-2011
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
Please use plain text.
Developer
simon_hain
Posts: 13,822
Registered: ‎07-29-2008
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
Please use plain text.