Pass a C++ struct to Java
843829Feb 17 2010 — edited Feb 24 2010Hi, I want pass C++ struct to java using JNI. I use Java only for communication and I don't want that Java understands the struct, but I don't know how to do it...
The struct is this:
struct Block
{
float startX;
float startY;
std::set <int> controlledVehicles;
};
When Java receive this struct it sends this information to all and the message will be unuderstanded c side...
I'm sorry for my english