Questions tagged [com-interface]
33 questions
11
votes
3 answers
What is the best way to access a serial port from VBA?
What is the best way to access a serial port from VBA?
I have a need for some of our sales reps to be able to send a simple string over the serial port from an action button in PowerPoint. I don't commonly use VBA, especially for anything like this.…

GEOCHET
- 21,119
- 15
- 74
- 98
11
votes
1 answer
Python: Open Excel Workbook using Win32 COM Api
I'm using the following code to open and display a workbook within Excel:
import win32com.client as win32
excel = win32.gencache.EnsureDispatch('Excel.Application')
wb = excel.Workbooks.Open('my_sheet.xlsm')
ws = wb.Worksheets('blaaaa')…

tim
- 9,896
- 20
- 81
- 137
3
votes
3 answers
Not able to use my simple VB class library in VBA
So this is my first post in this great community and I'm an absolute beginner, I'm sure I'll get good advice from here.
I mad this simple VB class library in Visual Studio 2017
Public Class Addition
Public Function Add(No1 As Long, No2 As Long)…

Schwan Abdulkareem
- 107
- 1
- 7
2
votes
2 answers
Device Independent Bitmap Byte Array to Image : Parameter is not valid
I am working with a electronic software OMICRON MPD and MI that provides a COM Interface. I am taking a screenshot via the methods provided by COM Interface and attempting to save the byte[] to an image file.
My code:
byte[] rawImg =…

Saad A
- 1,135
- 2
- 21
- 46
2
votes
0 answers
referencing com interface in fsi F# interactive
I'm trying to rewrite this matlab .Net example in F# interactive.
In the example a COM-interface reference is used.
How do I reference a COM-interface from within the fsi?
EDIT
I refence the as described
From the Project menu, select Add…

Peter Siebke
- 196
- 1
- 8
2
votes
1 answer
Is there a way to tell whether two COM interface references point at the same instance?
Given two interface references obtained from different sources. Is there a programmatic way to tell whether they're implemented by the same instance?
A simple equality check of the interface references always fails.
EDIT: Large parts of the…

Oliver Giesen
- 9,129
- 6
- 46
- 82
2
votes
0 answers
TortoiseSVN getting user set keywords with VBA
In Tortoise SVN we have set the keywords:
"KOPF:ReviewDate" with Value "YYYY-MM-DD".
I have written a macro that reads out keywords with COM-Interface (SubWCRev) shwon…

Matthias Schäfer
- 21
- 2
2
votes
2 answers
C# Partial Class and COM Interface
I'm creating a C# library and am going to expose a COM interface to it.
I understand the steps requried to do this, i.e.
Ensure assumbly GUID is assigned, e.g:
[assembly: Guid("dde7717b-2b75-4972-a4eb-b3d040c0a182")]
Ensure COMVibile attribute is…

James Wiseman
- 29,946
- 17
- 95
- 158
2
votes
1 answer
Create COM object in Qt
I try to create a COM object and get the interface from the object in Qt. So Qt works as the COM client. In my example the COM server is the CANoe COM server.
Here is my source code of the Qt pro file and my interface.cpp file where I try to…

la-ga
- 160
- 2
- 13
1
vote
0 answers
Questions about VISSIM COM interface GetQueued method
I'm using Python to communicate with the VISSIM traffic simulation software using its COM interface.
I'm trying to access the GetQueued information of one of my link while running a simulation.
import win32com.client as com
vissim_com =…

tracer
- 11
- 2
1
vote
1 answer
How to run all TestModule in [Test Setup for Test Modules] CANoe
My [Test Setup for Test Modules] same here:
Environment1 (Test_Environment.tse)
-TestEnv1Folder (Folder)
TestModuleEnv1-1
TestModuleEnv1-2
-TestFolder (Folder)
TestModuleInFolder1
TestModuleInFolder2
-TestFolder2…

Larva HD
- 11
- 1
1
vote
1 answer
MATLAB .NET assembly (Undefined function or variable 'feedforwardnet')
I'm trying to integrate MATLAB 2010b with Visual Studio 2008 Professional.
I have the following MATLAB method.
function varargout = perform( func, varargin )
%% // Set default values
workspaceDirectory = ['Results/MatlabWorkspace_' datestr(now,…

Hamid
- 479
- 6
- 21
1
vote
2 answers
COM coobjects and interfaces C#
I am completely new to this and am following a tutorial on msdn: http://msdn.microsoft.com/en-us/library/aa645736(v=vs.71).aspx#vcwlkcominteroppart1cclienttutorialanchor2
My question is why do we use COM Interfaces AND COM CoClasses? It seems odd to…

LunchMarble
- 5,079
- 9
- 64
- 94
1
vote
2 answers
COM interop interface casting
Following this article, I have successfully translated C++ COM class/interface declaration into C# like this:
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid(IfaceGuid)]
public interface IFoo
{
void Bar();
}
[ComImport,…

svick
- 236,525
- 50
- 385
- 514
1
vote
3 answers
What is the difference between IDispatch and IUnkown in COM?
I have read and saw example for COM, but I couldn't clearly get there Interface difference.

mahipal.friends
- 65
- 1
- 5