Questions tagged [comobject]
200 questions
4
votes
1 answer
Error using ListObject.Add to create a Table Style
I'm Trying to create a Custom Table(Just like click the 'Format as Table' in the excel bar) with PowerShell and Excel ComObject from a CSV
Here's my code...
$Excel = New-Object -ComObject excel.application
$Excel.visible =…

Avshalom
- 8,657
- 1
- 25
- 43
3
votes
3 answers
Is it possible to duplicate the following credential process in VB.NET?
Solution (kinda):
Turns out this impersonation with .NET's security only allows application-level access. Since the COM object is at the system level, the impersonated user still cannot instantiate it. I figured this out by right-clicking the…

Anders
- 12,088
- 34
- 98
- 146
3
votes
1 answer
"Not responding" during the execution of function from COM object
It's been several days that I'm on this problem without finding a solution...
I developed a macro for SolidWorks in VB.NET. It uses a COM object from a DLL that I developed in C++. The functions of this COM object take a long time to run (sometimes…

nigavevoli
- 31
- 5
3
votes
0 answers
How to fix an HRESULT: 0x8150002E Exception
Background: I'm running a
$ie = New-Object -ComObject InternetExplorer.Application
within Powershell 5.1.17134.590, but getting a
"Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the
…

hungrywinnie
- 31
- 1
- 2
3
votes
1 answer
How do you read from a multidimensional variant array returned from a COM object in PHP?
I'm working with a COM object that returns a multidimensional VARIANT array (vt_array), and I'm trying to read values from the array.
When I use print_r($mdArray) it displays variant Object.
(variant_get_type($mdArray) returns 8204.)
I tried using…

john
- 33
- 1
- 3
3
votes
1 answer
Does matter COM object not assigned to var is not released?
Will be all unmanaged COM objects released in case if I use code like this
var worksheet = new Application().Workbooks.Add().Worksheets.Add();
Marshal.ReleaseComObject(worksheet);
instead of code like this
var excel = new Application();
var…

Yarl
- 728
- 1
- 7
- 26
3
votes
2 answers
VirtualBox + Powershell?
I have created a virtual machine. Now I am trying to launch it using Powershell. I have searched all over the internet for any details on how to do that. This is the only code i found...
#----------------------
$vBox = New-Object -ComObject…

user464818
- 51
- 1
- 1
- 2
3
votes
1 answer
PowerShell, Open IE without Add-ons
I want to open the Internet Explorer as a new Com Object with no Add-ons.
$ie=New-Object -comobject InternetExplorer.Application
How could I start the Internet Explorer without Add-ons?

LaPhi
- 431
- 1
- 4
- 4
3
votes
2 answers
Why isn't handles.exe discovering my DLL while ProcessExplorer can?
The problem:
On a windows server 2012 r2 box, I'm trying to use Chef to programmatically replace a .dll command component (aka a vb 6 library that I've registered on the box using regsvr32.exe) but when I try to copy over the file, the app pool of…

user1079703
- 442
- 6
- 15
3
votes
1 answer
finding uuid's/headers for imapi2 com objects or get __uuidof to work on mingw
I am trying to access imapi2 com objects from a mingw project. I was trying to follow a visual studio example. I found the imapi2 header files in Microsoft SDK 7.1, but they do not seem to have the uuid's. The example I saw was using __uuidof for…

user1404617
- 585
- 1
- 5
- 20
3
votes
0 answers
pass VT_ARRAY to COM object
I have a COM object which exports a function like this:
SetValue(Guid paramID, ref object paramValue);
For a specific Guid, I should pass paramValue as "VT_ARRAY | VT_INT" as said in the document. Indeed I should pass 4 integers which is 16 bytes…

Malik Çelik
- 302
- 1
- 13
2
votes
1 answer
Exception while accessing a C# COM object in InnoSetup
I'm trying to access a COM object created and registered using C# but without any success.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT…

this-Me
- 2,139
- 6
- 43
- 70
2
votes
1 answer
SaveCopyAs method does not work
(I'm week in English language, so at first excuse me for bad explaining :D )
I open an excel file through my application.
I have an Addd-In in Excel and a button in ribbon for save (exactly such a save action that Save button do) code of Click event…

Omid.Hanjani
- 1,444
- 2
- 20
- 29
2
votes
1 answer
Dump Object for ComObject using dynamic?
I'm trying (without luck) to implement an "Object Dumper" for objects I'm accessing in the Office Type Library.
It must be possibly, because VS's debug window has a "dynamic view" for the System.__ComObject objects that effectively does what I…

Chris Webb
- 752
- 7
- 22
2
votes
0 answers
Error: Caused by: com.sun.jna.platform.win32.COM.COMException: Class not registered(HRESULT: 80040154) (puArgErr=)
I'm running my java spring application's test cases on my WIN 10 machine and I started to see these errors, is there any way to avoid these COM errors /workaround?
Caused by: com.sun.jna.platform.win32.COM.COMException: Class not registered(HRESULT:…

Santosh Ravi Teja
- 247
- 1
- 7
- 18