Ошибка 0x80040154 с cocreateinstance
Я создаю экземпляр IQueryCancelAutoPlay. Он все время терпел неудачу.
IQueryCancelAutoPlay *cancelAP; HRESULT hr = CoCreateInstance(__uuidOf(QueryCancelAutoPlay), NULL, CLSCTX_ALL, (void **) &cancelAP); if (SUCCEEDED(hr)) { printf("Success\n"); cancelAP->Release(); } else { // it failed printf("Failed: 0x%0x\n", hr); } What I have tried: Just looking around on Google, many articles are stating that this happened because I am missing one important dll, specifically "ATL.dll or ATL70.dll"; ATL.dll is in my Windows\system32; ATL70.dll is not where to be found. I will appreciate help from anybody that had solved this problome.