MIDL (Microsoft Interface Definition Language) is a text-based interface description language by Microsoft, based on the DCE/RPC IDL which it extends for use with the Microsoft Component Object Model. Its compiler is also called MIDL.
Questions tagged [midl]
186 questions
1
vote
2 answers
How do I declare an IStream in idl so visual studio maps it to s.w.interop.comtypes?
I have a COM object that takes needs to take a stream from a C# client and processes it. It would appear that I should use IStream. So I write my idl like below. Then I use MIDL to compile to a tlb, and compile up my solution, register it, and then…

Grahame Grieve
- 13
- 3
1
vote
1 answer
midl.exe cannot load mscorlib.tlb
I'm trying to use midl to turn an idl file into a tlb. However, when I try I get this warning:
warning MIDL2015: failed to load tlb in importlib : mscorlib.tlb
and I then get a subsequent error:
error MIDL2337 : unsatisfied forward declaration :…

Akash
- 2,311
- 1
- 20
- 37
1
vote
1 answer
Multi Processing the build of Microsoft Interface Definition Language (.idl)?
I have a COM project (Visual Studio with Incredibuild) with 200 midl file that generate .h and .c.
The processing of this midl files are made with only one core at the beginning of the built.
It is very long and take practically the half of the…

Liryna
- 253
- 1
- 14
1
vote
1 answer
Visual studio 2013 project with v120_xp toolset has MIDL 2072 error
I have recently moved to visual studio 2013 and upgrade all my c++ projects to use 8.1 of the windows SDK and the v120_xp toolset. A large majority of the projects are compiling and working fine i do however have two projects that refuse to build…

Sjblack
- 695
- 4
- 14
1
vote
0 answers
What is the correct way to import a type library in Visual Studio?
Background
Our build uses ant and a custom task to build Visual Studio projects/solutions as well as some Java projects. There structure is basically a large tree and artifacts from the projects are typically copied upwards to a common build…

steinybot
- 5,491
- 6
- 37
- 55
1
vote
1 answer
Is inheritance allowed on a COM interface which has the nonextensible attribute?
I have an interface which inherits from another interface, like this:
[
object,
uuid(72A6E473-9956-4856-A335-B9169359AACE),
dual,
nonextensible,
pointer_default(unique)
]
interface IA : IDispatch
{
HRESULT MethodA();
}
[
…

Johan
- 3,039
- 1
- 20
- 15
1
vote
1 answer
Problem compiling IDL created with OleView
To correct a problem with the name of the value for the enum, after searching, that I need to modify the TLB file of my DLL. The first step that I need to do is to create the IDL file. So I use Oleview to create the file. Before doing the…

Stephan
- 591
- 5
- 18
1
vote
2 answers
Create COM interface returning a pointer that is marshalled as IntPtr in C#
I want to declare a COM Interface in MIDL that allows for returning a pointer (like in the ID3D11Blob). I understand that pointers are a special thing in COM because of the stubs generated for RPC calls. I do not need RPC, but only want to access…

Christoph
- 1,964
- 2
- 27
- 44
1
vote
0 answers
Minimum midl-generated files needed for local-process only COM object?
I'm making a COM interface, ITest which is part of a test suite running only in a local process. The particular functionality I'm testing is not important but the main point is I will not be using CoCreateInstance() or any factory objects to…

0xbe5077ed
- 4,565
- 6
- 35
- 77
1
vote
1 answer
Visual Studio always compiles MIDL although non-changed
I have a project with several MIDL files, which VS ALWAYS recompiles despite them being unchanged. I've tried several tips, including putting the project dir in include path etc. but nothing helps. Problem is that there are header files generated…

Robert
- 2,330
- 29
- 47
1
vote
0 answers
How to access a CoClass that exposes multiple interfaces through COM InterOp?
I've got a CoClass that is describes as below:
[
uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx),
version(1.0),
helpstring("FooBar")
]
coclass FooBar
{
[default] interface IFoo;
interface IBar;
}
So my questions are:
Why does…

Carsten
- 11,287
- 7
- 39
- 62
1
vote
1 answer
Who called my RPC?
I'm building an Microsoft RPC server and I was wondering if there is a way to determine which user called the RPC function? (meaning, which user is running the process that invoked the RPC method)

Dig
- 3,850
- 3
- 27
- 33
1
vote
1 answer
MIDL tab in VS6
I'm assigned to build a visual studio 6 C++ project (I'm aware this is a problem in itself...). I added an IDL file to the project, but the MIDL tab is not showing for the project or for the file itself. How to make the MIDL tab appear?
Thank you.

grunt
- 662
- 1
- 8
- 24
0
votes
1 answer
Windows Asynchronous RPC C++ MIDL
I have a MIDL generated C++ RPC interface from a client that defines two simple RPC functions.
I am trying to communicate with the server from a simple C++ application. I only have the header files - do I also need a client stub in order to…

William
- 3
- 1
0
votes
1 answer
midl compiler random crash
I have a project that defines an idl and it compiles it using MIDL. The issue is that I got a random crash when MIDL is processing C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\WTypes.Idl
The compiler options are:
midl…

Bogdan M.
- 1,128
- 1
- 9
- 23