Questions tagged [com-object]

39 questions
9
votes
1 answer

Using PyWinAuto to control a currently running application

Using the following code I can find that the currently running window I want to connect is named "Trade Monitor" how do i successfull connect to it? Using the app.start_ method does not work. from pywinauto import…
GoBlue_MathMan
  • 1,048
  • 2
  • 13
  • 20
5
votes
3 answers

The namespace of IADsLargeInteger

I looking for way to convert COM object to DateTime and I saw a lot of articles about this problem (like this one -https://msdn.microsoft.com/en-us/library/ms180872(v=vs.80).aspx and this one- How to read "uSNChanged" property using C# ) However,…
neriag
  • 151
  • 1
  • 9
4
votes
2 answers

Outlook/Powershell - Mail object truncating '.Body'

I am writing a script which will run an exe on a users machine, then prompt them to email the details back to me. The problem code is this: $ResultsOutput = "DHCPUtil Results at $(Get-Date) Computer Name : $([System.Environment]::MachineName) IP…
colsw
  • 3,216
  • 1
  • 14
  • 28
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
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
1 answer

Adding URL to IE cache from a service

I have a service that needs to add URLs to the IE cache of the logged in user In order to do that I first obtain the user's token with OpenProcessToken and call ImpersonateLoggedOnUser I tried adding the URL with 2 methods Using the IUrlHistoryStg2…
4x6hw
  • 149
  • 9
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

Conversion from type 'String' to type 'String' is not valid

I'm in the process of porting an old excel addin that was writen in VBA to VB .NET. The Excel addin interacts with a number of external com objects. The code sorta looks like this: Dim hurr as Object Dim durr as String hurr = CreateObject("COM…
2
votes
1 answer

How to get UTF-8 string using COM object in PHP?

In my PHP code, I am instancing COM object from external DLL. It works OK except I have a problem receiving JSON string from one of the com object methods. If the string does not have any non-Latin characters JSON I get is correct, but if there is…
Pedja YT9TP
  • 141
  • 6
2
votes
1 answer

How to make a class or DLL I created appear on VS toolbox

I'm aware that once you build a UserControl, it automatically appears on the visual studio's toolbox, hence you can drag and drop it anytime. But how can one do this on a non-visual class (like a BackgroundWorker or a Timer)? I created a class…
morethanyell
  • 316
  • 3
  • 10
2
votes
1 answer

Corrupt IE object (IE automation with Powershell)

I want to automate an accesspoint configuration on the web console with Powershell. I developed on Win8/IE10 and everything works fine when testing the code. Unfortunately I received the "productive system" after development/tests. Now the code…
kvo
  • 21
  • 3
2
votes
1 answer

How to disable automatic registering of com-object in VS2010

When I build the solution in the project, VS2010 registers the com-object automatically on the development PC. Is there way to disable it?
user1807338
  • 195
  • 1
  • 1
  • 9
2
votes
1 answer

PHP com object doesn't showing content correctly for non English character

I am struggling with php COM object, to read (.doc) word data. Problem is while i am retriving content from doc file, data is showing but it's not showing actual data - example.doc content Čo je to zubný povlak? Zubný povlak je lepkavá a bezfarebná…
HADI
  • 2,829
  • 1
  • 26
  • 26
1
vote
2 answers

How to consume COM object in ASP.NET class file

I have a COM object that I am trying to wrap in a C# class in order to make it more readily available for other applications that wish to consume it. I have the following code that creates an instance of the COM object, and then using reflection…
Jagd
  • 7,169
  • 22
  • 74
  • 107
1
vote
1 answer

Python Threading With Excel Com Object

I am trying to open a workbook using a pre-opened excel com object within a python thread. Using the below code: from multiprocessing import Process, Queue def open_workbook(excel,iSub_Loc,q): p = Process(target = open_workbook_helper, args =…
GoBlue_MathMan
  • 1,048
  • 2
  • 13
  • 20
1
2 3