IUnknown is the fundamental COM (Component Object Model) interface, which the specification mandates must be implemented by all COM objects. All other COM interfaces derive from IUnknown. The IUnknown interface exposes methods for object lifetime management and the ability to access object functionality by retrieving references to other interfaces. (NOTE: This tag is related to Windows programming. Don't use it to mean something is "unknown" to you!)
Questions tagged [iunknown]
63 questions
0
votes
2 answers
What are the files required for a COM client to connect a COM server (out-of-process scenario)?
I would like to understand the purposes of the files mentioned in this article and link the knowledge to my current COM server and COM client scenario, so that I can implement my COM server to use the COM server: this
I am having a COM server which…

Nick Chang
- 1
- 1
- 4
0
votes
0 answers
AddRef on IUnknown(IXRApplication) crashing
I am debugging a larger issue but I have narrowed down to a specific scenario.
Firstly:
XamlRuntimeInitialize();
IXRApplication* pApp;
res=GetXRApplicationInstance(&pApp);
This works fine, Then:
IUnknown*…

MDK
- 495
- 1
- 6
- 18
0
votes
1 answer
C++11 Strange notation [0:size())
Am I to understand from
Stroutrup C++ Programming Language - Invariants
that the notation above is a range initializer or is this interpretive instruction to convey mathematically that the Vector class array range is between 0 and some…

Mushy
- 2,535
- 10
- 33
- 54
0
votes
1 answer
From C#, how do I call Release on a returned object that implements IStorage?
I'm reading and writing Structured Storage files from C#. To open the file i call
IStorage StorageInterface;
int result = StgOpenStorage(filename, null, STGM.READWRITE | STGM.SHARE_EXCLUSIVE, IntPtr.Zero, 0, out StorageInterface);
This works and I…

John Mott
- 119
- 1
- 12
0
votes
1 answer
Reverse Engineering looking for help in file Decompression
This is the first time i write a post looking for help after so so many years watch at StackOverflow.
I started everythings from 0 to my current level with great works. I can't get it withou StackOverflow.
This time i really need help for a file…

Phạm Như Thái
- 31
- 2
- 5
0
votes
0 answers
COM object IUnknown parameter. InvalidCastException IRowset
I write an Ole Db Provider on c# (COM tehnology).
Ole Db Provider is .NET DLL.
There is a problem with InvalidCastException: Additional information:
Unable to cast "MyOleDbProvider.RowsetObject" to type "IRowset".
This problem occurs when…

plexusilnur
- 61
- 1
- 5
0
votes
0 answers
change interface from IUnknown to IDispatch
I have a COM class which is accessible only via vtable. It is already distributed to clients. I am planning to allow script access as well, by introducing IDispatch.
In my local tests, it shows client code will not change, but they will require code…

Logan
- 184
- 10
0
votes
1 answer
Struct containing unusual templated function in C++ code
In the following C++ code (from a Microsoft COM header file), what is the part that starts with template...?
I am thoroughly confused for other reasons as well, as although a struct is in use, it has class-like elements; for example, the…

Sabuncu
- 5,095
- 5
- 55
- 89
0
votes
1 answer
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 unexpected linker error when trying to build my test…

Neil M
- 666
- 8
- 14
0
votes
1 answer
yii Property "CWebUser.bootstrap" is not defined and can't access gii
I have a site using the yii framework. As the first thing, after i got the site up and running, I wanted to install bootstrap (yii-bootstrap-2.1.0.r355.zip). This, however, did not go very smooth.
I get the following error "Property…

Selvakumar Kaliyappan
- 116
- 1
- 12
0
votes
1 answer
Auto generate images using uploaded files
I've to create a bunch of jpeg images which have the same template with just a few components that change depending on the user.
I want to know what is the best software/language to use to make this?
For example:
I have to generate a 2443x2443…

Newtt
- 6,050
- 13
- 68
- 106
0
votes
1 answer
Implementing a COM "sink" in managed (C#) code
I have a legacy COM control (Core) that accepts an IUnknown to a sink. The purpose is to allow the Core to read/write data through this sink interface. The Core/Sink pointers are currently in use in legacy systems and are not easily modified.
The…

DevSolo
- 667
- 4
- 9
0
votes
1 answer
DirectX - New Device Reference for each call to D3DXCreateTextureFromFile()?
I'm writing a program w/directX api. I'm beginning to use DXUT. I'm having problems when trying to control the reference count of the directX device. It seems that everytime I call D3DXCreateMesh(), D3DXCreateTextureFromFile() or…

P. Avery
- 779
- 1
- 16
- 34
0
votes
0 answers
Marshal.GetObjectForIUnknown alternative for Silverlight
In WPF I can use the following:
var texture = (INuiFrameTexture) Marshal.GetObjectForIUnknown(frame.pFrameTexture);
My INuiFrameTexture looks like…

StevenVL
- 1
0
votes
1 answer
managed-to-unmanaged Marshaling of 'object[]' as IUnknown
I'm using P/Invoke to call an unmanaged C function from C#, passing an array of objects.
In the unmanaged code I query IUnknown for IDispatch.
This works for the simple case, but getting IDispatch fails if one of the objects is an array…

zvikam
- 66
- 8