I have one more doubt about. Actually in my Cpp class codes, i need to call Objective C codes from my cpp file(my need is to call sharingActivity in both IOS and android).So please Help me.
like this—>
and also like this---->
I have one more doubt about. Actually in my Cpp class codes, i need to call Objective C codes from my cpp file(my need is to call sharingActivity in both IOS and android).So please Help me.
like this—>
and also like this---->
What’s your issue? You don’t know how to invoke objective-c/java codes in c++ codes or what?
yeah, I dont know how to invoke cpp/objectivC codes in my Class files . Can you How to do this for both IOS and android.? @zhangxm
Look at the code in fileutils.h and the corresponding android and ios implementations. That should give you an idea
As @vkrishna said, cocos2d-x includes the usage. You should change your .cpp to .m to invoke objective-c codes. If you want to invoke java codes, you should learn how to right jni codes. You can refer the files under cocos/platform/ios
and cocos/platform/android
.