Open dvsportGreco opened 5 years ago
Hello,
Sure, no problem I am actually at this moment putting together a package for another person who wants it. Give me a few hours and I will email you a link where you can download it.
I will include my shuttle wrapper and a demo app to show you how it works.
Thanks,
Eddie
On Thu, Apr 25, 2019, 1:38 PM dvsportGreco, notifications@github.com wrote:
@EddieMac74 https://github.com/EddieMac74
I found your post on http://forums.contourdesign.com/viewtopic.php?t=115 about having a C# wrapper for the ShuttleSDK? Is there anyway to make that public? I've been trying to implement Contour Designs SDK in a C# project but it's very poorly assembled. Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dvsportGreco/ShuttleProC-Wrapper/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRKEW3XWNAVZFAN4SHA4JDPSICDBANCNFSM4HIQCOAA .
You're the best! I'm not good with C++ so it's been a pain trying to create a wrapper
I used dll import to call the voids from the SDK,
I then used a delegate to pass to the main call where it asks for a callback. When data is returned from Coumtours driver it raises an event on the delegate and then I decide the returned data.
I created the wrapper to take care of all the leg work for you. The resultant calls from my wrapper are easy .NET style events and the returned data is contained in .NET style EventArg classes just like normal mouse or key button clicks.
Eddie
On Thu, Apr 25, 2019, 1:45 PM dvsportGreco, notifications@github.com wrote:
You're the best! I'm not good with C++ so it's been a pain trying to create a wrapper
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dvsportGreco/ShuttleProC-Wrapper/issues/1#issuecomment-486812540, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRKEW2JHBK433XKJSDFLLLPSIC5PANCNFSM4HIQCOAA .
Oh okay. I was unsure what I could pass to the c++ methods because I didn't fully understand it when I was trying to create the C# dll importer
Hello,
Sorry for the delay got busy with my 2 toddlers.
Here is a link to the shared folder on my Google Drive.
The application is written in C# and demonstrates the use of the wrapper to call to the ShuttleSDK.
If you need any help please let me know.
Also please note both my wrapper DLL and the ShuttleSDK.DLL must be referenced in your project for the wrapper to work.
As well, you must implement ALL the events my wrapper exposes (even if you plan to not use them) or your project will throw errors.
The wrapper is written in C# .NET CLR 4.6
Here is the link: please do not share link without my permission please. I like to know before hand who is using my code :)
https://drive.google.com/drive/folders/1u-4m65xGRfj2oXAw_ziY-Y1aMoZqD6YY?usp=sharing
Thanks,
Eddie
On Thu, Apr 25, 2019, 2:10 PM dvsportGreco, notifications@github.com wrote:
Oh okay. I was unsure what I could pass to the c++ methods because I didn't fully understand it when I was trying to create the C# dll importer
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dvsportGreco/ShuttleProC-Wrapper/issues/1#issuecomment-486820090, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRKEW6CPY2C5ILZNDG7OQLPSIFZVANCNFSM4HIQCOAA .
I won't share the link with anyone and thanks, I just pulled it down and ran it. After running the sample app and selecting "SHUTTLEPRO V2" for my device and "Primary", then clicking "Register Device", I'm receiving "SHUTTLESDK_ERRDRVNOTFOUND". On my computer all I did was plug in the ShuttlePro v2 device, I didn't install any drivers. Any thoughts?
I just installed the drivers and now I get SHUTTLESDK_OK after "Registering Device" every time, even if the device isn't connected to the computer
After restarting my computer, they started triggering events and now it's working. Great wrapper! I appreciate it, thanks.
Hello,
Yes the dll is 32 bit. The 64 dll uses a slightly different entry point. I am at work right now, but when I get home tonight I will modify the 32 but version and create you a 64 bit version. The wrappers voids should not change so all you will have to do is in reference the 32 bit dll and then add a reference for the 64 bit dll.
Sorry about that. I was coding a 32 bit app when I designed it so I completely forgot about 64 bit compatibility.
Should not be a hard fix.
Once I have it uploaded I will send you the download link.
Thanks,
Eddie
On Tue, May 7, 2019, 8:42 AM dvsportGreco, notifications@github.com wrote:
@EddieMac74 https://github.com/EddieMac74 I noticed the library only works with the 32bit ShuttleSdk.dll, which forces my application to run in 32 bit if I want to utilize the wrapper. When I add the 64bit ShuttleSdk.dll I get this error message:
"Unable to find an entry point named '_Shuttle_Register_Callback@12' in DLL 'ShuttleSDK.dll'." " at ShuttleNET.Contour._Shuttle_RegisterCallback_Msg(MulticastDelegate shuttleproc, UInt16 type, UInt16 devno) at ShuttleNET.Contour.RegisterCallBack(DeviceType Device, DeviceNo DeviceNumber)"
For the 64bit dll, I'm using "Shuttle SDK Distribution > SDK > DLL > ShuttleSDK64.dll" which I rename to ShuttleSDK.dll for the application to use. https://www.dropbox.com/s/cc8iuameg6dijcc/Shuttle_Windows_SDK_Distribution.zip?dl=0
Any thoughts? Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dvsportGreco/ShuttleProC-Wrapper/issues/1#issuecomment-490109779, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRKEW4N4YRJHTVEMMM5XQLPUGIOLANCNFSM4HIQCOAA .
Hello,
Here is the link for the new demo project with the 64 bit version of the Shuttle wrapper dll included.
https://drive.google.com/drive/folders/19mdKBlzVsTiWqEf7GdOip6rA0wKiLXZs?usp=sharing
I have tested it and it works fine. If you need any help please let me know. The demo app will show you how to implement it. It is pretty straight forward.
Please Note: The 64 bit version of the wrapper is compile for 64 bit only (no 32 bit compatibility).
Thanks,
Eddie
On Tue, 7 May 2019 at 13:58, Edward MacDonald edwardmacdonald74@gmail.com wrote:
Hello,
Yes the dll is 32 bit. The 64 dll uses a slightly different entry point. I am at work right now, but when I get home tonight I will modify the 32 but version and create you a 64 bit version. The wrappers voids should not change so all you will have to do is in reference the 32 bit dll and then add a reference for the 64 bit dll.
Sorry about that. I was coding a 32 bit app when I designed it so I completely forgot about 64 bit compatibility.
Should not be a hard fix.
Once I have it uploaded I will send you the download link.
Thanks,
Eddie
On Tue, May 7, 2019, 8:42 AM dvsportGreco, notifications@github.com wrote:
@EddieMac74 https://github.com/EddieMac74 I noticed the library only works with the 32bit ShuttleSdk.dll, which forces my application to run in 32 bit if I want to utilize the wrapper. When I add the 64bit ShuttleSdk.dll I get this error message:
"Unable to find an entry point named '_Shuttle_Register_Callback@12' in DLL 'ShuttleSDK.dll'." " at ShuttleNET.Contour._Shuttle_RegisterCallback_Msg(MulticastDelegate shuttleproc, UInt16 type, UInt16 devno) at ShuttleNET.Contour.RegisterCallBack(DeviceType Device, DeviceNo DeviceNumber)"
For the 64bit dll, I'm using "Shuttle SDK Distribution > SDK > DLL > ShuttleSDK64.dll" which I rename to ShuttleSDK.dll for the application to use. https://www.dropbox.com/s/cc8iuameg6dijcc/Shuttle_Windows_SDK_Distribution.zip?dl=0
Any thoughts? Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dvsportGreco/ShuttleProC-Wrapper/issues/1#issuecomment-490109779, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRKEW4N4YRJHTVEMMM5XQLPUGIOLANCNFSM4HIQCOAA .
Thanks!
Yes, of course you can. L5s2
On Fri, Aug 2, 2019, 2:03 AM SDR Plugins, donotreply@godaddy.com wrote:
Reply to Email to Respond
Name: heinrich runge
Email: heinrich.runge@gmail.com
Message: Hello, I have read a report on the internet that it is a plugin written for TMate2 SDR #. That would be very interesting to me if it works for me as well. Maybe I can get a beta version of you. I thank you in advance and wish you a nice day.
This message was submitted from your website contact form: http://sdrplugins.com
2773781666
@EddieMac74
I found your post on http://forums.contourdesign.com/viewtopic.php?t=115 about having a C# wrapper for the ShuttleSDK? Is there anyway to make that public? I've been trying to implement Contour Designs SDK in a C# project but it's very poorly assembled. Thanks!