2 of 6
2
Creating multitouch applications
Posted: 09 July 2008 11:54 AM   [ Ignore ]   [ # 16 ]
New Member
Rank
Total Posts:  86
Joined  2008-05-16
soybomb - 09 July 2008 09:34 AM

How do you “register dwmaxxps.dll and dwmaxx.dll as com components”?

Daniel D already showed you how:

Daniel D - 08 July 2008 03:29 PM

regsvr32 dwmaxxps.dll
regsvr32 dwmaxx.dll

Type that in a VS Command Prompt (may require to be run as admin)

Profile
 
 
Posted: 09 July 2008 01:09 PM   [ Ignore ]   [ # 17 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

Oh, I don’t think Visual Express 2008 has a command prompt. 

Someone says that it’s possible to do it with the windows command prompt in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3553883&SiteID=1

When I tried to do it with Windows’ Command prompt, it says something like ‘unable to load dwmaxx.dll because application configuration is incorrect. Reinstalling the app may help’ - Anyone have any ideas about what I should try next?  It would be very much appreciated

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 09 July 2008 01:33 PM   [ Ignore ]   [ # 18 ]
Sr. Member
RankRankRank
Total Posts:  286
Joined  2007-07-14

You have to start command prompt as admin. There you can run regsvr32.
It is possible that you need to install “Visual C++ 2005 Redistributable” or “Visual Studio C++ 2008 Redistributable”.

Multitouch.Service.sln contains projects that are of WCF type. VS Express has only WPF designer support. Can you open and compile those projects?

Profile
 
 
Posted: 10 July 2008 07:42 PM   [ Ignore ]   [ # 19 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12
Daniel D - 09 July 2008 01:33 PM

You have to start command prompt as admin. There you can run regsvr32.
It is possible that you need to install “Visual C++ 2005 Redistributable” or “Visual Studio C++ 2008 Redistributable”.

Multitouch.Service.sln contains projects that are of WCF type. VS Express has only WPF designer support. Can you open and compile those projects?

I downloaded the redistributable and tried with Visual Studio professional...still no luck.  It also said regsvr32 is an invalid action or whatever when I tried in the Studio Professional command line as administrator.

Guess I’m going to give up for a little while :-(

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 11 July 2008 02:15 AM   [ Ignore ]   [ # 20 ]
Jr. Member
RankRank
Total Posts:  119
Joined  2008-02-04

If your running Vista just click on the start button, in the “Start search” field type “cmd” .. wait until it found “cmd.exe” , rightclick cmd.exe and click on run as administrator..
Then go to the directory “Main Source\Multitouch.Service.AddIns\DWMaxxAddIn”
and type:

regsvr32 dwmaxxps.dll
regsvr32 dwmaxx.dll

Profile
 
 
Posted: 11 July 2008 08:40 AM   [ Ignore ]   [ # 21 ]
New Member
Rank
Total Posts:  24
Joined  2008-07-02

do you open up “external tools” in the “tools” menu, and then add those commands in the “command” category in that window? if so, what goes in the other three fields (name, arguments, initial directory)? and what about the four checkboxes? which ones get selected, and which do not?

if that’s not how you do it, then how DO you do it?

Profile
 
 
Posted: 11 July 2008 11:07 AM   [ Ignore ]   [ # 22 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12
Helza1 - 11 July 2008 02:15 AM

If your running Vista just click on the start button, in the “Start search” field type “cmd” .. wait until it found “cmd.exe” , rightclick cmd.exe and click on run as administrator..
Then go to the directory “Main Source\Multitouch.Service.AddIns\DWMaxxAddIn”
and type:

regsvr32 dwmaxxps.dll
regsvr32 dwmaxx.dll

I’ve been trying with XP and Vista.  When I tried the above method on my vista basic machine, I get this error “The module “dwmaxx.dll” failed to load.  Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.  The application has failed to start because its side-by-side configuration is incorrect.  Please see the application event log for more detail.”

Then I navigated to “Main Source\Multitouch.Service.AddIns\DWMaxxAddIn\Lib” as administrator in the command window - and still get the same error.  The .DLL files are in the ‘Lib’ folder - so I don’t know what the deal is.

**EDIT**
I got it to work for dwmaxxps.dll, but it’s still giving me a similar error saying it can’t be found for dwmaxx.dll
I have attached a picture of the error screen that I now get when compiling multitouch.service.sln in VS 2008

Image Attachments
multitouch.service-ERRORscr.jpg
 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 11 July 2008 12:35 PM   [ Ignore ]   [ # 23 ]
Sr. Member
RankRankRank
Total Posts:  286
Joined  2007-07-14
soybomb - 11 July 2008 11:07 AM

I’ve been trying with XP and Vista.  When I tried the above method on my vista basic machine, I get this error “The module “dwmaxx.dll” failed to load.  Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.  The application has failed to start because its side-by-side configuration is incorrect.  Please see the application event log for more detail.”

XP does not have DWM (Desktop Window Manager).
Vista has one, but.... Wikipedia says: “It is included with Windows Vista Home Basic edition, but with some aspects of the Windows Aero interface (such as Glass and Flip 3D) disabled.”
I don’t know if it works with Basic edition. It should work with Home Premium, Enterprise and Universal (maybe Business).

You can also try to compile dwmaxx.dll youself. You can find source code here: http://code.google.com/p/dwmaxx/

dwmaxx is a little hack, that is why it makes so many troubles.

Profile
 
 
Posted: 11 July 2008 05:47 PM   [ Ignore ]   [ # 24 ]
Jr. Member
RankRank
Total Posts:  119
Joined  2008-02-04

I’m having the same problem with my Vista laptop (vista business), dwmaxxps.dll will register ok, dwmaxx.dll will refuse to register with the same error message.
On my desktop PC (vista ultimate) everything will register normally. I’ll see if i get a chance to recompile it myself..

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

Ok, now I’m setup as Administrator on a Vista Ultimate machine (running VS 2008) with MTVista check-in from today [7-12-08].

I got to the multitouch.service.sln and it gave me some errors again.  So I navigated to the /main source/multitouch.service.addins/dwmaxxaddins/Lib/ folder and right clicked on the 2 .dll files and clicked “register”.  It popped up the regsvr32 successful windows.  Then I was able to compile it.

So now I’ve moved on to the Multitouch.Framework.sln
Now I get these errors when compiling:

---------------------------------------------------------------------------------------------------------------

Warning 1 Could not resolve this reference. Could not locate the assembly “IAWinFX, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.  TestApplication

Error 2 The type or namespace name ‘InkAnalyzer’ could not be found (are you missing a using directive or an assembly reference?) C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Framework\TestApplication\Window1.xaml.cs 21 3 TestApplication

Error 3 The type or namespace name ‘ResultsUpdatedEventArgs’ could not be found (are you missing a using directive or an assembly reference?) C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Framework\TestApplication\Window1.xaml.cs 128 50 TestApplication

Error 4 Unknown build error, ‘Could not load file or assembly ‘file:///C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Framework\TestApplication\obj\Debug\TestApplication.exe’ or one of its dependencies. The system cannot find the file specified. Line 11 Position 6.’ C:\Users\Administrator\Documents\Visual Studio 2008\Projects\MultiTouchVista1\Main Source\Framework\TestApplication\Window1.xaml 11 6 TestApplication

Warning 5 The referenced component ‘IAWinFX’ could not be found.

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 12 July 2008 05:19 PM   [ Ignore ]   [ # 26 ]
Sr. Member
RankRankRank
Total Posts:  286
Joined  2007-07-14

I have checked-in source code from dwmaxx so you can compile it yourself. Look for “DWMaxx custom source.rar” in Main Source\Multitouch.Service.AddIns\DWMaxxAddIn\Lib\.

IAWinFX is located in Windows SDK (http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en).

Profile
 
 
Posted: 12 July 2008 11:27 PM   [ Ignore ]   [ # 27 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

Thanks for being so helpful and patient guys.  I had forgotten to install the SDK; thanks for the link.

I finally got the Multitouch.Framework.sln to compile.  But now when I run Multitouch.Service.Console.exe I get the “dw20.exe” errors as seen in the pictures attached to this post. 

I ran installutil.exe on Multitouch.Service.exe and started it under the control panel, but I still got those 2 same errors as soon as I started the service.  I also get them when trying to run the TestApplication.exe

I’ve also attached a picture of the debug window for dw20.exe

Image Attachments
MTS_error_2.jpgMTS_error_1.jpgdw20_debug.jpg
 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 13 July 2008 03:40 AM   [ Ignore ]   [ # 28 ]
Sr. Member
RankRankRank
Total Posts:  286
Joined  2007-07-14

Could you please open Multitouch.Service.sln in Visual Studio and run it and post a picture of exception?

Profile
 
 
Posted: 13 July 2008 10:50 AM   [ Ignore ]   [ # 29 ]
New Member
Avatar
Rank
Total Posts:  96
Joined  2007-12-12

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?

 Signature 

http://multitouchproject.blogspot.com/

Profile
 
 
Posted: 13 July 2008 10:53 AM   [ Ignore ]   [ # 30 ]
New Member
Rank
Total Posts:  24
Joined  2008-07-02

When it says that you’ve had a successful build, I think (and I hope) that it has been successfully compiled.

Profile
 
 
   
2 of 6
2