12,384 questions
1
vote
0
answers
105
views
Can I import a comhost in a C++ program for working with C# classes for early binding?
I'm importing a TLB file in a C++ program in order to do early binding, that is working fine:
#import "main.tlb" no_namespace, named_guids
Then, I've embedded that TLB file in a comhost ...
2
votes
1
answer
160
views
IWebBrowser2::Quit Do not work on some explorer tabs
I am trying to close the explorer tabs using a folder. To do that from C# I have this beautiful code:
[ComImport, Guid("9BA05972-F6A8-11CF-A442-00A0C90A8F39"), InterfaceType(ComInterfaceType....
Advice
0
votes
4
replies
84
views
Integrating Windows Explorer as a control in Windows 11
Is it possible to integrate Windows Explorer component as a control, created on my window? For instance, as an ActiveX control. It should work in modern Windows 11 (24H2, 25H2).
Back in Windows 9x ...
-2
votes
1
answer
154
views
How to check which files has IFileOperation successfully deleted?
I am using IFileOperation::DeleteItems to delete multiple files—including one that I don't have delete permission to.
Using the standard IFileOperationProgressSink::PostDeleteItem to get a ...
0
votes
0
answers
63
views
IStream audio output data routed from ISpVoice is glitchy [duplicate]
I've managed to stream raw PCM audio data from Microsoft's text to speech engine. The main implementation is here (included below): https://gitlab.com/bgc-nz/windows-com-programming-showcase/-/blob/...
1
vote
0
answers
91
views
COM issues while remote debugging
I have configured my computer for remote debugging: I have the Visual Studio solution and projects on my development computer and the testing is about to happen on a remote testmachine.
On the ...
1
vote
0
answers
148
views
How to register an C# class for COM?
I'd like to create an C# WPF library exposing some class to COM to use the class functionality from separate C++ project.
What I'd like to achieve is to have a WPF class which implements simple form ...
Advice
1
vote
4
replies
96
views
Is it possible to connect the New Outlook for Windows to our own server?
I have a COM C++ plugin which is developed using MAPI, which gets installed on Outlook and then it talks to my sever, I create a Mail profile providing server, user and pwd and it connect to server ...
0
votes
1
answer
78
views
Setting Excel_Application.Calculation property (via Delphi & OLE)
I am trying to read and set the calculation mode in Excel. I have
type
TXlCalculation = type LongWord;
const
xlCalculationAutomatic:TXlCalculation = TXlCalculation(-4105);
xlCalculationManual:...
Best practices
1
vote
4
replies
172
views
What are the strengths and weaknesses of using VTable/COM-centric APIs?
I'm currently designing a library,
I want this library to maintain a stable interface for old applications,
However, it should be expandable.
It acts as a hardware abstraction layer.
The graphics ...
0
votes
0
answers
146
views
Do STA threads always need to pump messages?
Some components like DirectWrite or WIC don't do UI, and as the caller I can ensure that I never use them across apartments, thus no marshaling is required. Can I use them on a worker thread without ...
0
votes
0
answers
251
views
Suitable Pandas installation on 32-bit Python (3.10, 3.11)
I am trying to use the Kiwoom OpenAPI (for making automated stock trading program), which requires a 32-bit Python environment. However, to successfully use Kiwoom Open API I need to set up pandas in ...
0
votes
0
answers
109
views
How to pass null as ActiveX control parameter
ActiveX control was registered from dll file using regsvr32:
cd \windows\syswow64
regsvr32 "C:\mapp\mycontrol.dll"
FoxPro object is created from it using
ofiscalprinter=CREATEOBJECT('...
0
votes
1
answer
113
views
How to get the contents of a SAFEARRAY on one line in the watch-window
Since recently, I'm working in C++ with COM technology, which means using SAFEARRAY objects. One of the first challenges is seeing the contents of such an object: in the watch-window, such an object ...
1
vote
0
answers
119
views
How to replace a COM Interop with the ComWrapper Source Generator?
I am currently using a COM Interop DLL, generated with tlbimp, to access a proprietary COM library from C# (net8), so no source code available (TLB embedded in DLL). It works, but stops me from using ...
