Motive 1.7 Beta 2. NPTrackingTools API Issue
Posted: Thu Nov 13, 2014 9:19 am
We use the NPTrackingTools api quite heavily. We currently use the 1.5 version. We use DLLImport to create a C# friendly managed wrapper.
With version 1.5, we were able to wrap methods like so:
With the 1.7 version it seems all the method names are mangled. In order to make the above call work we have to do this:
The "?TT_ClearTrackableList@@YAXXZ" name was determined by doing dumbin.exe /EXPORTS NPTrackingTools.dll from the command line. (This command dumps the "actual" method names exposed by the dll)
It seems, with 1.7 all the method names have been mangled for some reason. Is it possible to prevent this mangling in the NPTrackingTools.dll? Possibly by using extern "C" as described in this StackOverflow post: http://stackoverflow.com/questions/1041 ... f-extern-c
Thanks,
-Jeff
With version 1.5, we were able to wrap methods like so:
Code: Select all
[DllImport("NPTrackingToolsx64.dll")]
public static extern void TT_ClearTrackableList();
Code: Select all
[DllImport("NPTrackingToolsx64.dll", EntryPoint="?TT_ClearTrackableList@@YAXXZ")]
public static extern void TT_ClearTrackableList();
It seems, with 1.7 all the method names have been mangled for some reason. Is it possible to prevent this mangling in the NPTrackingTools.dll? Possibly by using extern "C" as described in this StackOverflow post: http://stackoverflow.com/questions/1041 ... f-extern-c
Thanks,
-Jeff