在做一個專案,使用.idl檔案,可是不知道怎么使用啊,哪位大神教教。
uj5u.com熱心網友回復:
IDL是com介面描述語言。你看一下com相關技術uj5u.com熱心網友回復:
IDL 是可以被編譯的 ,編譯后會生成對應的 .h .c 檔案不過注意 IDL 是有版本差別的 ,原來VC 里是 ODL ,和現在VC 里面的有所不同。
如果你用別人的 COM ,建議最好不要用這種原始的辦法 ,你要重新實作好多東西,
建議還是 import tlb 比較好
uj5u.com熱心網友回復:
我這個是Corba的,uj5u.com熱心網友回復:
沒用過 CORBA ,不過初步判斷可能只是 叫同樣的名字,內涵是不同的 。原來曾經做過 tongeasy 中間件的對接 ,也是IDL 檔案 ,但是和 vc 所稱的 IDL 完全不同
uj5u.com熱心網友回復:
好像沒有人給出解決問題的方法。uj5u.com熱心網友回復:
Using The MIDL CompilerThe 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.
uj5u.com熱心網友回復:
使用MIDL編譯器MIDL編譯器作為Win32 SDK或Win16 SDK設定的一部分自動安裝。 以下主題描述了MIDL的C編譯器和前處理器要求,作為RPC產品一部分的鏈接庫以及MIDL為OLE介面,RPC介面和型別庫生成的檔案。 有關構成RPC產品的檔案的更多資訊,請參閱安裝RPC編程環境。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/93910.html
下一篇:如何使用char型字串陣列??
