Questions tagged [midl]

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.

186 questions
0
votes
1 answer

Only some of the member classes of a tlb get registered

I had and an already existing odl file and I created the tlb out of it using MIDL.exe I registered the tlb using regtlib.exe when I search the registry I am able to find only the id of type library itself and the main dispatch interface, and I…
engmtm
  • 81
  • 1
  • 8
0
votes
1 answer

MIDL compiler from CMAKE

I did as described here set(MIDL_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/IFace.h ${CMAKE_CURRENT_BINARY_DIR}/GUIDS.c ${CMAKE_CURRENT_BINARY_DIR}/Proxy.c ${CMAKE_CURRENT_BINARY_DIR}/ProxyDll.c ) set(MIDL_FILE …
0
votes
0 answers

Visual Studio 2015 Command Prompt and midl is not recognized issue

So more or less I am just looking to better understand what I could be doing incorrectly that could be causing the issue I keep having. Recently I have started diving into C++ Remote Procedure Call (RPC) tutorials in an attempt to create a 64 bit…
Reese Jones
  • 181
  • 8
0
votes
0 answers

Generating a .h file using MIDL compiler in CMAKE

I have tree.idl file and generated a tree_map.h using MIDL compiler in CMAKE getting this error C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\atlmfc\include\atlbase.h(2988) : error C2338: 'CAtlExeModuleT'…
Harshit
  • 1
  • 2
0
votes
3 answers

may COM server reallocate ([in, out] CACLSID * arg)?

With a COM interface method declared as this: [ object, uuid(....), ] interface IFoo : IUnknown { HRESULT Foo([in, out] CACLSID * items); } With regards to marshalling, is the server allowed to reallocate the counted array? (I think it is, but…
peterchen
  • 40,917
  • 20
  • 104
  • 186
0
votes
0 answers

Use ContentPropertyAttribute with C++/WinRT?

How can I use ContentPropertyAttribute with C++/WinRT? I find some help in github and msdn, but regretfully when I code like this namespace App3 { [bindable] [default_interface] …
Cool
  • 23
  • 5
0
votes
1 answer

How send 64 bit integer over COM interface from C++ to C#

I have a 64 C++ COM server and a C# COM client. Now I want to pass a structure from the server to the client that holds a 64 bit integer. I use the keyword "hyper" for the MIDL compiler and can see that the field is _int64 in C++ and long in C#. But…
0
votes
0 answers

visual studio 2017 tab MIDL is missing in VC++ DLL project

Any idea to generate TLB file for Visual C++ DLL porject please. My project does not have tab MIDL when loading Project Property.
beewest
  • 4,486
  • 7
  • 36
  • 63
0
votes
0 answers

Generating C++ com interface for microsoft word using midl compiler

I'm trying to create the microsoft word COM C++ interface definition using the midl compiler. I used oleview.exe to save the "Microsoft Word 14.0 Object Library" (MSWORD.OLB) to a file called MSWORD.idl. When compiling this idl file I get errors.…
0
votes
1 answer

QMake / jom force extra MIDL compiler to run before RC

I'm converting an old OCX project to QMake (as it's getting the "new" standard in my company). In my Button.pro file, I add the MIDL compiler by the means of idl_c.output = $${DESTDIR}/${QMAKE_FILE_BASE}.tlb idl_c.input = IDL idl_c.commands =…
NonoxX
  • 134
  • 10
0
votes
1 answer

Cannot use [noexcept] in MIDL 3

In this year's Build Talk C++/WinRT 2.0: Faster and smarter in the open, Kenny Kerr demonstrates the use of the [noexcept] attribute in IDL, providing better optimization opportunities to the compiler by eliding exception handling at the ABI. Trying…
IInspectable
  • 46,945
  • 8
  • 85
  • 181
0
votes
0 answers

How to add CLSID and IID in header file with MIDL?

Here is a test IDL file: import "unknwn.idl"; [uuid(f531223f-43bb-49d4-80fc-30ceb5f4f990)] coclass test { interface Itest; } [uuid(deb8730f-f811-4cb3-bd8f-b1601926bd48)] interface Itest : IUnknown { HRESULT function(int var); }; When I…
Biswapriyo
  • 3,491
  • 3
  • 22
  • 42
0
votes
0 answers

MIDL Compiler for Windows 10 LTSB

I'm trying to use the MIDL compiler to generate a .tlb file and I've found out that's part of the SDK. But the problem is, at work we use Windows 10 LTSB (Enterprise) and that's not supported by the SDK. Do I have an alternative to MIDL Compiler?…
Stefan Muresan
  • 101
  • 2
  • 10
0
votes
1 answer

Reverse C++/WinRT ABI parameter order for MIDL 3.0 array parameter?

I have an existing interface that I'm trying to define using MIDL 3.0. One of it's methods has this C++ signature: HRESULT GetArray(struct FOO** outArray, uint32_t* outSize); I tried translating this to IDL like so: namespace Examples { struct…
Josh Brobst
  • 1,772
  • 10
  • 16
0
votes
0 answers

ImportLib referencing full path in MIDL

I discovered that with this syntax, I would get a compile error: importlib("MSADDNDR.dll"); The error given would be: error MIDL2337 : unsatisfied forward declaration : _IDTExtensibility2 [ Coclass '_Extension' ] But that's a lie, kind of.…
this
  • 1,406
  • 11
  • 23