While trying to host the CLR, I keep getting this:
error C2440: 'function' : cannot convert from 'const IID' to 'DWORD'
My code:
ICLRRuntimeHost *host = NULL;
HRESULT result = CorBindToRuntime(NULL, L"wks", CLSID_CLRRuntimeHost,
IID_ICLRRuntimeHost, (PVOID*)&host);
This is in C, by the way. Not C++.
EDIT: When I compile this with C++, it works just fine. Shouldn't it behave the same in either language?