MicroCom icon indicating copy to clipboard operation
MicroCom copied to clipboard

Is it posible to generate IDL from c# class metadata

Open frenchfish opened this issue 2 years ago • 3 comments

Your project generate native code pinters ,vtable from IDL? The question is how to generate automatically IDL,can I use tool like tlbexp orothers?

frenchfish avatar Dec 15 '23 11:12 frenchfish

Unfortunately the idl dialect doesn't exactly match MIDL since the tool was initially developed for a limited use case. The reason why IDL is used instead of C# metadata was the need to generate C++ headers too.

kekekeks avatar Dec 15 '23 12:12 kekekeks

looks like you need generate .H also from IDL or TLB.. there are such functions But thanks for reply. Your project is inspiration for me :-)

frenchfish avatar Dec 15 '23 12:12 frenchfish

We are using it for C#/C++ interop on linux and mac, so midl.exe tool isn't available for C++ header generation and TLB parsing

kekekeks avatar Dec 15 '23 15:12 kekekeks