I am studying COM. I think the best way to get a thorough understanding of COM is write one without any COM framework such as ATL. I have written a COM server in raw C++, and now I want to write one in plain raw C. How could I do this? Is there any tutorial?
Many thanks.
...
I created ATL COM-server in VC++ 2005. I want to realize some interface defined in some library (*.olb). I know I will see the interface if I #import this olb (in .tlh.tli). But I cannot create stub realization for the interface with "Implement interface wizard" because this interface is absent in "Interfaces" list (both for "Registry" a...
I am currently studying COM. I found that COM DLL is kind of built upon the traditional DLL infrastructure. When we build COM DLLs, we still rely on the traditional DLL export methods to lead us to the internal COM co-classes.
If COM is for component reusing at the binary level, I think the traditional DLL can achieve the same thing. T...
When extending a COM class in unmanaged C++ where the original class has private interfaces, one way to do this is through the concept of blind aggregation. The idea is that any interface not explicitly implemented on the outer aggregating class is 'blindly' forwarded to the inner aggregated class.
Now .NET as far as I can figure out do...
Previously we had software in MFC (VC6), VB6 and C# applications that needed to call the same engine written in C++ (and MFC). The engine required C++ for speed. At the time we decided to use COM as the interface because all three could use it with the least issues in marshalling, etc.
Our MFC application is now deprecated and we have...
What is MDAC and how we can use in our program
...
How do I use the IWindowsUpdateAgentInfo::GetInfo Method
I have referenced the WUApiLib but I cant find this interface anyhwere
...
Hi,
we're developing a software to control a scientific measuring device. it provides a COM-Interface defines serveral functions to set measurement parameters and fires an event when it measured data.
in order to test our software, i'm implementing a simulation of that device.
the com-object runs a loop which periodically fires the e...
I' building an application using C# which will use CATIA COM modules. When I import the COM inside my c# project, I think that Visual C# express generates the Interop automagically for me.
All of this works correctly. However, when I try to debug the application and use watches during runtime, every object is a System.__ComObject and I ...
Are there no constant references in MIDL method declarations????
eg.
[id(1), helpstring("My Method")]
HRESULT MyMethod(
[in] IID & const rclsid
);
for
HRESULT MyMethod(
IID const &rclsid
);
...
Hi,
Purify is pointing memory leak in ole32.dll while returning a Variant with VT set to VT_RECORD as OUT parameter. I am using User Marshalling by generating proxy/stub dll from IDL.
Can you suggest how to avoid this memory leak?
Struct defined in IDL:
{
BSTR m_sFirst;
BSTR m_sSecond;
VARIANT m_vChildStruct; //This member encapsulate...
I am trying to understand this example code regarding Browser Helper Objects.
Inside, the author implements a single class which exposes multiple interfaces (IObjectWithSite, IDispatch).
His QueryInterface function performs the following:
if(riid == IID_IUnknown) *ppv = static_cast<BHO*>(this);
else if(riid == IID_IObjectWithSite) *pp...
I'm using Word 2007 via COM from PHP 5.2 Apache 2.0 on a windows machine. The goal is to programmatically render jpeg thumbnails from each page in a Word document.
The following code works correctly if you set $word->Visible to 1:
try {
$word = new COM('word.application');
$word->Visible = 0;
$word->Documents->Open("C:\\tes...
Hi all,
I have .net solution (one project written in C++ COM others are written in C#) with its libraries.
I would like to make some starttest-tool which would test if all C#, C++ libraries are correctlly registered. How I can do that ? How I can ask .NET if some C# or C++ COM library is regitered ?
br,
Milan.
...
What EXACLTY (what registry keys it writes) does the ATL::CComModule::RegisterServer(TRUE) call do?
...
I'm new to Scheme -- the functional programming language and I like it a lot for its first-class/higher-order functions. However, my data comes from a COM source with an object-oriented API.
I know Scheme and COM belong to different programming paradigms, but I'm wondering if there is any interface or a way for Scheme to connect to a C...
I have existing managed and unmanaged software using an ActiveX component supplied by a third party to perform some communications, but it is now required that this communication be routed through my application.
Ideally I'd be able to install a .NET component which will expose exactly the same interface, and will be usable as a drop-in...
Is it bad idea to have static CComPtr member variables in an application.
Since we cannt control destruction of static variable and it can happen after CoUninitialze .
...
Hi all,
I need to implement GetIDsOfNames in my C++ application and I have no idea how to do that.
I understand that I should implement GetTypeInfo, GetTypeInfoCount for that. I found a code sample which uses LIBID, but I don't have LIBID, and I don't know where to get one.
What I really need is a good explanation of IDispatch interfa...
I've read a few other questions that seem similar but I'm still very confused, and none of the answers seem to be working for me so I decided to ask another question. Please bear with me, I'm not very well versed on threading and what not.
The application I am making is a 3rd party add-in for Revit Structure. The way they work is I hae ...