3 of 6
3
Creating multitouch applications
Posted: 13 July 2008 04:09 PM   [ Ignore ]   [ # 31 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14
soybomb - 13 July 2008 10:50 AM

When I build Multitouch.Service.sln it just says “Build Successful”. 

Did you want me to press F5 to debug?  B/c when I do that it says “A project without an Output Class cannot be started directly.  In order to debug this project, add an executable project to this solution which references the library project.  Set the executable project as the startup project.”

Where does pipeline builder fit in?  Is it just working behind the scenes, or do I need to open it up and do anything in there?

edit:
BTW, when I attempted to compile dwmaxx from that source code I got a lot of errors.  If I was able to successfully register those 2 .dll files - do I need to compile dwmaxx still?

You don’t need anything to do with Pipeline builder. Install it and forget about it.

In Multitouch.Service.sln select Multitouch.Service.Console as a startup project. Right click on it and select “Set as Startup project”. Then you press F5 to start a project.

If you can register dwmaxx.dll you don’t need to compile yourself. To compile dwmaxx from source code you need DirectX SDK, Platform SDK, ....

Profile
 
 
Posted: 13 July 2008 06:30 PM   [ Ignore ]   [ # 32 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

Daniel,

I did as you said with Multitouch.Services.sln and now when I start debugging it- It pulls up a dos window and acts like it’s starting a service but then there’s another exception (pic of debug attached):

Multitouch.Service.Logic.MultitouchException was unhandled
Message="Input provider ‘MultipleMice.InputProvider’ could not be found”
Source="Multitouch.Service.Logic"
StackTrace:
at Multitouch.Service.Logic.MultitouchInput.Start() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Multitouch.Service.Logic\MultitouchInput.cs:line 43
at Multitouch.Service.Console.Program.Main() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Multitouch.Service.Console\Program.cs:line 11
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Image Attachments
MTService_Debug1.jpg
 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 14 July 2008 05:37 AM   [ Ignore ]   [ # 33 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14

Did you compiled Multitouch.InputProviders.sln before?

Profile
 
 
Posted: 14 July 2008 10:22 AM   [ Ignore ]   [ # 34 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12
Daniel D - 14 July 2008 05:37 AM

Did you compiled Multitouch.InputProviders.sln before?

Yeah, when it gave me that error I made sure that it was compiled.  I redid everything in the exact order that is listed in the instructions on the MTVista site.

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 14 July 2008 01:04 PM   [ Ignore ]   [ # 35 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14
soybomb - 14 July 2008 10:22 AM

Daniel D - 14 July 2008 05:37 AM
Did you compiled Multitouch.InputProviders.sln before?

Yeah, when it gave me that error I made sure that it was compiled.  I redid everything in the exact order that is listed in the instructions on the MTVista site.

Make sure you have following directory structure:
Output
|----AddIns
| |---MultitpleMice
| |---MultipleMice.dll
|Multitouch.Service.Console.exe

Profile
 
 
Posted: 14 July 2008 08:31 PM   [ Ignore ]   [ # 36 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

The only thing different: my multipleMice.dll was inside of my multipleMice folder.

I copied and pasted it into the AddIns folder (which contained mainly folders, no other .dll’s).

I still get those errors when debugging.  I thought maybe I should paste multiplemice.dll into my Multitouch.Service.Logic folder - but that didn’t work either.

Multitouch.Service.sln successfully builds - When I debug it - the WCF Service Host icon appears on my taskbar - but then it gives me these same errors:

Multitouch.Service.Logic.MultitouchException was unhandled
Message="Input provider ‘MultipleMice.InputProvider’ could not be found”
Source="Multitouch.Service.Logic"
StackTrace:
at Multitouch.Service.Logic.MultitouchInput.Start() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Multitouch.Service.Logic\MultitouchInput.cs:line 43
at Multitouch.Service.Console.Program.Main() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Multitouch.Service.Console\Program.cs:line 11
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 14 July 2008 09:42 PM   [ Ignore ]   [ # 37 ]
New Member
Rank
Total Posts:  24
Joined  2008-07-02
nickdb93 - 08 July 2008 02:52 PM

great, that worked Daniel. thank you. now, on to Multitouch.Service.sln :(

when i try to open it, it says its not compatible with this installation of visual studio (but, in like 4 different windows). it also gives me 5 errors, and 4 warnings when i try to build it.
the majority of both are dealing with Multitouch.ServiceLogic.sln , dwmaxxLib , DWMInjector Class and DWEx .

here are the screenshots, showing each window and all the errors.

i’d really like step-by-step instructions if its possible. thanks in advance

Image Attachments
screenshot1.jpgscreenshot2.jpgscreenshot3.jpgscreenshot4.jpg
Profile
 
 
Posted: 15 July 2008 01:46 AM   [ Ignore ]   [ # 38 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14

I will make some changes in code so you can build without Visual Studio and/or without dwmaxx. And make binary release today evening.

Profile
 
 
Posted: 15 July 2008 02:02 PM   [ Ignore ]   [ # 39 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14

Ok, I have published binaries.

If you still want to compile you can use msbuild.exe. Just start command prompt and run following commands:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Multitouch.Contracts.sln
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Multitouch.InputProviders.sln
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Multitouch.Service.sln /p:Configuration="Debug"
or if you want DWMaxx addin (register dwmaxx.dll with regsvr32 before compiling):
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Multitouch.Service.sln /p:Configuration="Debug with DWMaxx”
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Multitouch.Framework.sln

Profile
 
 
Posted: 15 July 2008 05:56 PM   [ Ignore ]   [ # 40 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

Daniel,

I got the new check-in today, compiled each .sln, and I’m now able to open Multitouch.Service.Console.exe!

I get the 2 red dots for my mice that are connected.  They are both working.

So then I go and open TestApplication.exe located here:  \main source\Framework\TestApplication\bin\Debug\TestApplication.exe

Then it gives me the dw20.exe error, I click cancel to debug, it gives me the debug screen...then TestApplication.exe gives me an error, I press cancel to debug and I get the error in the picture attached to this post.

Image Attachments
testapp_debug.jpg
 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 16 July 2008 01:56 AM   [ Ignore ]   [ # 41 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14

Sorry, I have forgot to remove TabletPC dependencies. You can now download “Only Framework binaries for non TabletPC” file and replace the files in Framework directory.

Profile
 
 
Posted: 16 July 2008 02:07 AM   [ Ignore ]   [ # 42 ]
Jr. Member
RankRank
Total Posts:  120
Joined  2008-02-04

ah that explains the crash on the ink panel, i disabled half the TabletPC services on my pc rasberry

Profile
 
 
Posted: 16 July 2008 03:42 PM   [ Ignore ]   [ # 43 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

Got the test working with the two mice!  Thanks very much for all your help.

How do you exit the test app?  I pressed escape and enter...but the only way I can get out of it is control alt delete > task manager and force the window to close.  Same with most of the .wpf samples I’ve compiled with the other framework.

Is it possible to run the test app with my table running touchlib?  Or is it just able to read the mice input?  I will now redo the hello world/photo project.

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 16 July 2008 04:11 PM   [ Ignore ]   [ # 44 ]
Sr. Member
RankRankRank
Total Posts:  287
Joined  2007-07-14

you can exit any windows application using Alt+F4. yes, you can use touchlib and your table. try Multitouch.Configuration.WPF.exe to switch input provider. touchlib input provider uses CsTI. it is not very stable on my computer. try it and tell me if it worked.

Profile
 
 
Posted: 16 July 2008 06:21 PM   [ Ignore ]   [ # 45 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12
Daniel D - 16 July 2008 04:11 PM

you can exit any windows application using Alt+F4. yes, you can use touchlib and your table. try Multitouch.Configuration.WPF.exe to switch input provider. touchlib input provider uses CsTI. it is not very stable on my computer. try it and tell me if it worked.

When I went to \main source\configuration\Multitouch.Configuration.WPF\ to compile Multitouch.Configuration.WPF.exe - it said that it couldn’t find the reference multitouch.configuration.  Then when I debug it, I get these errors (pics attached)

Image Attachments
Multitouch.Configuration.WPF debug_2.jpgMultitouch.Configuration.WPF debug_1.jpg
 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
   
3 of 6
3