12,399 questions
1
vote
1
answer
144
views
Retrieve Component Service COM+ Application configuration values via powershell script
I have a Component Service Application which values need to be retrieved by a powershell script, I've managed to get some configurations like the Pooling & Recycling values with the following ...
2
votes
1
answer
489
views
Trying to understand Pointers to Interfaces and IUnknown::QueryInterface in C++
I'm currently learning about Component Object Model (COM) and found myself a little bit confused about Interfaces. Got several questions:
1.- Is there any difference between a pointer to a Class and a ...
0
votes
1
answer
81
views
How COM warning works? how does the device get initialized?
My d3d11 c++ code produces warning for live COM objects that I never initialized.
my code:
#define _INCLUDE_LIBS__
#include "stdafx.h"
#define WINDOW_NAME L"main window"
#define ...
0
votes
1
answer
91
views
How can I expose c# classes and methods as <globals> in the COM interface?
When I'm using the Microsoft Office VB Editor, looking in the Object Browser I can see a section that lists a set of classes and methods that can be invoked without qualifying with a class name or ...
0
votes
1
answer
212
views
ISampleGrabberCB sampleCB() not getting called when using DirectShow
I'm trying to capture Video frames from USB Video Device(UVC) using DirectShow. Actually comparing Media Foundation with DirectShow because I'm seeing around 11 milliseconds buffering when using Media ...
0
votes
1
answer
235
views
Extracting array of strings from _variant_t
I am using OpenDSS with C++ to run power flow. I have established a COM interface from C++ to OpenDSS.
In the documentation of OpenDSS, it says that the list of bus names can be obtained by a function ...
0
votes
0
answers
29
views
Error when accessing ArcMap extension(add-in) methods
I have a third-party ArcMap extension (codes not available) is SomeException.
This extension implements the IExtension, IExtensionConfig, IPersistVariant and ICustomInterface interfaces
I'm calling ...
1
vote
1
answer
143
views
Windows COM: Client 32bit C++ native application vs. server .NET 6 out-of-proc registry-free possible?
We have an old large 32bit C++ application (created with Borland C++ Builder 5) on its memory limits. We would like to have it call modules written in C# that reside in another process. With .NET 6, ...
0
votes
0
answers
208
views
COM interface can't be found in registry after upgrade to Windows 10
I have an old MFC/ATL appilcation that was originally developed in Visual Studio 2002 (Win XP). It works perfectly in Windows 7 and older but can't run in Windows 10 because I get internal app error ...
1
vote
1
answer
2k
views
Can I use a .NET 4.8 assembly that has COM support from a .NET 8.0 assembly
I have a .NET framework 4.8 assembly that supports COM, it has a typelib.
I tried to add it as a COM reference to my .NET 8.0 assembly, but got this error:
C:\Program Files\Microsoft Visual Studio\...
1
vote
3
answers
233
views
How to make FileSystemWatcher events run in an STA Thread in a console application?
I'm writing a console application that scans a directory for files and uploads the data in them to a database. The files are a proprietary type that require a specific library that requires the ...
0
votes
1
answer
123
views
Why is a wrapped COM EXE in C# looking for its configuration file in the Windows SysWOW64\System32 directory?
I have an old Pascal/Delphi application (#1) that is registered with Windows. It is a COM component executable. I also have another old Delphi app (#2) that calls that COM component, having wrapped ...
0
votes
0
answers
95
views
How can I call COM+ object from another process on C#?
Durning the start of explorer.exe, it loads twinui.dll, which has a COM+ class Immersive Settings Cache(A919EA73-490E-4D5C-9BA7-97CBC73119FE). It implements:
IImmersiveSettingsCache
...
0
votes
1
answer
105
views
How can I get the ENUM field name from an d2d effect property by using the GetValueByName method
I would like to display the current enum[field].name for any given effect that has an enum property. My code results in hr = 0x88990029, the specified property does not exist. Is my property full name ...
0
votes
1
answer
540
views
access aspen plus through COM interface -- using python vs matlab
I have successfully accessed many different Aspen Plus variables through COM interface using Python (win32com), but failed to do so for the following variable, using the same command.
AspenPlus.Tree....
3
votes
0
answers
158
views
How can I successfully register .Net 6 COM DLL with Wix 4 and HEAT
I have a 32 bit DLL that I need to register with windows (i.e. register all public classes from it) to be used with COM. The DLL is supposed to be deployed using a .msi installer built with Wix4.
In ...
0
votes
1
answer
799
views
How to create an ICoreWebView2EnvironmentOptions object to set some options?
I am using WebView2 and I want to cerate an ICoreWebView2EnvironmentOptions object to pass it to CreateCoreWebView2EnvironmentWithOptions
My current code is:
CComPtr<ICoreWebView2EnvironmentOptions&...
0
votes
0
answers
291
views
How to solve exception in Python when using COM port with win32?
I have a Python script which open and start measures in CANoe.
It already opens CANoe but I get the COM error:
Exception has occurred: com_error
(-2147352567, 'Exception occurred.', (0, None, None, ...
0
votes
1
answer
121
views
IID_PPV_ARGS is not declared when compiling with wineg++
SHORT VERSION:
IID_PPV_ARGS() is not declared with wineg++. Is there a replacement?
LONG VERSION:
I'm trying to make a DX11 GUI with imgui. However, I'm on Linux and I don't have enough RAM to have ...
0
votes
0
answers
50
views
Integrating .NET COM Components into WordPress Plugin Using PHP and Debugging Errors
`I've created a small demo program in .NET(version 4.8) Class Library that include few simple function that I'm utilizing in PHP using COM. This php file is also integrated as a WordPress plugin, and ...
1
vote
0
answers
110
views
PHP->VBA using COM object, works on my PC and does not work on windows server
Situation: open an MSACCESS report, output to PDF and download, using PHP:
1 - Initially I used the following approach that worked on my computer:
try {
// Create a COM object for Access ...
0
votes
0
answers
87
views
Actual address of COM object in C#
I have a COM object for which I am trying to get the actual underlying address of, so I can get the address of the vtable. I need this to be a valid numerical address because I need to be able to add ...
0
votes
1
answer
451
views
Cast DesktopWindowXamlSource to IDesktopWindowXamlSourceNative fails with E_NOINTERFACE
I'm trying to use XAML Islands for WinUI 3 in a Win32 application.
After creating a new Win32 Desktop application from the File -> New Projet wizard, and:
Installing the latest versions of the ...
0
votes
1
answer
59
views
Unexpected error when assiging COM object to a C# 'dynamic' variable
I am interested in the possibilities offered by the C# dynamic keyword, but I am facing unexpected issues.
If I create a default .NET 4.8 template in Visual Studio 2022...
This works:
dynamic obj = ...
0
votes
1
answer
116
views
CS1545 error with specific COM object properties
I am doing COM automation with a 3rd party library. When trying to access certain properties I need to use obj.get_Property() instead of obj.Property.
This seems to be happening only for properties of ...