0207 sip rtc microsoft compile Interop.RTCCore.dll
下载了RTC SDK 1.3,发现
M:\\sips\\RTCSamples\\RtcPresence>compile.bat
The file Interop.RTCCore.dll was not locatable.
Please copy the file to the current directory and retry.
看看说明:
Building the Sample
============
* Verify that Microsoft .Net Framework version 1.1.4322 is installed.
* Add ".Net Framework" to the system PATH variable (typically, this is
%windir%\\Microsoft.Net\\Framework\\v1.1.4322).
* Produce the Interop assembly. The Interop assembly (also known as Runtime Callable
Wrappers) allows COM objects to be referenced by .Net clients. One manner to
produce the assembly is to use the type library importer tool (Tlbimp.exe), which is
part of the .Net framework. The following is an example method to generate the
type library and then the assembly.
midl /I "your path\\Microsoft SDK\\Include"
/I "your Visual Studio path\\PlatformSDK\\Include\\DShowIDL" rtccore.idl
tlbimp rtccore.tlb /out:Interop.RTCCore.dll /namespace:RTCCore /sysarray
* Copy the Interop.RTCCore.dll file to the RTCPresence sample directory. Compile the
Compile.bat file and follow the instructions.
结果报告:
control.odl
O:\\微软\\vs7\\Vc7\\PlatformSDK\\Include\\DShowIDL\\control.odl(158) : error MIDL2025 :
syntax error : expecting a type specification near "LONG_PTR"
O:\\微软\\vs7\\Vc7\\PlatformSDK\\Include\\DShowIDL\\control.odl(158) : error MIDL2026 :
cannot recover from earlier syntax errors; aborting compilation
看看错误:
MIDL2025 : syntax error
The compiler detected a syntax error at the specified line.
MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
The MIDL compiler automatically tries to recover from syntax errors by adding or removing syntactic elements. This message indicates that despite these attempts to recover, the compiler detected too many errors. Correct the specified error(s) and recompile.
安装SDK;配置PATH环境变量,F:\\WINXP\\Microsoft.Net\\Framework\\v1.1.4322
midl /I "O:\\ms\\xpsdk\\Include" /I "O:\\微软\\vs7\\Vc7\\PlatformSDK\\Include\\DShowIDL" rtccore.idl 终于:rtccore.tlb
F:\\Program Files\\RTC Client API v1.3 SDK\\SDK\\IDL>"O:\\微软\\vs7\\SDK\\v1.1\\Bin\\tlbim
p" rtccore.tlb /out:Interop.RTCCore.dll /namespace:RTCCore /sysarray
Microsoft (R) .NET Framework Type Library to Assembly Converter 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Type library imported to F:\\Program Files\\RTC Client API v1.3 SDK\\SDK\\IDL\\Intero
p.RTCCore.dll
终于:M:\\sips\\RTCSamples\\RtcPresence>compile.bat
Now building RTCPresence (csc.exe was found at "F:\\WINXP\\Microsoft.NET\\Framework
\\v1.1.4322").
Output directory is bin
Microsoft (R) Visual C# .NET 编译器版本 7.10.3052.4
用于 Microsoft (R) .NET Framework 版本 1.1.4322
版权所有 (C) Microsoft Corporation 2001-2002。保留所有权利。
Built successfully
In order to run the sample:
- Copy Interop.RTCCore.dll to the executable directory
- Copy RTCPresence.exe.manifest to the executable directory
最后放到 .NET FRAMWORK 环境下运行OK
vs2005 D:\\vs8\\Common7\\Tools\\Bin\\midl /I "D:\\vs8\\VC\\PlatformSDK\\Include" /I "D:\\vs8\\Vc\\PlatformSDK\\Include\\DShowIDL" rtccore.idl
D:\\vs8\\SDK\\v2.0\\Bin\\tlbimp rtccore.tlb /out:Interop.RTCCore.dll /namespace:RTCCore /sysarray
历史博文
- 20080824 winpe usb - 2009
- 20070720 graybird 金山 灰鸽子 专杀 - 2008
- 1115 VCARD VCF - 2007
- 空间终于又好了 - 2005
- cvstrac的mail插件 - 2005
- Java编程LINUX下运行-JDK安装和环境变量设置 - 2005