Questions tagged [idl]

IDL, short for Interface Description Language, is a language used to describe a software component's public interface in a programming-language-independent manner. (Not to be confused with the [idl-programming-language] tag, which is for a language used for scientific and medical image analysis)

As described on Wikipedia:

An interface description language or interface definition language (IDL), is a specification language used to describe a software component's application programming interface (API). IDLs describe an interface in a language-independent way, enabling communication between software components that do not share one language. For example, between those written in C++ and those written in Java.

IDLs are commonly used in remote procedure call software. In these cases the machines at either end of the link may be using different operating systems and computer languages. IDLs offer a bridge between the two different systems.

Software systems based on IDLs include Sun's ONC RPC, The Open Group's Distributed Computing Environment, IBM's System Object Model, the Object Management Group's CORBA (which implements OMG IDL, an IDL based on DCE/RPC), Mozilla's XPCOM, Facebook's Thrift and WSDL for Web services.

Web specifications use a special form of IDL called WebIDL: https://heycam.github.io/webidl/

558 questions
4
votes
1 answer

Thrift service default parameter

My question is very similar to the question Default arguments with default values in Thrift Python client which was never completely resolved (one answer was a guess and the other was very hard to understand). The question is, can you have a…
FuriousGeorge
  • 4,561
  • 5
  • 29
  • 52
4
votes
1 answer

Difference between API and IDL

Both API and IDL act as an interface between two components of software and play the role of bridge between two components of software or between two software. What is the difference between them?
user2884098
  • 171
  • 1
  • 2
  • 5
4
votes
1 answer

Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers

I have an interface defined in an idl file and trying to convert a vb6 project to vb.net. The conversion created the interop from the tlb of this idl and in vs2010 it complains about the property not being implemented (as shown below). Does anyone…
lee23
  • 409
  • 1
  • 3
  • 10
4
votes
2 answers

Bindings and introspection for OCaml library

I want to write an OCaml library which will be used by other programing languages like C or even python. I not sure it's even feasible, and i guess i need to drop some type safety and add runtime checks to the interface for dynamically typed…
Enjolras
  • 371
  • 2
  • 8
4
votes
2 answers

How to prevent coclass implementations from being exposed in an ATL type library

I am building an ATL type library with a type of class factory. Something sorta like this: [ object, uuid(...), ... ] interface INumber : IDispatch { [propget, id(0)] HRESULT Value([out, retval] LONG* pVal); } [ object, uuid(...), ...…
Miquella
  • 1,074
  • 2
  • 13
  • 25
4
votes
1 answer

Is there a machine-readable version of the WinRT API for JavaScript?

Is there a machine-readable version of the WinRT API? I'm looking for something like a WebIDL, a classic IDL, or any other machine-readable format that would list all the classes, constants, methods, etc. for the WinRT that is accessible in…
Eric Grange
  • 5,931
  • 1
  • 39
  • 61
4
votes
1 answer

Difference in FFT between IDL and Python

I'm passing some simple IDL code to Python. However the returned FFT values form the SciPy/NumPy packages is different than the IDL one and I can't find out why. Reducing it all to a simple example of 8 elements I found that the SciPy/NumPy…
fffff
  • 83
  • 9
3
votes
2 answers

using thrift generated models with Hibernate annotated POJOs

Basically I am in the process of evaluating thrift for an upcoming project. What I am trying to achieve is to have my data layer written in Java which then serves (via thrift) a ror powered website as well as an iPhone application. I have…
luxerama
  • 1,109
  • 2
  • 14
  • 31
3
votes
0 answers

"The type library importer could not convert the signature for the member" warning in a trivial setup

Observe this most trivial IDL file: import "unknwn.idl"; typedef struct _MyStruct { DWORD len; [size_is(len)] BYTE *buffer; } MyStruct; [ object, uuid(903C11E8-46A0-4E6E-B54C-6619B6A42CCB), pointer_default(unique) ] interface…
mark
  • 59,016
  • 79
  • 296
  • 580
3
votes
2 answers

Problem creating COM-library only containing enum's

I'm am doing a COM-interop project. Substituting some VB and C++ ATL COM projects with C# and .NET Interop. When i define enumerations in .NET and they are made ComVisible, they get exposed as Typelib.EnumType_EnumValue enstead of just…
Søren Randrup
  • 318
  • 2
  • 19
3
votes
1 answer

Exposing indexer like properties to COM

I have in existing COM-interface. I wan't to create a .net assembly that exposes a new interface as COM (with a new GUID), but the structure of the interface needs to be the same. How can i create a .net class (C#) that exposes this interface? [ …
Søren Randrup
  • 318
  • 2
  • 19
3
votes
1 answer

Is there a way with MIDL to turn off C-style headers generation?

I have a simple .IDL file (iface.idl) which describes an IUnknown based interface: import "unknwn.idl"; [ uuid(80DFDD28-F033-431e-B027-CDD2078FC78A) ] interface ISunPathCalc : IUnknown { HRESULT Square([in, out] long * pVal); HRESULT…
ezpresso
  • 7,896
  • 13
  • 62
  • 94
3
votes
0 answers

Creating an IDL file from a DLL

I'm working on a VB6 graphical interface that make use of a DLL generated from a C code that makes use of __declspec(thread) variables. The problem is that because of a known limitation, it is not possible to dynamically link this dll in the VB6…
Beppe
  • 381
  • 2
  • 7
  • 15
3
votes
0 answers

IDL (Interface Definition Language) for SignalR and Message Broker

Background We want to use SignalR for communicating bidirectionally between a Web-Client and a server written in C#. There is another client written with C# which also needs to support communicating over SignalR with the server. At the same time we…
Niklas
  • 417
  • 6
  • 17
3
votes
3 answers

Why do we have to create unique uuid for every interface in a idl?

Why do we have to create unique uuid for each interface in a idl ? For example in this interface there's a unique uuid for every interface in TradingLib. import "oaidl.idl"; [uuid(7C948DDC-8C22-46CF-91AD-1E043A0E1A10), object] interface IInventory…
Searock
  • 6,278
  • 11
  • 62
  • 98