What is the other purpose of the .H header file and IDL file?

I am learning COM, so there are some basic questions puzzling me ...

I know that an IDL file is used to describe method definitions (or the so-called “contract” between program modules), and the .H header files contain something like a prototype method that looks like what IDL means for. So why do these two things coexist? Is it not enough?

Many thanks.

+5
source share
4 answers

An interface description language (IDL) is a small language per se that provides an interface description language independent of the programming language. Tools generate .h files from your .idl.

.h, ..h C ++.

, .h , , - . IDL .

+8

:

( , ), IDL , , . IDL , , - , , ++ , Java.

, .H C/++ -. , .

+1

.h - , , .. , . , , , , CORBA, , addres, , , , . , . IDL , ORB. . , , , .

IDL /, . IDL ( ) "", . - , IDL, , ORB .

:

. , IDL - , "", , IDL, IDL , ++ ORB. ?

. IDL , ( ) . OMG ( corba idl) idl : . http://www.omg.org/technology/documents/idl2x_spec_catalog.htm

, IDL - , . IDL - , , , . , C, , . C (x86, sparc, ). , CORBA ( ) , IDL, , , CORBA .

, COM-, , COM- CORBA ( ), .

+1

IDL .

C , - .

IDL , . COM-. COM-, , out-proc -. ATL COM-, , COM.

0
source

All Articles