"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Passing one variable from java to c++

In my project, I have to pass my intiger variable from my one java class to ImageTarget.cpp class. Is there any way to see these variable's value from ImageTarget.cpp class. Because I have a loop game and each turn this variable has different value. And I have to see this variable's valur from ImageTarget.cpp class.

Thanks for you help.

AlessandroB

Thu, 04/18/2013 - 16:50

Hi,

one simple way is to Log the variable using the LOG function (see examples of usage of the LOG function in ImageTargets.cpp;

for instance to log an integer, you can write:

LOG( "My integer is: %d ", myIntegerVariable);