Motive 1.7 Beta 2. NPTrackingTools API Issue

Post Reply
jeffweber
Posts: 6
Joined: Tue Jun 18, 2013 10:51 am

Motive 1.7 Beta 2. NPTrackingTools API Issue

Post by jeffweber »

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:

Code: Select all

        [DllImport("NPTrackingToolsx64.dll")]
        public static extern void TT_ClearTrackableList(); 
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:

Code: Select all

        [DllImport("NPTrackingToolsx64.dll", EntryPoint="?TT_ClearTrackableList@@YAXXZ")]
        public static extern void TT_ClearTrackableList(); 
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
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Motive 1.7 Beta 2. NPTrackingTools API Issue

Post by beckdo »

Thanks for reporting this Jeff. We will get this addressed for Motive 1.7 Final.
Post Reply