Can not generate project

Jul 6, 2008 at 9:26 PM

------ 已启动生成: 项目: DWMaxxAddIn, 配置: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3287: 无法加载引用“dwmaxxLib”的类型库。库没有注册。 (异常来自 HRESULT:0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:Lib\AdvanceMath.dll /reference:Lib\ManagedWinapi.dll /reference:..\..\Output\AddInViews\Multitouch.Views.dll /reference:Lib\Physics2DDotNet.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationCore.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.AddIn.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationClient.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationTypes.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\DWMaxxAddIn.dll /target:library Accelerometer.cs AccelerometerDataEventArgs.cs Desktop.cs InputPreviewHandler.cs MessageEvents.cs MessageReceivedEventArgs.cs Extensions.cs Native\NativeMethods.cs Properties\AssemblyInfo.cs Result.cs TransformedContact.cs Window.cs WindowCollection.cs WindowContact.cs WindowContacts.cs WindowManager.cs
D:\我的资料\windows多点\MultiTouchVista-14036\Main Source\Multitouch.Service.AddIns\DWMaxxAddIn\Desktop.cs(12,7): 错误 CS0246: 找不到类型或命名空间名称“dwmaxxLib”(是否缺少 using 指令或程序集引用?)
D:\我的资料\windows多点\MultiTouchVista-14036\Main Source\Multitouch.Service.AddIns\DWMaxxAddIn\Desktop.cs(26,3): 错误 CS0246: 找不到类型或命名空间名称“DWMInjectorClass”(是否缺少 using 指令或程序集引用?)
D:\我的资料\windows多点\MultiTouchVista-14036\Main Source\Multitouch.Service.AddIns\DWMaxxAddIn\Desktop.cs(27,3): 错误 CS0246: 找不到类型或命名空间名称“DWMEx”(是否缺少 using 指令或程序集引用?)

编译完成 -- 3 个错误,0 个警告
已完成生成项目“DWMaxxAddIn.csproj”-- 失败    

Coordinator
Jul 7, 2008 at 7:16 AM
You have to register DWMaxx as a COM using regsvr32:
regsvr32 dwmaxxPS.dll
regsvr32 dwmaxx.dll
Jul 7, 2008 at 1:22 PM
Tip loadlibrary (D: \………… lib \ dwmaxx.dll) failed, could not find the specified procedure
 However, show folders with this procedure
dwmaxxps.dll Successfully registered.
Jul 7, 2008 at 1:29 PM
----- Has started generating: Item: Multitouch.Service.Logic, configuration: Debug Any CPU ------
 Multitouch.Service.Logic -> D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Output \ Multitouch.Service.Logic.dll
 ------ Has started generating: Item: Multitouch.Service.Console, configuration: Debug Any CPU ------
 Multitouch.Service.Console -> D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Output \ Multitouch.Service.Console.exe
 ------ Has started generating: Item: PostSingleInput, configuration: Debug Any CPU ------
 PostSingleInput -> D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Output \ AddIns \ PostSingleInput \ PostSingleInput.dll
 ------ Has started generating: Item: Multitouch.Service, configuration: Debug Any CPU ------
 Multitouch.Service -> D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Output \ Multitouch.Service.exe
 ------ Has started generating: Item: ApplicationSelector, configuration: Debug Any CPU ------
 ApplicationSelector -> D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Output \ AddIns \ ApplicationSelector \ ApplicationSelector.dll
 ------ Has started generating: Item: DWMaxxAddIn, configuration: Debug Any CPU ------
 C: \ WINDOWS \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.Common.targets: warning MSB3287: unable to load cited "dwmaxxLib" of the type library. Library not registered. (Abnormal from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
 C: \ WINDOWS \ Microsoft.NET \ Framework \ v3.5
\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:Lib\AdvanceMath.dll /reference:Lib\ManagedWinapi.dll /reference:..\..\Output\AddInViews\Multitouch.Views.dll /reference:Lib\Physics2DDotNet.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationCore.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.AddIn.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationClient.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationTypes.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\DWMaxxAddIn.dll /target:library Accelerometer.cs AccelerometerDataEventArgs.cs Desktop.cs InputPreviewHandler.cs MessageEvents.cs MessageReceivedEventArgs.cs Extensions.cs Native\NativeMethods.cs Properties\AssemblyInfo.cs Result.cs TransformedContact.cs Window.cs WindowCollection.cs WindowContact.cs WindowContacts.cs WindowManager.cs
D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Multitouch.Service.AddIns \ DWMaxxAddIn \ Desktop.cs (12,7): error CS0246: type, or can not find room for naming names "dwmaxxLib" (whether or not the lack of using instructions or procedures Set quoted »)
 D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Multitouch.Service.AddIns \ DWMaxxAddIn \ Desktop.cs (26,3): error CS0246: type, or can not find room for naming names "DWMInjectorClass" (whether or not the lack of using instructions or procedures Set quoted »)
 D: \ myfile \ windowsmultitouch \ MultiTouchVista-14159 \ MainSource \ Multitouch.Service.AddIns \ DWMaxxAddIn \ Desktop.cs (27,3): error CS0246: type, or can not find room for naming names "DWMEx" (whether or not the lack of using instructions or procedures Set quoted »)
 
 Compiler COMPLETED - three errors, 0 warnings
 Generating projects have been completed "DWMaxxAddIn.csproj" - failed.
 ========== Generation: the success or the latest five, a failure, Skip 0 ==========

No changes!
Coordinator
Jul 7, 2008 at 6:14 PM
you have to register dwmaxx.dll. without it you can't compile dwmaxxaddin.
dwmaxx is for Vista SP1.

you can use MultiTouchVista without dwmaxxaddin. dwmaxxaddin is only needed if you want to rotate/move/scale windows on desktop.