3 of 9
3
CsTI - CSharp Touchlib Interface
Posted: 11 September 2007 06:11 AM   [ Ignore ]   [ # 31 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

in the previous post/attachment it didn’t do a background remove like it should. This attachment fixes it.

File Attachments
CsTI_tlbeta1_fix.zip  (File Size: 34KB - Downloads: 307)
 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 06 October 2007 04:37 AM   [ Ignore ]   [ # 32 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

updated version. now works on vista and xp. you can also now click on a touchlib window and press ‘b’ to recapture the background.

note: this works with touchlib beta 1

File Attachments
CsTI_beta1_vistaxp.zip  (File Size: 32KB - Downloads: 357)
 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 06 October 2007 07:40 AM   [ Ignore ]   [ # 33 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1011
Joined  2007-01-08

awesome, you have c++ skills as well don?

 Signature 

http://www.multitouch.nl / natural-ui.com

Profile
 
 
Posted: 06 October 2007 09:51 AM   [ Ignore ]   [ # 34 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

hehe, yeah I got some. But mainly on Linux in data structures and algorithms.

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 12 February 2008 09:17 AM   [ Ignore ]   [ # 35 ]
New Member
Rank
Total Posts:  2
Joined  2008-02-12

I tried to get the c# wrapper running, but without success so far. when I start the example Program.cs, I get a System.IO.FileNotFoundException {"The specified module could not be found. (Exception from HRESULT: 0x8007007E)”:null}. Any suggestions how to deal with that? I already built the CsTI from Source, no problem with that. I tried on Windows XP and Vista, Visual Studio 2005 and Visual Studio 2008, same result for all of them.

Profile
 
 
Posted: 12 February 2008 02:30 PM   [ Ignore ]   [ # 36 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

do you have the platform sdk? if so, check both dll’s with depends.exe, that will tell you what is missing. usually some dll not in the same folder.

hope that helps.

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 12 February 2008 07:52 PM   [ Ignore ]   [ # 37 ]
New Member
Rank
Total Posts:  3
Joined  2007-12-05

Hey Peter, Make sure that you are keeping the TouchLibWrapper.dll & CSTI.dll (Along with other TouchLib Binaries) in the same folder, where your Program’s Main EXE exists. I was also facing the same Error, but was removed by keeping all the above dlls/Binaries & my Program’s EXE file in a same folder.....

Profile
 
 
Posted: 13 February 2008 03:13 AM   [ Ignore ]   [ # 38 ]
New Member
Rank
Total Posts:  2
Joined  2008-02-12

Thanks a lot, works now! The problem were the missing dlls in the compile folder.

Profile
 
 
Posted: 13 February 2008 07:39 AM   [ Ignore ]   [ # 39 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

excellent!

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 13 February 2008 01:54 PM   [ Ignore ]   [ # 40 ]
New Member
Rank
Total Posts:  30
Joined  2008-02-01

you are truly amazing!  haha, and I love your quote in your sig.

Profile
 
 
Posted: 02 April 2008 05:43 AM   [ Ignore ]   [ # 41 ]
New Member
Rank
Total Posts:  9
Joined  2008-03-25

Hi guys,

I’m trying to re-compile CsTI for Vista, but I’m getting an AcessViolationException every time I call the cs.Startscreen method in C#.

Donovan’s pre-compiled DLLs for Vista work perfectly - I’ve traced the problem to the screen->loadconfig("config.xml") method in TouchlibWrapper, but from there I’ve no clue!

Any ideas?

Profile
 
 
Posted: 02 April 2008 12:19 PM   [ Ignore ]   [ # 42 ]
Sr. Member
RankRankRank
Total Posts:  317
Joined  2007-03-13

hi owenhindley

I saw the email you sent me, sorry for not replying yet, been quite busy. I believe I faced the same problem back when I wrote this, it had something to do with not being able to access processes or something from another thread. Now you might think you’re not using thread but the .NET runtime threads a lot of stuff you’re not aware of. Are you using the visual studio solutions to compile or not? I think I got it working by playing around with some settings in the CsTI and touchlibwrapper projects.

Are you trying to compile it for touchlib’s beta2?

 Signature 

my multitouch blog: http://www.whitespaced.co.za/
those that say it can’t be done shouldn’t interrupt those doing it

Profile
 
 
Posted: 03 April 2008 04:11 AM   [ Ignore ]   [ # 43 ]
New Member
Rank
Total Posts:  9
Joined  2008-03-25

Hi donovan, thanks for the reply!

I’m using the VS solutions that exist in the google code repository, and Visual Studio 2008 to compile them. I think you’re right, that it something within the project settings for CsTI/TouchlibWrapper, but I’m not sure which ones!

I’ve tried various versions of touchlib that the C# app uses at runtime, but when compiling CsTI & TouchlibWrapper, I’m using the source that’s up at code.google.com/touchlib.

The reason why I’m trying to recompile CsTI is to add a recaptureBackground() method, to be called periodically from C# - we’ve got a project where the touchscreen table gets regularly bumped & knocked, and there’s unavoidable changes in light levels.
At the moment we’re using OSC to get touch events into C#, and using SendKeys to send a ‘b’ to it every certain number of touches, which is a bit of a hack!

Profile
 
 
Posted: 09 April 2008 06:36 AM   [ Ignore ]   [ # 44 ]
New Member
Rank
Total Posts:  9
Joined  2008-03-25

..still a bit stumped on recompiling CsTI & TouchlibWrapper without encountering the AccessViolationException in C# - Anyone have any ideas?

I think donovan, you’re definitley right with it being somewhere in the Project settings, but not being that familiar with C++ I’m not sure where to start.

Profile
 
 
Posted: 18 April 2008 04:58 AM   [ Ignore ]   [ # 45 ]
Jr. Member
Avatar
RankRank
Total Posts:  120
Joined  2008-01-28

cant get it to work .... i get a FileNotFound exception .....i have copied all the touchlib bins to my app bin folder ... still the problem persists ....

 Signature 

..’m not the best..but ‘m not like the rest....

Profile
 
 
   
3 of 9
3