I have a .dll problem. It is related to the 5DT data glove development in unity 3D. It is called fglove.dll
When i use visual studio to interact with the data glove it is work fine.
The fglove.dll itself seems to work just fine, I can use visual studio to run my code and when i copy the fglove.dll next to the executable(.exe file).
However when I develop using unity 3d it is not work anymore.
My understanding of dll’s on windows is, that windows will look up the dll in the system32 folder (XP), then in the application folder and the current working directory.
like in visual studio is copy in Visual Studio 2010\Projects\GloveSampleApp\GloveCSharpSampleApp\bin\Debug folder.
So when i develop using unity 3d, which folder i need to put the fglove.dll.
Have you tried putting the DLL in the project? Unity will look for DLL dependencies in that folder, then in one of it’s own, not in the normal CLR or Windows paths.
In order to communicate with an unmanaged dll (also called ‘native’ dll), you need to use P/Invoke. For use in Unity, carefully read the docs for Plugins. The page contain samples and how-to’s.
Note that you must have Unity Pro for this to work.
Snippet from link:
Plugins are a Pro-only feature. For desktop builds, plugins will work in standalones only. They are disabled when building a Web Player for security reasons.
In order to use a plugin you need to do two things:
Hi Iam,
Please download the example 5DT Glove Unity project from our Website download section. 5DT Glove Unity Example
Best Regards,
Dewald
(dewald.duplooy@5dt.com)