¡@

Home 

c++ Programming Glossary: iunknown

Why exactly do I need an explicit upcast when implementing QueryInterface() in an object with multiple interfaces()

http://stackoverflow.com/questions/1742848/why-exactly-do-i-need-an-explicit-upcast-when-implementing-queryinterface-in-a

I saw suggests that when I implement QueryInterface for IUnknown I explicitly upcast this pointer to one of the interfaces if.. this pointer to one of the interfaces if iid __uuidof IUnknown ppv static_cast IInterface1 this call Addref return S_OK The.. The question is why can't I just copy this if iid __uuidof IUnknown ppv this call Addref return S_OK The documents usually say that..

CoCreateInstance returning E_NOINTERFACE even though interface is found

http://stackoverflow.com/questions/1781906/cocreateinstance-returning-e-nointerface-even-though-interface-is-found

will return S_OK and cast itself to the right type if IUnknown or IMyInterface is requested otherwise it returns E_NOINTERFACE... is triggered several times for different interfaces First IUnknown is requested no problem Then several interfaces like IMarshall..

Add support to print & preview HTML in a dialog-based MFC app

http://stackoverflow.com/questions/18926793/add-support-to-print-preview-html-in-a-dialog-based-mfc-app

. The 3rd parameter contains an object which is passed as IUnknown but when queried for IDispatch it supports all the same __IE_..

How to make consistent dll binaries across VS versions?

http://stackoverflow.com/questions/232926/how-to-make-consistent-dll-binaries-across-vs-versions

idea and run further with it inherit your interface from IUnknown implement ref counted AddRef and Release methods as well as..

Calling C++ function from JavaScript script running in a web browser control

http://stackoverflow.com/questions/3747414/calling-c-function-from-javascript-script-running-in-a-web-browser-control

class JSObject public IDispatch private long ref public IUnknown virtual HRESULT STDMETHODCALLTYPE QueryInterface REFIID riid.. QueryInterface REFIID riid void ppv ppv NULL if riid IID_IUnknown riid IID_IDispatch ppv static_cast IDispatch this if ppv NULL..

What is COM (Component Object Model) in a nutshell? [closed]

http://stackoverflow.com/questions/455687/what-is-com-component-object-model-in-a-nutshell

. As an example one of the fundamental interfaces in COM IUnknown is defined like this interface IUnknown virtual HRESULT QueryInterface.. interfaces in COM IUnknown is defined like this interface IUnknown virtual HRESULT QueryInterface REFIID riid void ppvObject 0..

When virtual inheritance IS a good design?

http://stackoverflow.com/questions/4605556/when-virtual-inheritance-is-a-good-design

a good design. I saw people mentioning interfaces like IUnknown or ISerializable and also that iostream design is based on virtual..

Memory Layout difference between nested classes and multiple inheritance in C++?

http://stackoverflow.com/questions/4608924/memory-layout-difference-between-nested-classes-and-multiple-inheritance-in-c

and needs is a table of function pointers when it calls IUnknown QueryInterface . How you implement it is completely up to you...

Windows CD Burning API

http://stackoverflow.com/questions/82993/windows-cd-burning-api

3d73a659 e5d0 4d42 afc0 5121ba425c8d ICDBurn public IUnknown public virtual HRESULT STDMETHODCALLTYPE GetRecorderDriveLetter..

Raw C++ code to display the names of tables in an SQL compact server using OLE DB

http://stackoverflow.com/questions/8780656/raw-c-code-to-display-the-names-of-tables-in-an-sql-compact-server-using-ole-d

spIDBCreateSession CreateSession NULL IID_IDBCreateCommand IUnknown spIDBCreateCommand spIDBCreateSession NULL CComPtr ICommandText.. hr spIDBCreateCommand CreateCommand NULL IID_ICommandText IUnknown spICommandText spIDBCreateCommand NULL hr spICommandText SetCommandText.. spICommandText Execute NULL IID_IRowset NULL cRowsAffected IUnknown spIRowset spICommandText NULL Retrieve records. HROW hRow NULL..