FreeTrack Forum
FreeTrack Forum > FreeTrack : English Forum > Support : FreeTrack Software > Using FreeTrackClient.dll in C#?
lowpass | #1 18/04/2009 - 22h37 |
Class : Apprenti Off line |
I want to graft Freetrack-tracking into modified version of Johnny Lee's DesktopVR demo (I put in webcam support). Should be easy if I can get freetrack talking into C# space.
When I try add FreeTrackClient.dll as a resource in the C# (visual studio express C#), it claims it is not valid. Is the client code missing something C# needs to hook into it? I'd be happy to do the work required if somebody can tell me approximately what that is.. Cheers. Freetrack is a great project! |
codeking | #2 20/04/2009 - 10h23 |
Class : Apprenti Off line |
Have You tried to add it to resources or as reference ? I You want to get data from FT ie. You have to use P/Invoke, I did it lately so I can post simple C# code - give me a info on PM.
|
lowpass | #3 20/04/2009 - 19h37 |
Class : Apprenti Off line |
I think I've figured out what's going on.
Some useful stuff &cd=1&hl=en&ct=clnk&gl=ca]here. And here is the code. http://www.geocities.com/giovanni.dicanio/temp/InteropTest1.zip |
lowpass | #4 23/04/2009 - 00h52 |
Class : Apprenti Off line |
Turns out what's above isn't quite right. I took a look at FTServer.pas and copied the data structure. What's below seems to report everything nicely.
Checking if the DLL loaded and reporting data.
Using information from the wiimote.
Thanks everyone. Hope this is helpful in the future. |
aparsons | #5 20/04/2012 - 05h04 |
Class : Apprenti Off line |
You sweet sweet person you. I'm pretty good with making a .Net program in VB and C#, but not so skilled in importing unmanaged "classic" code into a .Net program unless it is well documented what structures and variable types. THIS is what I've been looking for the last week while I'm writing a HMD HUD program.
I just finished the prototype helmet 3point rig and have configured FreeTrack to work well, but am now trying to tie the x/y/z/pitch/yaw/roll data into the early stage of the software. I may just write a demo program for the .Net users VB and C# just to take this the next step and help out this great program and its user base. |
kobu | #6 07/12/2012 - 08h06 |
Class : Apprenti Off line |
Thank You very much. It works fine. You made my day, Cheers
|
FreeTrack Forum > FreeTrack : English Forum > Support : FreeTrack Software > Using FreeTrackClient.dll in C#?
> Stats
2 user(s) connected during the last 10 minutes (0 member(s) and 2 guest(s)).
Powered by Connectix Boards 0.8.4 © 2005-2024 (8 queries, 0.013 sec)