Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pass a C++ struct to Java

843829Feb 17 2010 — edited Feb 24 2010
Hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2010
Added on Feb 17 2010
12 comments
1,864 views