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
8
votes
1 answer

xQuartz Extremely Slow Response

I am not sure if this happens to every IDL users, but after upgrading to macOS Sierra and xQuartz 2.7.11, the response rate of my IDL widgets becomes unacceptably slow. I have the same program running on a Red Hat Enterprise Linux Workstation 6.6.…
yuguang
  • 81
  • 1
  • 3
8
votes
2 answers

How to specify a default value for an enum using avro IDL?

I haven't found anything in the documentation about this, only generic bla about default values. My assumption was that it should work like this: enum MyEnum { UNSPECIFIED, SPECIFIED } record Test { MyEnum e = "UNSPECIFIED"; } The…
LiMuBei
  • 2,868
  • 22
  • 27
8
votes
1 answer

Notepad++ IDL Syntax Highlighting?

I was about to create a user-defined language file for Notepad++ to syntax-highlight IDL (Interactive Data Language). But before I went and spent the time creating one, I wanted to check with the "community" to see if anyone else has one that's…
Nate
  • 18,892
  • 27
  • 70
  • 93
7
votes
3 answers

Change IDL generated header file

I'm working on a legacy c++ COM project that I'm moving over to Visual Studio 2010. In the IDL file for this project, I have to reference an ODL file from another c++ project. My problem is that the other project generates its header file as…
John
  • 1,167
  • 1
  • 16
  • 33
7
votes
1 answer

IDL enumeration not displayed in type library

I have a COM object written using the MS ATL library. I have declared a bunch of enumerations in the IDL but they do NOT appear when viewing the type library using the MS COM Object Viewer tool. The problem seems to be that the missing enums are…
Rob
  • 76,700
  • 56
  • 158
  • 197
7
votes
1 answer

Generating java from IDL (avoiding default package)

I'm working with a LARGE legacy C++ code base with numerous IDL files that have all the types and constants declared outside of any module. For C++, this results in code being generated to the global namespace -- ugly, but acceptable. Now I'm trying…
Kerry
  • 387
  • 1
  • 8
6
votes
2 answers

Generate Ocaml bindings stubs from C header file

I have a header file which declares a C API for some library and I would like to create an OCaml bindings for this lib. I found that camlidl can create stubs from an IDL file but as I understand there is no automatic conversion from a *.h file to…
Nutel
  • 2,244
  • 2
  • 27
  • 50
6
votes
2 answers

How to specify a default value for VARIANT_BOOL?

MS IDL has syntax for specifying a defaultvalue for parameters. I tried to specify a default value for a function that accepts a VARIANT_BOOL: [id(42)] HRESULT Foo([in, defaultvalue(VARIANT_TRUE)] VARIANT_BOOL bar); And got the following error…
Motti
  • 110,860
  • 49
  • 189
  • 262
6
votes
1 answer

CORBA IDL in, out and inout

What exactly do in, out and inout - 'directional' operators mean in CORBA IDL function parameters?
mihsathe
  • 8,904
  • 12
  • 38
  • 54
6
votes
1 answer

Idlj compiler is missing (Linux/JDK 11)

Can't find idlj tool for compiling .idl files. Checked /usr/bin and /usr/lib/jvm/java-11-jdk. Isn't it bundled with the JDK? How to add the idlj compiler? P.S. I'm more of a Python guy, and don't use Java a lot. So I'm sorry if it's a dumb…
Pasha Kuz
  • 63
  • 1
  • 3
6
votes
0 answers

In Avro (1.8.0) IDL, can I make an array generate as a java.util.HashSet?

I'm generating records using Avro IDL. Setting my String types to String and setting fieldVisibility to PRIVATE, with this input: record MyRecord { @java-class("java.util.HashSet") array flagged; } Avro…
Mykel Alvis
  • 1,048
  • 11
  • 14
6
votes
1 answer

How to properly hide methods and properties from intellisense

Would anyone know how to properly hide classes, methods and properties from intellisense while preserving the ability to call them; and so they do not appear in interop assemblies that are generated from a type library? I'm writing API hooks for…
BrMcMullin
  • 1,261
  • 2
  • 12
  • 28
6
votes
1 answer

Why do IDL defaultvalue values look rounded?

I have a COM object with a function with an optional last argument. The IDL is a bit like this: interface ICWhatever: IDispatch { [id(96)] HRESULT SomeFunction([in,defaultvalue(50.6)]float parameter); }; This works fine: if I don't specify the…
Michel de Ruiter
  • 7,131
  • 5
  • 49
  • 74
6
votes
1 answer

Why Mozilla has JavaScript documentation written with IDL

Reading documentation about fileReader, and find out that they write methods using void operator, like this: void readAsArrayBuffer ( in Blob blob ); just trying understand why they do write it like this? If there is any practical use of…
dmi3y
  • 3,482
  • 2
  • 21
  • 32
5
votes
1 answer

COM - return an array of object interfaces

I want to return from IDL an array of interfaces. I try this: interface ISecurityPolicy : IDispatch{ [id(6)] HRESULT GetPolicyList([out, ref, retval] SAFEARRAY(IEntityPolicy*)* result); } I get this warning(in VS 2010): Warning 1 warning…
Ghita
  • 4,465
  • 4
  • 42
  • 69
1
2
3
37 38