MicroCom
MicroCom copied to clipboard
IDL-based COM interop codegen
Your project generate native code pinters ,vtable from IDL? The question is how to generate automatically IDL,can I use tool like tlbexp orothers?
Consider: ``` HRESULT SaveBookmarkToBytes(IAvnString*fileUri, IAvnString**err, IAvnString**ppv); ``` Somehow it generates: ``` public void SaveBookmarkToBytes(IAvnString fileUri, IAvnString err, IAvnString res) ``` and ``` __target.SaveBookmarkToBytes(global::MicroCom.Runtime.MicroComRuntime.CreateProxyOrNullFor(fileUri, false), INVALID, INVALID); ``` I will take...
https://github.com/kekekeks/MicroCom/blob/918f1a7d13193beda39b78d70a99ee4c7b188f8b/src/MicroCom.Runtime/MicroComShadow.cs#L147-L166
The result of the expression is always `false` since a value of type `IntPtr` is never equal to `null`