iunknown
Does dynamic work with IUnknown and Typelib
Currently I\'m experimenting with C#4\'s dynamic programming and I did not completely understand under which circumstances the keyword dynamic works. It is clear to me that it works with IDispatch, as[详细]
2023-04-09 03:55 分类:问答How to manage .Net's RCW COM object creation paramets (namely requested interface)?
I\'m using an external native COM component in my C# .NET application. This COM DLL doesn\'t have a type library, so I had to write the interop code myself, and having include/idl files I did it like[详细]
2023-04-05 12:33 分类:问答Does IUnknown::QueryInterface() increment the reference count?
If I have an IUnknown *p开发者_运维百科tr, do I need to call Release() on every interface I obtain through ptr->QueryInterface(), in addition to calling ptr->Release() when I\'m done with ptr?[详细]
2023-04-03 20:49 分类:问答Must the IUnknown interface be re-implemented by every new COM class?
Sorry if this question seems obvious for everyone, but I am very new to COM. From the tutorial I see here http://www.codeguru.com/cpp/com-tech/activex/tutorials/article.php/c5567, it seems like every[详细]
2023-03-16 09:28 分类:问答warnings about mystery interfaces in C# projects
Every time I build my C# Solution, I get a handful of warnings about interfaces that I\'ve never seen or written.I tried Googling for some of them, but get no hits.Could these possibly 开发者_如何学运[详细]
2023-01-04 07:18 分类:问答COM IUnknown and do I need a pointer to it first before calling CoGetClassObject?
In COM, when you want to create an instance of some COM Server object, do you first need to get a pointer to it\'s IUnknown interface and only then create a class object using 开发者_开发知识库CoGetCl[详细]
2022-12-31 00:11 分类:问答What is the correct way to cast when using ATL and IUnknownPtr?
During the modification of an existing ATL COM object I came across an article from the \"The Old New Thing\" blog called \"The ways people mess up IUnknown::QueryInterface\" and there was a discussio[详细]
2022-12-22 01:55 分类:问答How to get IUnknown from WDM driver CreateInstance
In documentation (C++ example) L开发者_开发知识库Unknown* pIUnknown = CreateInstance(slot); I try this[详细]
2022-12-18 11:42 分类:问答Linker error with DXGI when passing IID_IDXGIDevice to IUnknown::QueryDevice
I am trying to separate Swapchain and Window creation from D3D10 device creation in my rendering framework meaning that I can\'t really use D3D10CreateDeviceAndSwapChain. I am running into an unexpect[详细]
2022-12-16 19:45 分类:问答