[C++] Adding CCScrollView support

[C++] Adding CCScrollView support
0.0 0


Hello. I am trying to add CCScrollView extension to my C*+ application .
Here is part of my code:
#include “cocos-ext.h”

CCScrollView* scrollView = CCScrollView::create, NULL);
By default there is no CCScrollView class support. But when I trying to include cocos-ext.h file, I am having theese errors:
c:2d-x-3.0alpha1\extensions\gui\ccscrollview\ccscrollview.h: fatal error C1083: Cannot open file: extensions/ExtensionMacros.h: No such file or directory
What should I import to use CCScrollView? How can I add extensions to my C*+ project?


i have the same problem
Can’t find solution :frowning:


it seems this error still persists, I just ended up getting it and I don’t know how to add the extensions to project, as matter of fact it’s already included as ${Engineroot}extensions, but it doesn’t work.


As stated here: http://my.oschina.net/u/698243/blog/187475 add just ${Engineroot} and it works.


In Case 3.0 final

  1. Solution to add libExtensions

  2. myproject right click - Properties - Common Properties - Add New Reference

  • libExtensions check
  1. Go to Properties - Configuration Properties - C/C++ - General - Additional Include Directories
  • add $(EngineRoot), $(EngineRoot)extensions\GUI

Good Luck!!


Thank you so much . It work (only need step 3)