Why does Blackmagic RAW SDK use .idl at windows platform?
Posted:
Fri Sep 21, 2018 2:34 am
by yoshimura
Hi, Blackmagic RAW SDK looks so cool.
But, Why does Blackmagic RAW SDK use .idl at windows platform?
I think It causes unnecessary difficulty. Are there frequently used set of the .lib .dll .h ?
cheers.
Re: Why does Blackmagic RAW SDK use .idl at windows platform
Posted:
Tue Sep 25, 2018 8:43 pm
by Anton Shekhovtsov
I guess com framework is supported by many languages, that's the reason.
In fact there is direct export from the dll: "CreateBlackmagicRawFactoryInstance", so you can use it too.
Re: Why does Blackmagic RAW SDK use .idl at windows platform
Posted:
Wed Sep 26, 2018 2:34 pm
by yoshimura
Hi Anton.
I understand. I succeeded to get IBlackmagicRawFactory * by LoadLibrary and GetProcAddress.
- Code: Select all
typedef IBlackmagicRawFactory* (_stdcall *CreateBlackmagicRawFactoryInstance)(void);
HMODULE hMod = LoadLibraryA("BlackmagicRawAPI.dll");
CreateBlackmagicRawFactoryInstance createBlackmagicRawFactoryInstance = (CreateBlackmagicRawFactoryInstance)GetProcAddress(hMod, "CreateBlackmagicRawFactoryInstance");
it's so simpler than regsvr32 BlackmagicRawAPI.dll aproach.
Thank you!!