Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
3 replies
58 views

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 ...
Mahesh Amarelia's user avatar
0 votes
1 answer
43 views

I am trying to read and set the calculation mode in Excel. I have type TXlCalculation = type LongWord; const xlCalculationAutomatic:TXlCalculation = TXlCalculation(-4105); xlCalculationManual:...
ss2006's user avatar
  • 9
Best practices
1 vote
4 replies
129 views

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 ...
The19thFighter's user avatar
0 votes
0 answers
104 views

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 ...
mbolp's user avatar
  • 103
0 votes
0 answers
106 views

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 ...
Fish Red's user avatar
0 votes
0 answers
88 views

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('...
Andrus's user avatar
  • 28.2k
0 votes
1 answer
90 views

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 ...
Dominique's user avatar
  • 17.7k
1 vote
0 answers
81 views

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 ...
boennhoff's user avatar
-1 votes
1 answer
63 views

I'm currently using a COM component to initialize an instance of CCertRequest from CertCliLib. I would like to move to CSWin32 with that, but it seems the CCertRequest does not implement any ...
TGlatzer's user avatar
  • 6,435
1 vote
0 answers
112 views

I have a simple script to make file transfers between a local directory and an MTP device. For the MTP device, I created a ComObject and traversed to the desired directory. Then, I use the CopyHere ...
Benjamin Rivera Flores's user avatar
0 votes
1 answer
306 views

When launching MMC in 64-bit Windows, MMC64 will start, then if the -32 switch was passed in the command line, MMC64 will try and start MMC32 and, if succesful, MMC64 will terminate. When creating an ...
matpop's user avatar
  • 1,516
1 vote
0 answers
99 views

I can use an out-of-process COM server that is not registered with C# dynamic, and this works fine, but I cannot get events to work. My code basically is something like this: Process.Start("path\\...
Martin's user avatar
  • 2,116
0 votes
1 answer
96 views

I've recently started doing a bit of Python coding, using VS Code, to create macros / applications for CATIA (using it's COM interface). In CATIA itself, I can use the included VBA editor to write ...
JJB's user avatar
  • 13
0 votes
0 answers
86 views

I'm migrating an automated test workflow from Vector VtestStudio to a Python-based tool. Previously, in VtestStudio, we could execute a separate .can CAPL script in the middle of a test without issues....
Adithya Sharma's user avatar
3 votes
0 answers
209 views

The documentation on delete on paste states: If the target does not do an optimized move, it calls the IDataObject::SetData method with the CFSTR_PERFORMEDDROPEFFECT format set to DROPEFFECT_MOVE. ...
mbolp's user avatar
  • 103
3 votes
1 answer
177 views

I have implemented INetworkListManagerEvents interface to get network connectivity state changes as a C# class. In my project, the INetworkListManagerEvents is code generated via CsWin32 source ...
Guezt's user avatar
  • 157
0 votes
0 answers
80 views

I'm building a Windows Service in C# (.NET Framework 4.8) that should automatically import sales receipts from XML files into Comarch ERP Optima. The service is supposed to create a COM session using ...
adrianmatysiak1916's user avatar
2 votes
1 answer
150 views

I'm debugging an older Winforms application running on .NET 4.8 which is using some COM components. Occasionally, it throws this exception and then crashes: System.IO.FileNotFoundException: 'Could ...
Timur Kelman's user avatar
0 votes
2 answers
218 views

Though I've got built example from msdn-docs on how to Expose .NET Core components to COM with C:\COMServerDemo>dotnet build build.proj after changing in *.proj files of Server & Client <...
JeeyCi's user avatar
  • 645
2 votes
1 answer
70 views

I have 2 DLLs. I want create instance of class in my second DLL that I declare at .idl file of first library. But I get Error Link 2001 on CLSID, when try to link second DLL. I'm linking with first ...
SabakaSamson's user avatar
0 votes
1 answer
60 views

I am trying to update Pivot Tables in Excel using PowerShell. The PivotTable is based on a normal range, and I'm writing: $newSource = "'Sheet1'!R1C1:R${lastRow}C7" $pivotSheetNames = @(&...
Pete1230z's user avatar
1 vote
1 answer
78 views

I'm trying to wrap my head around on how to make a .NET 8 dll callable as a COM host in order to create a custom InfoTip on Explorer for a specific extension (.t1k). I know that SharpShell is a very ...
MastErAldo's user avatar
1 vote
0 answers
111 views

I am creating a COM server using native C++. And I need to use void pointer as a parameter type in the server interface. [ dual, oleautomation, uuid(E62A1CB0-86A7-40AE-AFE4-75562C32A498) ] ...
Stanislav Panferov's user avatar
0 votes
0 answers
65 views

After installing Windows 11 Update 24H2, I have not been able to work with a COM Library developed with C# and accessed from Delphi. The failure occurs when I do a Where filter using a numeric ...
KE50's user avatar
  • 564
0 votes
1 answer
67 views

Yes, you read the title correctly - this is an issue that only occurs when UAC is off (for example, with the built-in Administrator account on Windows Server systems). Repro steps: Create a COM-...
Heinzi's user avatar
  • 173k
1 vote
1 answer
86 views

I've written a Windows Explorer clone, and while it's been an adventure, most of the stuff is now working fine. But, I have this problem: when I right-click an item and the Windows 11-style Explorer ...
miss programmer's user avatar
1 vote
1 answer
181 views

I defined the following IDispatch-only interface in my C# project: [ComVisible(true)] [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] [Guid("3532C4E8-D320-487C-8BD4-...
Gabboxl's user avatar
  • 151
0 votes
1 answer
74 views

I was using the following code for years and it worked fine. The Code was used as a Com-Component in vba from ms-Access. Now since we updated to Windows 11 and Office 365 IsValidSid is returning false ...
Gener4tor's user avatar
  • 413
1 vote
1 answer
53 views

I would like to convert Windows status constants to human-readable error messages, and I seem to be failing. The following code is little helpful: #include <Windows.h> #include <comdef.h> ...
bers's user avatar
  • 6,321
2 votes
1 answer
249 views

There is a test project that shows the contents of a notepad, in perspective the contents of other window elements: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> &...
Shift's user avatar
  • 23
0 votes
2 answers
184 views

I have a series of functions and objects in C++ that will be called/invoked by Lua, I already have existing code that does exactly this (using the MFC COM dispatch) for VBScript (see the bottom of ...
N Krueger's user avatar
-6 votes
1 answer
256 views

I have a Namespace Extension (NSE) that presents distributed data as "files" with the root of my NSE under alongside OneDrive, etc. Most functionality works as expected. While debugging ...
HackTheStack's user avatar
2 votes
1 answer
124 views

I try to set an excel column to autofit width using com automation. I get an access violation when calling Invoke. I know that the range that points to the column is ok, because I can use it to change ...
vals's user avatar
  • 64.1k
0 votes
0 answers
99 views

I'm writing twinBASIC, which is basically VB6 successor code. The purpose of my program is to connect to a language server over STD I/O (like deno.exe lsp). I'm trying to achieve this in the following ...
Greedo's user avatar
  • 5,635
2 votes
0 answers
84 views

I'm integrating in Java with a DLL that allows me to add an instance to be notified. I have tried several solutions and in none of them was the COM object able to notify me. I suspect that the way I ...
Kildary Klein's user avatar
0 votes
0 answers
51 views

Here is the C++ definition and the C# definition: HRESULT SelectAndPositionItems( [in] UINT cidl, //# of items [in] PCUITEMID_CHILD_ARRAY apidl, //pointer to array of ID's [in] ...
user1229358's user avatar
2 votes
0 answers
129 views

If you navigate Explorer into a shell namespace extension, and then navigate away from the namespace extension into some other folder branch, then Explorer will release all instances of the namespace ...
user avatar
2 votes
1 answer
153 views

I am automating the creation of Excel workbook with PowerShell scripts. I can create an Excel instance with either add-type -assembly Microsoft.Office.Interop.Excel $xls = new-object Microsoft.Office....
René Nyffenegger's user avatar
0 votes
0 answers
95 views

I have recently upgraded my application from Delphi 7 to Delphi 10.4. My application launches VBA 6.5, which kind of is hosted within Delphi (i.e. it vanishes along with the main application). I am ...
Ashok kumar's user avatar
1 vote
1 answer
76 views

ref: ISystemMediaTransportControlsInterop I compiled a dll about ISystemMediaTransportControlsInterop::GetForWindow. I use IDA to decompile it. Then I wrote the C-like code as Python. I believe that I ...
hite404's user avatar
  • 35
1 vote
1 answer
150 views

I've tried a few different ways of enumerating redirected USB devices using the Remote Desktop ActiveX control in PowerShell but haven't been able to figure out a way to achieve this. That is, USB ...
Paul π's user avatar
  • 585
0 votes
1 answer
74 views

I have an out of proc COM server packaged as an MSIX. I also have the following idl file, declare_guid(CLSID_ComServerProxyStub, BA5A4D3C-56D8-4F3D-885D-C30B2405BDA5); [ object, uuid(FA601A80-...
coda's user avatar
  • 2,595
0 votes
0 answers
47 views

I am trying to develop a very basic HelloWorld example, where an unpackaged (exe based) client is trying to talk to a out of proc COM server which is packaged as an msix. I am using windows template ...
coda's user avatar
  • 2,595
0 votes
0 answers
84 views

I try to make Windows show several thumbnails for forms created at runtime in the group with the main form. So, when the mouse hovers over the icon of the main form, I want to see the thumbnail for ...
Bodo's user avatar
  • 15
0 votes
0 answers
46 views

I have a c# COM wrapper class [Guid('XXX')] public Class A : CoClassWithEvents { public event OnDoMeDelegate OnDoMe; public void CallMe(){ } } idl file coclass CoClassWithEvents { ...
Ibrahim Mahmoud's user avatar
1 vote
1 answer
62 views

For instance, I would like to be able to iterate through all the programs in a signal controller and have the green time start 3 seconds later. I cannot figure out how to change any attributes of a ...
iz zi's user avatar
  • 11
0 votes
0 answers
45 views

I am writing a python program and need to interact with existing com dll objects written in C++. I can access the Dispatch interface of the dll using the comtypes module and get the correct function ...
James Johns's user avatar
1 vote
0 answers
56 views

I want to write a Powershell script to modify my Shell Folder I tried the following code: $CLSID_KnownFolderManager = "4df0c730-df9d-4ae3-9153-aa6b82e9795a" $KnownFolderManagerType = [Type]::...
user29942439's user avatar
2 votes
1 answer
86 views

I have a lot of experience in C++ but am new to COM, MFC and MIDL. I'm trying to create a 32 bit COM server from an IDL file supplied by a third party. The IDL section looks like this: [uuid(3CA6AC95-...
Stephen's user avatar
  • 61
0 votes
1 answer
156 views

I'm attempting to compile an ATL proxy/stub DLL for ARM64, but it isn't working. I don't have any specific code to provide, since I'm really just trying to compile the basic template-produced project ...
user avatar

1
2 3 4 5
248