在做一个项目,使用.idl文件,可是不知道怎么使用啊,哪位大神教教。

解决方案 »

  1.   

    IDL是com接口描述语言。你看一下com相关技术
      

  2.   

    IDL 是可以被编译的 ,编译后会生成对应的 .h .c 文件 不过注意 IDL 是有版本差别的 ,原来VC 里是 ODL ,和现在VC 里面的有所不同。如果你用别人的 COM ,建议最好不要用这种原始的办法 ,你要重新实现好多东西,建议还是 import     tlb  比较好
      

  3.   

    我这个是Corba的,
      

  4.   

    没用过 CORBA ,不过初步判断可能只是 叫同样的名字,内涵是不同的 。原来曾经做过 tongeasy 中间件的对接 ,也是IDL 文件 ,但是和 vc 所称的 IDL 完全不同
      

  5.   

    Using The MIDL Compiler
    The MIDL compiler is automatically installed as part of the Win32 SDK or Win16 SDK setup. The following topics describe MIDL's C compiler and preprocessor requirements, the link libraries that are part of the RPC product, and the files that MIDL generates for OLE interfaces, RPC interfaces, and type libraries. For more information about the files that make up the RPC product, seeInstalling the RPC Programming Environment. 
      

  6.   

    使用MIDL编译器
    MIDL编译器作为Win32 SDK或Win16 SDK设置的一部分自动安装。 以下主题描述了MIDL的C编译器和预处理器要求,作为RPC产品一部分的链接库以及MIDL为OLE接口,RPC接口和类型库生成的文件。 有关构成RPC产品的文件的更多信息,请参阅安装RPC编程环境。