Hey,I am using Leap Motion to Develop some program,just like recognition the Victory Gesture. I want to develop these by C++ program language, and i did it. The next , i want to use my program in different platforms, for example C++ Console, C# Console, Unity and so on. So i build my code as a DLL Program(x64). In C# Console Enviornment, it can calls my dll funciton successfully, so i want to try it under Unity.
When i program in Editor Mode or Game Mode, the program can calls my dll funciton successfully.
But when I build the Executable program, the .exe program could not call my dll funciton successfully,
then I rebuild my code and I delete all the code that have relationship with Leap Motion(as #include "Leap.h"), the .exe program could call my dll funciton successfully again. I`m sure that the .exe program includes Leap.dll and my .dll program. The most puzzling thing is that in Editor Mode or Game Mode the program can calls my dll funciton successfully, but successfully when I build it as a .exe program. I know Leap Motion provide the Unity Package, but i don`t want to use it, the reason is i want to recognite gesture in different platforms, I think the package is not convenient to use. So how can i solve the problem?
↧