On 4/15/19 1:20 PM, Alistair Leslie-Hughes wrote:
Hi Nikolay,
On 15/4/19 3:35 pm, Nikolay Sivov wrote:
+cpp_quote("HRESULT WINAPI MFPCreateMediaPlayer(const WCHAR *url, BOOL start_playback, MFP_CREATION_OPTIONS options, ") +cpp_quote(" IMFPMediaPlayerCallback *callback, HWND hwnd, IMFPMediaPlayer **player);")
This need to have extern "C" around the function.
Like Jacek already said, widl will wrap everything in extern "C" block. That also reminded me, was https://source.winehq.org/git/wine.git/commit/0501ad920afd208d85cf807c9fcec1... necessary?
Now generated header has nested extern "C".
Regards
Alistair