Implement IUnknown methods as assert(false). IASIOThiscallResolver is not really a COM object, just a wrapper which will work with the ASIO SDK. If you wanted to use ASIO without the SDK you might want to implement COM aggregation in these methods.
| 373 | // If you wanted to use ASIO without the SDK you might want to implement COM |
| 374 | // aggregation in these methods. |
| 375 | HRESULT STDMETHODCALLTYPE IASIOThiscallResolver::QueryInterface(REFIID riid, void **ppv) |
| 376 | { |
| 377 | (void)riid; // suppress unused variable warning |
| 378 | |
| 379 | assert( false ); // this function should never be called by the ASIO SDK. |
| 380 | |
| 381 | *ppv = NULL; |
| 382 | return E_NOINTERFACE; |
| 383 | } |
| 384 | |
| 385 | ULONG STDMETHODCALLTYPE IASIOThiscallResolver::AddRef() |
| 386 | { |