Skip to content

Instantly share code, notes, and snippets.

@joastbg
Created October 18, 2018 20:06
Show Gist options
  • Save joastbg/ac233077fef8fa9b47e8c54922237330 to your computer and use it in GitHub Desktop.
Save joastbg/ac233077fef8fa9b47e8c54922237330 to your computer and use it in GitHub Desktop.
MIDL - Microsoft Interface Definition Language
echo "compiling MIDL..." :: Make sure tools are in PATH (eg Developer Command Prompt for VS 2017)
midl myfilectl.idl /tlb myfilectl.tlb
echo "done."
import "oaidl.idl","unknwn.idl";
[
uuid(a03d1422-b1ec-11d0-8c3a-00c04fc31d2f),
helpstring("IFace3 interface"),
pointer_default(unique),
dual,
oleautomation
]
interface IFace3 : IUnknown
{
HRESULT MethodC([in] long Max,
[in, max_is(Max)] BSTR [ ],
[out] long * pSize,
[out, size_is( , *pSize)] BSTR ** ppBKFST);
}; //end IFace3 def
library MyTypeLibraryFileLib
{
[
uuid(B3F6C9C4-26AE-451B-9788-75F6C648DBF4),
helpstring("LogManager Class")
]
coclass LogManager
{
[default] interface ILogManager;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment