I am very new to this and have what may be a stupid question. I am trying to call a function from a c library (dll) and having a little trouble figuring something out. One of the arguments that is passed into the function is a pointer to a internal struct that I know nothing about. I am not a C programmer (or at least not a very good one...this much should be obvious). I never need to dereference the pointer in my code, only pass the pointer back into several other functions in the DLL. Basically it looks something like this ( Where newStruc is the struct that I don't know anything about and therefore don't know how to define in Java but exists in the DLL)
Structure newStruc = new GeoHandleStruct();
Pointer pGeoEngHandle = Pointer.createPointerTo(newStruc);
xFunction geoEngInit=new xFunction("Mm32v8","short GeoEngCheckDbAvailability(CSTRING, CSTRING, CSTRING, short*, newStruc *)");
geoEngInit.invoke(searchPath, db_name, user_dict, dbInitRequestFlags, pGeoEngHandle);
Next I would want to take the pointer that was returned from the previous method call and pass it into some other method such as:
xFunction geoEngGetCfgParms=new xFunction("Mm32v8","short GeoEngGetCfgParms(newStruc *, someOtherStruc *)");
and so on and so forth. Can anyone help? Sorry if this is a stupid question.